view arogue5/arogue58.vcproj @ 114:a5433ba4cabf

arogue5: fix some daemon-related pointer/int casting. Daemons and fuses take a single argument, nominally an int but either ignored or unsafely cast to a pointer. Its type has now been changed to void*. The save/restore code no longer tries to store this argument in the savefile. For doctor(), this is not a problem, because player is the only argument it is ever given as a daemon. However, alchemy() will fail to do anything when passed NULL. Fixing this would be complicated but possible. Summary: the code is slightly safer, but alchemy jugs are guaranteed to stop working after save and restore, instead of just extremely likely.
author John "Elwin" Edwards
date Fri, 28 Mar 2014 10:57:03 -0700
parents 0ed67132cf10
children
line wrap: on
line source

<?xml version="1.0" encoding = "Windows-1252"?>
<VisualStudioProject
	ProjectType="Visual C++"
	Version="7.00"
	Name="arogue58"
	ProjectGUID="{2EEE53AB-A85A-4D4D-8DB2-B5F23513F415}"
	Keyword="Win32Proj">
	<Platforms>
		<Platform
			Name="Win32"/>
	</Platforms>
	<Configurations>
		<Configuration
			Name="Debug|Win32"
			OutputDirectory="Debug"
			IntermediateDirectory="Debug"
			ConfigurationType="1"
			CharacterSet="2">
			<Tool
				Name="VCCLCompilerTool"
				AdditionalOptions="/I.. /wd4033 /wd4716"
				Optimization="0"
				OptimizeForWindowsApplication="TRUE"
				AdditionalIncludeDirectories="../pdcurses"
				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
				MinimalRebuild="FALSE"
				ExceptionHandling="FALSE"
				BasicRuntimeChecks="3"
				RuntimeLibrary="5"
				BufferSecurityCheck="TRUE"
				UsePrecompiledHeader="0"
				WarningLevel="3"
				Detect64BitPortabilityProblems="TRUE"
				DebugInformationFormat="4"
				CompileAs="1"
				DisableSpecificWarnings="4013;4033;4716"/>
			<Tool
				Name="VCCustomBuildTool"/>
			<Tool
				Name="VCLinkerTool"
				AdditionalOptions="pdcurses.lib Ws2_32.lib"
				AdditionalDependencies="shfolder.lib pdcurses.lib"
				OutputFile="$(OutDir)/arogue58.exe"
				LinkIncremental="0"
				AdditionalLibraryDirectories="..\pdcurses"
				IgnoreDefaultLibraryNames="LIBC.LIB"
				GenerateDebugInformation="TRUE"
				ProgramDatabaseFile="$(OutDir)/arogue58.pdb"
				SubSystem="1"
				TargetMachine="1"/>
			<Tool
				Name="VCMIDLTool"/>
			<Tool
				Name="VCPostBuildEventTool"/>
			<Tool
				Name="VCPreBuildEventTool"/>
			<Tool
				Name="VCPreLinkEventTool"/>
			<Tool
				Name="VCResourceCompilerTool"/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"/>
			<Tool
				Name="VCWebDeploymentTool"/>
		</Configuration>
		<Configuration
			Name="Release|Win32"
			OutputDirectory="Release"
			IntermediateDirectory="Release"
			ConfigurationType="1"
			CharacterSet="2">
			<Tool
				Name="VCCLCompilerTool"
				Optimization="2"
				InlineFunctionExpansion="1"
				OmitFramePointers="TRUE"
				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
				StringPooling="TRUE"
				RuntimeLibrary="4"
				EnableFunctionLevelLinking="TRUE"
				UsePrecompiledHeader="3"
				WarningLevel="3"
				Detect64BitPortabilityProblems="TRUE"
				DebugInformationFormat="3"/>
			<Tool
				Name="VCCustomBuildTool"/>
			<Tool
				Name="VCLinkerTool"
				OutputFile="$(OutDir)/arogue58.exe"
				LinkIncremental="1"
				GenerateDebugInformation="TRUE"
				SubSystem="2"
				OptimizeReferences="2"
				EnableCOMDATFolding="2"
				TargetMachine="1"/>
			<Tool
				Name="VCMIDLTool"/>
			<Tool
				Name="VCPostBuildEventTool"/>
			<Tool
				Name="VCPreBuildEventTool"/>
			<Tool
				Name="VCPreLinkEventTool"/>
			<Tool
				Name="VCResourceCompilerTool"/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"/>
			<Tool
				Name="VCWebDeploymentTool"/>
		</Configuration>
		<Configuration
			Name="test|Win32"
			OutputDirectory="test"
			IntermediateDirectory="test"
			ConfigurationType="1"
			CharacterSet="2">
			<Tool
				Name="VCCLCompilerTool"
				Optimization="0"
				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
				MinimalRebuild="TRUE"
				BasicRuntimeChecks="3"
				RuntimeLibrary="5"
				UsePrecompiledHeader="0"
				WarningLevel="3"
				Detect64BitPortabilityProblems="TRUE"
				DebugInformationFormat="4"/>
			<Tool
				Name="VCCustomBuildTool"/>
			<Tool
				Name="VCLinkerTool"
				OutputFile="$(OutDir)/arogue58.exe"
				LinkIncremental="2"
				GenerateDebugInformation="TRUE"
				ProgramDatabaseFile="$(OutDir)/arogue58.pdb"
				SubSystem="2"
				TargetMachine="1"/>
			<Tool
				Name="VCMIDLTool"/>
			<Tool
				Name="VCPostBuildEventTool"/>
			<Tool
				Name="VCPreBuildEventTool"/>
			<Tool
				Name="VCPreLinkEventTool"/>
			<Tool
				Name="VCResourceCompilerTool"/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"/>
			<Tool
				Name="VCWebDeploymentTool"/>
		</Configuration>
	</Configurations>
	<Files>
		<Filter
			Name="Source Files"
			Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm">
			<File
				RelativePath="chase.c">
			</File>
			<File
				RelativePath="command.c">
			</File>
			<File
				RelativePath="daemon.c">
			</File>
			<File
				RelativePath="daemons.c">
			</File>
			<File
				RelativePath="encumb.c">
			</File>
			<File
				RelativePath="fight.c">
			</File>
			<File
				RelativePath="init.c">
			</File>
			<File
				RelativePath="io.c">
			</File>
			<File
				RelativePath="list.c">
			</File>
			<File
				RelativePath="main.c">
			</File>
			<File
				RelativePath="maze.c">
			</File>
			<File
				RelativePath="mdport.c">
			</File>
			<File
				RelativePath="misc.c">
			</File>
			<File
				RelativePath="monsters.c">
			</File>
			<File
				RelativePath="move.c">
			</File>
			<File
				RelativePath="new_level.c">
			</File>
			<File
				RelativePath="options.c">
			</File>
			<File
				RelativePath="outside.c">
			</File>
			<File
				RelativePath="pack.c">
			</File>
			<File
				RelativePath="passages.c">
			</File>
			<File
				RelativePath="player.c">
			</File>
			<File
				RelativePath="potions.c">
			</File>
			<File
				RelativePath="rings.c">
			</File>
			<File
				RelativePath="rip.c">
			</File>
			<File
				RelativePath="rogue.c">
			</File>
			<File
				RelativePath="rooms.c">
			</File>
			<File
				RelativePath="save.c">
			</File>
			<File
				RelativePath="scrolls.c">
			</File>
			<File
				RelativePath="state.c">
			</File>
			<File
				RelativePath="sticks.c">
			</File>
			<File
				RelativePath="things.c">
			</File>
			<File
				RelativePath="trader.c">
			</File>
			<File
				RelativePath="util.c">
			</File>
			<File
				RelativePath="vers.c">
			</File>
			<File
				RelativePath="weapons.c">
			</File>
			<File
				RelativePath="wear.c">
			</File>
			<File
				RelativePath="wizard.c">
			</File>
			<File
				RelativePath="xcrypt.c">
			</File>
		</Filter>
		<Filter
			Name="Header Files"
			Filter="h;hpp;hxx;hm;inl;inc">
			<File
				RelativePath="mach_dep.h">
			</File>
			<File
				RelativePath="network.h">
			</File>
			<File
				RelativePath="rogue.h">
			</File>
		</Filter>
		<Filter
			Name="Resource Files"
			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
		</Filter>
		<File
			RelativePath="LICENSE.TXT">
		</File>
		<File
			RelativePath="Makefile">
		</File>
		<File
			RelativePath="arogue58.doc">
		</File>
		<File
			RelativePath="arogue58.html">
		</File>
	</Files>
	<Globals>
	</Globals>
</VisualStudioProject>