Build system fixes, rename to quake3live, disable hw gamma
- Rename output binary to quake3live.exe (all configurations) - Set TargetName in vcxproj to match OutputFile for AfterBuild copy - Default fs_game to "missionpack" in FS_Startup - Add AfterBuild copy for ui project to workdir/missionpack - Enable q3_ui build for non-TA configs only (TA uses ui project) - Guard hardware gamma with ENABLE_HW_GAMMA macro (disabled by default) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ba2dbb803e
commit
53dae1453a
6 changed files with 1207 additions and 1175 deletions
|
|
@ -45,8 +45,8 @@ int demo_protocols[] =
|
||||||
#define DEF_COMHUNKMEGS "64"
|
#define DEF_COMHUNKMEGS "64"
|
||||||
#define DEF_COMZONEMEGS "24"
|
#define DEF_COMZONEMEGS "24"
|
||||||
#else
|
#else
|
||||||
#define DEF_COMHUNKMEGS "56"
|
#define DEF_COMHUNKMEGS "512"
|
||||||
#define DEF_COMZONEMEGS "16"
|
#define DEF_COMZONEMEGS "256"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int com_argc;
|
int com_argc;
|
||||||
|
|
|
||||||
|
|
@ -2753,7 +2753,7 @@ static void FS_Startup( const char *gameName ) {
|
||||||
homePath = fs_basepath->string;
|
homePath = fs_basepath->string;
|
||||||
}
|
}
|
||||||
fs_homepath = Cvar_Get ("fs_homepath", homePath, CVAR_INIT );
|
fs_homepath = Cvar_Get ("fs_homepath", homePath, CVAR_INIT );
|
||||||
fs_gamedirvar = Cvar_Get ("fs_game", "", CVAR_INIT|CVAR_SYSTEMINFO );
|
fs_gamedirvar = Cvar_Get ("fs_game", "missionpack", CVAR_INIT|CVAR_SYSTEMINFO );
|
||||||
fs_restrict = Cvar_Get ("fs_restrict", "", CVAR_INIT );
|
fs_restrict = Cvar_Get ("fs_restrict", "", CVAR_INIT );
|
||||||
|
|
||||||
// add search path elements in reverse priority order
|
// add search path elements in reverse priority order
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.14.36908.2 d17.14
|
VisualStudioVersion = 17.14.36908.2
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Splines", "splines\Splines.vcxproj", "{DBAF2C53-3858-455D-A1AE-3FC093515314}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Splines", "splines\Splines.vcxproj", "{DBAF2C53-3858-455D-A1AE-3FC093515314}"
|
||||||
EndProject
|
EndProject
|
||||||
|
|
@ -58,10 +58,10 @@ Global
|
||||||
{F9EE10DA-2404-4154-B904-F93C936C040A}.Release TA|x86.Build.0 = Release TA|Win32
|
{F9EE10DA-2404-4154-B904-F93C936C040A}.Release TA|x86.Build.0 = Release TA|Win32
|
||||||
{F9EE10DA-2404-4154-B904-F93C936C040A}.Release|x86.ActiveCfg = Release|Win32
|
{F9EE10DA-2404-4154-B904-F93C936C040A}.Release|x86.ActiveCfg = Release|Win32
|
||||||
{F9EE10DA-2404-4154-B904-F93C936C040A}.Release|x86.Build.0 = Release|Win32
|
{F9EE10DA-2404-4154-B904-F93C936C040A}.Release|x86.Build.0 = Release|Win32
|
||||||
{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Debug TA|x86.ActiveCfg = Debug TA|Win32
|
{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Debug TA|x86.ActiveCfg = Debug|Win32
|
||||||
{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Debug|x86.ActiveCfg = Debug|Win32
|
{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Debug|x86.Build.0 = Debug|Win32
|
{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Debug|x86.Build.0 = Debug|Win32
|
||||||
{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Release TA|x86.ActiveCfg = Release TA|Win32
|
{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Release TA|x86.ActiveCfg = Release|Win32
|
||||||
{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Release|x86.ActiveCfg = Release|Win32
|
{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Release|x86.ActiveCfg = Release|Win32
|
||||||
{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Release|x86.Build.0 = Release|Win32
|
{D454C4C7-7765-4149-ABAD-05FDEB9D94F8}.Release|x86.Build.0 = Release|Win32
|
||||||
{81CB51C4-B434-4E12-B69B-BAEE102F2852}.Debug TA|x86.ActiveCfg = Debug TA|Win32
|
{81CB51C4-B434-4E12-B69B-BAEE102F2852}.Debug TA|x86.ActiveCfg = Debug TA|Win32
|
||||||
|
|
|
||||||
|
|
@ -106,36 +106,43 @@
|
||||||
<OutDir>.\Release_TA\</OutDir>
|
<OutDir>.\Release_TA\</OutDir>
|
||||||
<IntDir>.\Release_TA\</IntDir>
|
<IntDir>.\Release_TA\</IntDir>
|
||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<TargetName>quake3live</TargetName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<OutDir>.\Debug\</OutDir>
|
<OutDir>.\Debug\</OutDir>
|
||||||
<IntDir>.\Debug\</IntDir>
|
<IntDir>.\Debug\</IntDir>
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
<TargetName>quake3live</TargetName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release TA DEMO|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release TA DEMO|Win32'">
|
||||||
<OutDir>.\quake3___Win32_Release_TA_DEMO\</OutDir>
|
<OutDir>.\quake3___Win32_Release_TA_DEMO\</OutDir>
|
||||||
<IntDir>.\quake3___Win32_Release_TA_DEMO\</IntDir>
|
<IntDir>.\quake3___Win32_Release_TA_DEMO\</IntDir>
|
||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<TargetName>quake3live</TargetName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<OutDir>.\Release\</OutDir>
|
<OutDir>.\Release\</OutDir>
|
||||||
<IntDir>.\Release\</IntDir>
|
<IntDir>.\Release\</IntDir>
|
||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<TargetName>quake3live</TargetName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug TA DEMO|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug TA DEMO|Win32'">
|
||||||
<OutDir>.\quake3___Win32_Debug_TA_DEMO\</OutDir>
|
<OutDir>.\quake3___Win32_Debug_TA_DEMO\</OutDir>
|
||||||
<IntDir>.\quake3___Win32_Debug_TA_DEMO\</IntDir>
|
<IntDir>.\quake3___Win32_Debug_TA_DEMO\</IntDir>
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
<TargetName>quake3live</TargetName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vector|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vector|Win32'">
|
||||||
<OutDir>.\quake3___Win32_vector0\</OutDir>
|
<OutDir>.\quake3___Win32_vector0\</OutDir>
|
||||||
<IntDir>.\quake3___Win32_vector0\</IntDir>
|
<IntDir>.\quake3___Win32_vector0\</IntDir>
|
||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<TargetName>quake3live</TargetName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug TA|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug TA|Win32'">
|
||||||
<OutDir>.\Debug_TA\</OutDir>
|
<OutDir>.\Debug_TA\</OutDir>
|
||||||
<IntDir>.\Debug_TA\</IntDir>
|
<IntDir>.\Debug_TA\</IntDir>
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
<TargetName>quake3live</TargetName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup>
|
<ItemDefinitionGroup>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
|
|
@ -151,7 +158,7 @@
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<PrecompiledHeader />
|
<PrecompiledHeader />
|
||||||
<PrecompiledHeaderOutputFile>.\Release_TA/quake3.pch</PrecompiledHeaderOutputFile>
|
<PrecompiledHeaderOutputFile>.\Release_TA/quake3live.pch</PrecompiledHeaderOutputFile>
|
||||||
<AssemblerListingLocation>.\Release_TA/</AssemblerListingLocation>
|
<AssemblerListingLocation>.\Release_TA/</AssemblerListingLocation>
|
||||||
<ObjectFileName>.\Release_TA/</ObjectFileName>
|
<ObjectFileName>.\Release_TA/</ObjectFileName>
|
||||||
<ProgramDataBaseFileName>.\Release_TA/</ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>.\Release_TA/</ProgramDataBaseFileName>
|
||||||
|
|
@ -161,11 +168,11 @@
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>.\Release_TA/quake3.exe</OutputFile>
|
<OutputFile>.\Release_TA/quake3live.exe</OutputFile>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<ProgramDatabaseFile>Release_TA/quake3.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>Release_TA/quake3live.pdb</ProgramDatabaseFile>
|
||||||
<GenerateMapFile>true</GenerateMapFile>
|
<GenerateMapFile>true</GenerateMapFile>
|
||||||
<MapFileName>Release_TA/quake3.map</MapFileName>
|
<MapFileName>Release_TA/quake3live.map</MapFileName>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<StackReserveSize>8388608</StackReserveSize>
|
<StackReserveSize>8388608</StackReserveSize>
|
||||||
<TargetMachine>MachineX86</TargetMachine>
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
|
@ -193,7 +200,7 @@
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
<PrecompiledHeader />
|
<PrecompiledHeader />
|
||||||
<PrecompiledHeaderOutputFile>.\Debug/quake3.pch</PrecompiledHeaderOutputFile>
|
<PrecompiledHeaderOutputFile>.\Debug/quake3live.pch</PrecompiledHeaderOutputFile>
|
||||||
<AssemblerListingLocation>.\Debug/</AssemblerListingLocation>
|
<AssemblerListingLocation>.\Debug/</AssemblerListingLocation>
|
||||||
<ObjectFileName>.\Debug/</ObjectFileName>
|
<ObjectFileName>.\Debug/</ObjectFileName>
|
||||||
<ProgramDataBaseFileName>.\Debug/</ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>.\Debug/</ProgramDataBaseFileName>
|
||||||
|
|
@ -205,12 +212,12 @@
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>.\Debug/quake3.exe</OutputFile>
|
<OutputFile>.\Debug/quake3live.exe</OutputFile>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>.\Debug/quake3.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>.\Debug/quake3live.pdb</ProgramDatabaseFile>
|
||||||
<GenerateMapFile>true</GenerateMapFile>
|
<GenerateMapFile>true</GenerateMapFile>
|
||||||
<MapFileName>.\Debug/quake3.map</MapFileName>
|
<MapFileName>.\Debug/quake3live.map</MapFileName>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<StackReserveSize>8388608</StackReserveSize>
|
<StackReserveSize>8388608</StackReserveSize>
|
||||||
<TargetMachine>MachineX86</TargetMachine>
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
|
@ -242,7 +249,7 @@
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<PrecompiledHeader />
|
<PrecompiledHeader />
|
||||||
<PrecompiledHeaderOutputFile>.\quake3___Win32_Release_TA_DEMO/quake3.pch</PrecompiledHeaderOutputFile>
|
<PrecompiledHeaderOutputFile>.\quake3___Win32_Release_TA_DEMO/quake3live.pch</PrecompiledHeaderOutputFile>
|
||||||
<AssemblerListingLocation>.\quake3___Win32_Release_TA_DEMO/</AssemblerListingLocation>
|
<AssemblerListingLocation>.\quake3___Win32_Release_TA_DEMO/</AssemblerListingLocation>
|
||||||
<ObjectFileName>.\quake3___Win32_Release_TA_DEMO/</ObjectFileName>
|
<ObjectFileName>.\quake3___Win32_Release_TA_DEMO/</ObjectFileName>
|
||||||
<ProgramDataBaseFileName>.\quake3___Win32_Release_TA_DEMO/</ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>.\quake3___Win32_Release_TA_DEMO/</ProgramDataBaseFileName>
|
||||||
|
|
@ -252,12 +259,12 @@
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>.\quake3___Win32_Release_TA_DEMO/quake3.exe</OutputFile>
|
<OutputFile>.\quake3___Win32_Release_TA_DEMO/quake3live.exe</OutputFile>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>Release_TA/quake3.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>Release_TA/quake3live.pdb</ProgramDatabaseFile>
|
||||||
<GenerateMapFile>true</GenerateMapFile>
|
<GenerateMapFile>true</GenerateMapFile>
|
||||||
<MapFileName>Release_TA/quake3.map</MapFileName>
|
<MapFileName>Release_TA/quake3live.map</MapFileName>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<StackReserveSize>8388608</StackReserveSize>
|
<StackReserveSize>8388608</StackReserveSize>
|
||||||
<TargetMachine>MachineX86</TargetMachine>
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
|
@ -284,7 +291,7 @@
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<PrecompiledHeader />
|
<PrecompiledHeader />
|
||||||
<PrecompiledHeaderOutputFile>.\Release/quake3.pch</PrecompiledHeaderOutputFile>
|
<PrecompiledHeaderOutputFile>.\Release/quake3live.pch</PrecompiledHeaderOutputFile>
|
||||||
<AssemblerListingLocation>.\Release/</AssemblerListingLocation>
|
<AssemblerListingLocation>.\Release/</AssemblerListingLocation>
|
||||||
<ObjectFileName>.\Release/</ObjectFileName>
|
<ObjectFileName>.\Release/</ObjectFileName>
|
||||||
<ProgramDataBaseFileName>.\Release/</ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>.\Release/</ProgramDataBaseFileName>
|
||||||
|
|
@ -293,12 +300,12 @@
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>.\Release/quake3.exe</OutputFile>
|
<OutputFile>.\Release/quake3live.exe</OutputFile>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>.\Release/quake3.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>.\Release/quake3live.pdb</ProgramDatabaseFile>
|
||||||
<GenerateMapFile>true</GenerateMapFile>
|
<GenerateMapFile>true</GenerateMapFile>
|
||||||
<MapFileName>.\Release/quake3.map</MapFileName>
|
<MapFileName>.\Release/quake3live.map</MapFileName>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<StackReserveSize>8388608</StackReserveSize>
|
<StackReserveSize>8388608</StackReserveSize>
|
||||||
<TargetMachine>MachineX86</TargetMachine>
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
|
@ -322,7 +329,7 @@
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;PRE_RELEASE_TADEMO;PRE_RELEASE_DEMO;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;PRE_RELEASE_TADEMO;PRE_RELEASE_DEMO;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
<PrecompiledHeader />
|
<PrecompiledHeader />
|
||||||
<PrecompiledHeaderOutputFile>.\quake3___Win32_Debug_TA_DEMO/quake3.pch</PrecompiledHeaderOutputFile>
|
<PrecompiledHeaderOutputFile>.\quake3___Win32_Debug_TA_DEMO/quake3live.pch</PrecompiledHeaderOutputFile>
|
||||||
<AssemblerListingLocation>.\quake3___Win32_Debug_TA_DEMO/</AssemblerListingLocation>
|
<AssemblerListingLocation>.\quake3___Win32_Debug_TA_DEMO/</AssemblerListingLocation>
|
||||||
<ObjectFileName>.\quake3___Win32_Debug_TA_DEMO/</ObjectFileName>
|
<ObjectFileName>.\quake3___Win32_Debug_TA_DEMO/</ObjectFileName>
|
||||||
<ProgramDataBaseFileName>.\quake3___Win32_Debug_TA_DEMO/</ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>.\quake3___Win32_Debug_TA_DEMO/</ProgramDataBaseFileName>
|
||||||
|
|
@ -334,12 +341,12 @@
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>.\quake3___Win32_Debug_TA_DEMO/quake3.exe</OutputFile>
|
<OutputFile>.\quake3___Win32_Debug_TA_DEMO/quake3live.exe</OutputFile>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>.\quake3___Win32_Debug_TA_DEMO/quake3.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>.\quake3___Win32_Debug_TA_DEMO/quake3live.pdb</ProgramDatabaseFile>
|
||||||
<GenerateMapFile>true</GenerateMapFile>
|
<GenerateMapFile>true</GenerateMapFile>
|
||||||
<MapFileName>Debug_TA/quake3.map</MapFileName>
|
<MapFileName>Debug_TA/quake3live.map</MapFileName>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<StackReserveSize>8388608</StackReserveSize>
|
<StackReserveSize>8388608</StackReserveSize>
|
||||||
<TargetMachine>MachineX86</TargetMachine>
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
|
@ -368,7 +375,7 @@
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<PrecompiledHeader />
|
<PrecompiledHeader />
|
||||||
<PrecompiledHeaderOutputFile>.\quake3___Win32_vector0/quake3.pch</PrecompiledHeaderOutputFile>
|
<PrecompiledHeaderOutputFile>.\quake3___Win32_vector0/quake3live.pch</PrecompiledHeaderOutputFile>
|
||||||
<AssemblerListingLocation>.\quake3___Win32_vector0/</AssemblerListingLocation>
|
<AssemblerListingLocation>.\quake3___Win32_vector0/</AssemblerListingLocation>
|
||||||
<ObjectFileName>.\quake3___Win32_vector0/</ObjectFileName>
|
<ObjectFileName>.\quake3___Win32_vector0/</ObjectFileName>
|
||||||
<ProgramDataBaseFileName>.\quake3___Win32_vector0/</ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>.\quake3___Win32_vector0/</ProgramDataBaseFileName>
|
||||||
|
|
@ -378,12 +385,12 @@
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>.\quake3___Win32_vector0/quake3.exe</OutputFile>
|
<OutputFile>.\quake3___Win32_vector0/quake3live.exe</OutputFile>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>Release_TA/quake3.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>Release_TA/quake3live.pdb</ProgramDatabaseFile>
|
||||||
<GenerateMapFile>true</GenerateMapFile>
|
<GenerateMapFile>true</GenerateMapFile>
|
||||||
<MapFileName>Release_TA/quake3.map</MapFileName>
|
<MapFileName>Release_TA/quake3live.map</MapFileName>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<StackReserveSize>8388608</StackReserveSize>
|
<StackReserveSize>8388608</StackReserveSize>
|
||||||
<TargetMachine>MachineX86</TargetMachine>
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
|
@ -407,7 +414,7 @@
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
<PrecompiledHeader />
|
<PrecompiledHeader />
|
||||||
<PrecompiledHeaderOutputFile>.\Debug_TA/quake3.pch</PrecompiledHeaderOutputFile>
|
<PrecompiledHeaderOutputFile>.\Debug_TA/quake3live.pch</PrecompiledHeaderOutputFile>
|
||||||
<AssemblerListingLocation>.\Debug_TA/</AssemblerListingLocation>
|
<AssemblerListingLocation>.\Debug_TA/</AssemblerListingLocation>
|
||||||
<ObjectFileName>.\Debug_TA/</ObjectFileName>
|
<ObjectFileName>.\Debug_TA/</ObjectFileName>
|
||||||
<ProgramDataBaseFileName>.\Debug_TA/</ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>.\Debug_TA/</ProgramDataBaseFileName>
|
||||||
|
|
@ -419,12 +426,12 @@
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>dinput8.lib;winmm.lib;wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<OutputFile>.\Debug_TA/quake3.exe</OutputFile>
|
<OutputFile>.\Debug_TA/quake3live.exe</OutputFile>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ProgramDatabaseFile>.\Debug_TA/quake3.pdb</ProgramDatabaseFile>
|
<ProgramDatabaseFile>.\Debug_TA/quake3live.pdb</ProgramDatabaseFile>
|
||||||
<GenerateMapFile>true</GenerateMapFile>
|
<GenerateMapFile>true</GenerateMapFile>
|
||||||
<MapFileName>Debug_TA/quake3.map</MapFileName>
|
<MapFileName>Debug_TA/quake3live.map</MapFileName>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<StackReserveSize>8388608</StackReserveSize>
|
<StackReserveSize>8388608</StackReserveSize>
|
||||||
<TargetMachine>MachineX86</TargetMachine>
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
|
|
||||||
|
|
@ -560,4 +560,16 @@
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug TA|Win32'">
|
||||||
|
<_CopyOutputFile>$(SolutionDir)Debug_TA\uix86.dll</_CopyOutputFile>
|
||||||
|
<_CopyOutputDir>$(SolutionDir)..\workdir\missionpack\</_CopyOutputDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release TA|Win32'">
|
||||||
|
<_CopyOutputFile>$(SolutionDir)Release_TA\uix86.dll</_CopyOutputFile>
|
||||||
|
<_CopyOutputDir>$(SolutionDir)..\workdir\missionpack\</_CopyOutputDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Target Name="AfterBuild" Condition="'$(_CopyOutputFile)' != ''">
|
||||||
|
<MakeDir Directories="$(_CopyOutputDir)" />
|
||||||
|
<Copy SourceFiles="$(_CopyOutputFile)" DestinationFolder="$(_CopyOutputDir)" />
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
@ -37,6 +37,10 @@ static unsigned short s_oldHardwareGamma[3][256];
|
||||||
*/
|
*/
|
||||||
void WG_CheckHardwareGamma( void )
|
void WG_CheckHardwareGamma( void )
|
||||||
{
|
{
|
||||||
|
#ifndef ENABLE_HW_GAMMA
|
||||||
|
glConfig.deviceSupportsGamma = qfalse;
|
||||||
|
return;
|
||||||
|
#else
|
||||||
HDC hDC;
|
HDC hDC;
|
||||||
|
|
||||||
glConfig.deviceSupportsGamma = qfalse;
|
glConfig.deviceSupportsGamma = qfalse;
|
||||||
|
|
@ -96,6 +100,7 @@ void WG_CheckHardwareGamma( void )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // ENABLE_HW_GAMMA
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -131,6 +136,9 @@ void mapGammaMax( void ) {
|
||||||
** This routine should only be called if glConfig.deviceSupportsGamma is TRUE
|
** This routine should only be called if glConfig.deviceSupportsGamma is TRUE
|
||||||
*/
|
*/
|
||||||
void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned char blue[256] ) {
|
void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned char blue[256] ) {
|
||||||
|
#ifndef ENABLE_HW_GAMMA
|
||||||
|
return;
|
||||||
|
#else
|
||||||
unsigned short table[3][256];
|
unsigned short table[3][256];
|
||||||
int i, j;
|
int i, j;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
@ -188,6 +196,7 @@ void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned
|
||||||
Com_Printf( "SetDeviceGammaRamp failed.\n" );
|
Com_Printf( "SetDeviceGammaRamp failed.\n" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // ENABLE_HW_GAMMA
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -195,6 +204,9 @@ void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned
|
||||||
*/
|
*/
|
||||||
void WG_RestoreGamma( void )
|
void WG_RestoreGamma( void )
|
||||||
{
|
{
|
||||||
|
#ifndef ENABLE_HW_GAMMA
|
||||||
|
return;
|
||||||
|
#else
|
||||||
if ( glConfig.deviceSupportsGamma )
|
if ( glConfig.deviceSupportsGamma )
|
||||||
{
|
{
|
||||||
if ( qwglSetDeviceGammaRamp3DFX )
|
if ( qwglSetDeviceGammaRamp3DFX )
|
||||||
|
|
@ -210,5 +222,6 @@ void WG_RestoreGamma( void )
|
||||||
ReleaseDC( GetDesktopWindow(), hDC );
|
ReleaseDC( GetDesktopWindow(), hDC );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // ENABLE_HW_GAMMA
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue