Skip to content

Commit

Permalink
Support Visual Studio 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
rombust committed Aug 20, 2024
1 parent ebf9ac9 commit d0a1efc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Methane-vc2019.sln → Methane-vc2022.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C++ Express 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Methane", "Methane-vc2019.vcxproj", "{5D938E44-B704-4310-9DF3-8AED87D955B4}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Methane", "Methane-vc2022.vcxproj", "{5D938E44-B704-4310-9DF3-8AED87D955B4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
8 changes: 5 additions & 3 deletions Methane-vc2019.vcxproj → Methane-vc2022.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@
<ProjectGuid>{5D938E44-B704-4310-9DF3-8AED87D955B4}</ProjectGuid>
<RootNamespace>Methane</RootNamespace>
<Keyword>Win32Proj</Keyword>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>NotSet</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>NotSet</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand All @@ -51,13 +52,13 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;ENABLE_SOUND;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<PrecompiledHeader>Use</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<PrecompiledHeaderFile>precomp.h</PrecompiledHeaderFile>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand All @@ -76,6 +77,7 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<PrecompiledHeaderFile>precomp.h</PrecompiledHeaderFile>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions sources/methane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
#include "doc.h"
#include "ClanMikmod/setupmikmod.h"

#if defined(_MSC_VER)
#pragma comment(lib, "libmikmod.lib")
#endif

bool GLOBAL_SoundEnable = true;
bool GLOBAL_CheatModeEnable = false;
bool GLOBAL_GamepadsEnable = true;
Expand Down

0 comments on commit d0a1efc

Please sign in to comment.