Skip to content

Commit

Permalink
Merge pull request #218 from ko4life-net/externalize-util-functions
Browse files Browse the repository at this point in the history
Extract common functionality into N3Utils header.
  • Loading branch information
stevewgr committed Apr 27, 2024
2 parents 358e29e + e0d2057 commit 3badcad
Show file tree
Hide file tree
Showing 43 changed files with 128 additions and 60 deletions.
15 changes: 15 additions & 0 deletions src/common/N3Utils.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

#pragma once

#include <string>
#include <ranges>
#include <algorithm>

namespace N3 {

static bool iequals(const std::string_view & lhs, const std::string_view & rhs) {
auto to_lower{std::ranges::views::transform(::tolower)};
return std::ranges::equal(lhs | to_lower, rhs | to_lower);
}

} // namespace N3
1 change: 1 addition & 0 deletions src/game/KnightOnLine.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
<ItemGroup>
<ClInclude Include="..\common\Implode.h" />
<ClInclude Include="..\common\JvCryption.h" />
<ClInclude Include="..\common\N3Utils.h" />
<ClInclude Include="..\engine\N3Base\JpegFile.h" />
<ClInclude Include="..\engine\N3Base\BitMapFile.h" />
<ClInclude Include="..\engine\N3Base\DFont.h" />
Expand Down
3 changes: 3 additions & 0 deletions src/game/KnightOnLine.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,9 @@
<ClInclude Include="UIExitMenu.h">
<Filter>Procedure - Main\UI</Filter>
</ClInclude>
<ClInclude Include="..\common\N3Utils.h">
<Filter>N3Base\Core</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\Resource.rc">
Expand Down
8 changes: 1 addition & 7 deletions src/game/StdAfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <filesystem>
#include <io.h>

#include "N3Utils.h"
#include "N3Base/My_3DStruct.h"
#include "N3Base/N3Log.h"

Expand All @@ -33,10 +34,3 @@ namespace fs = std::filesystem;
#else
#define TRACE(fmt, ...) (void)fmt
#endif

namespace N3 {
static bool iequals(const std::string_view & lhs, const std::string_view & rhs) {
auto to_lower{std::ranges::views::transform(::tolower)};
return std::ranges::equal(lhs | to_lower, rhs | to_lower);
}
} // namespace N3
1 change: 1 addition & 0 deletions src/server/AIServer/AIServer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\common\Implode.h" />
<ClInclude Include="..\..\common\N3Utils.h" />
<ClInclude Include="CircularBuffer.h" />
<ClInclude Include="Compress.h" />
<ClInclude Include="Define.h" />
Expand Down
3 changes: 3 additions & 0 deletions src/server/AIServer/AIServer.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@
<ClInclude Include="..\..\common\Implode.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\common\N3Utils.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="res\AIServer.ico" />
Expand Down
9 changes: 2 additions & 7 deletions src/server/AIServer/StdAfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <ranges>
#include <algorithm>

#include "N3Utils.h"

//#include "Mmsystem.h"
//#include "Imm.h"
//#include "N3Base/My_3DStruct.h"
Expand All @@ -40,10 +42,3 @@

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

namespace N3 {
static bool iequals(const std::string_view & lhs, const std::string_view & rhs) {
auto to_lower{std::ranges::views::transform(::tolower)};
return std::ranges::equal(lhs | to_lower, rhs | to_lower);
}
} // namespace N3
5 changes: 3 additions & 2 deletions src/server/Aujard/Aujard.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;__SAMMA;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
Expand Down Expand Up @@ -91,7 +91,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;__SAMMA;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<IntrinsicFunctions>true</IntrinsicFunctions>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down Expand Up @@ -129,6 +129,7 @@
<ResourceCompile Include="Aujard.rc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\common\N3Utils.h" />
<ClInclude Include="Aujard.h" />
<ClInclude Include="AujardDlg.h" />
<ClInclude Include="DBAgent.h" />
Expand Down
3 changes: 3 additions & 0 deletions src/server/Aujard/Aujard.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
<ClInclude Include="STLMap.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\common\N3Utils.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="res\Aujard.ico">
Expand Down
1 change: 1 addition & 0 deletions src/server/Ebenezer/Ebenezer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
<ItemGroup>
<ClInclude Include="..\..\common\Implode.h" />
<ClInclude Include="..\..\common\JvCryption.h" />
<ClInclude Include="..\..\common\N3Utils.h" />
<ClInclude Include="AIPacket.h" />
<ClInclude Include="AISocket.h" />
<ClInclude Include="BattleSet.h" />
Expand Down
3 changes: 3 additions & 0 deletions src/server/Ebenezer/Ebenezer.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@
<ClInclude Include="..\..\common\Implode.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\common\N3Utils.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="res\Ebenezer.ico">
Expand Down
5 changes: 3 additions & 2 deletions src/server/ItemManager/ItemManager.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_3DSERVER;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
Expand Down Expand Up @@ -91,7 +91,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_3DSERVER;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<IntrinsicFunctions>true</IntrinsicFunctions>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down Expand Up @@ -128,6 +128,7 @@
<ResourceCompile Include="ItemManager.rc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\common\N3Utils.h" />
<ClInclude Include="DBAgent.h" />
<ClInclude Include="Define.h" />
<ClInclude Include="ItemManager.h" />
Expand Down
3 changes: 3 additions & 0 deletions src/server/ItemManager/ItemManager.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
<ClInclude Include="STLMap.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\common\N3Utils.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="res\ItemManager.ico">
Expand Down
5 changes: 3 additions & 2 deletions src/server/LoginServer/LoginServer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(VendorDir)\zlib\include;$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(VendorDir)\zlib\include;$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
Expand Down Expand Up @@ -93,7 +93,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(VendorDir)\zlib\include;$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(VendorDir)\zlib\include;$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<IntrinsicFunctions>true</IntrinsicFunctions>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down Expand Up @@ -139,6 +139,7 @@
<ResourceCompile Include="LoginServer.rc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\common\N3Utils.h" />
<ClInclude Include="CircularBuffer.h" />
<ClInclude Include="DBProcess.h" />
<ClInclude Include="Define.h" />
Expand Down
3 changes: 3 additions & 0 deletions src/server/LoginServer/LoginServer.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
<ClInclude Include="VersionSet.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\common\N3Utils.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="res\LoginServer.ico">
Expand Down
5 changes: 3 additions & 2 deletions src/tool/KscViewer/KscViewer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SrcDir)\engine;$(VendorDir)\spdlog\include;$(VendorDir)\jpeglib\include;$(WindowsSDK_IncludePath);$(VendorDir)\DXSDK9\Include</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(SrcDir)\engine;$(VendorDir)\spdlog\include;$(VendorDir)\jpeglib\include;$(WindowsSDK_IncludePath);$(VendorDir)\DXSDK9\Include</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
Expand Down Expand Up @@ -93,7 +93,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SrcDir)\engine;$(VendorDir)\jpeglib\include;$(VendorDir)\spdlog\include;$(WindowsSDK_IncludePath);$(VendorDir)\DXSDK9\Include</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(SrcDir)\engine;$(VendorDir)\jpeglib\include;$(VendorDir)\spdlog\include;$(WindowsSDK_IncludePath);$(VendorDir)\DXSDK9\Include</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<IntrinsicFunctions>true</IntrinsicFunctions>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down Expand Up @@ -135,6 +135,7 @@
<ResourceCompile Include="KscViewer.rc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\common\N3Utils.h" />
<ClInclude Include="..\..\engine\N3Base\N3Log.h" />
<ClInclude Include="..\..\engine\N3Base\JpegFile.h" />
<ClInclude Include="KscViewer.h" />
Expand Down
3 changes: 3 additions & 0 deletions src/tool/KscViewer/KscViewer.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@
<ClInclude Include="..\..\engine\N3Base\N3Log.h">
<Filter>N3Base</Filter>
</ClInclude>
<ClInclude Include="..\..\common\N3Utils.h">
<Filter>N3Base</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="res\KscViewer.ico">
Expand Down
5 changes: 3 additions & 2 deletions src/tool/Launcher/Launcher/Launcher.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(VendorDir)\zlib\include;$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(VendorDir)\zlib\include;$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
Expand Down Expand Up @@ -92,7 +92,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(VendorDir)\zlib\include;$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(VendorDir)\zlib\include;$(WindowsSDK_IncludePath)</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<IntrinsicFunctions>true</IntrinsicFunctions>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down Expand Up @@ -132,6 +132,7 @@
<ResourceCompile Include="Launcher.rc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\common\N3Utils.h" />
<ClInclude Include="APISocket.h" />
<ClInclude Include="BackgroundUtil.h" />
<ClInclude Include="BB_CircularBuffer.h" />
Expand Down
3 changes: 3 additions & 0 deletions src/tool/Launcher/Launcher/Launcher.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
<ClInclude Include="StdAfx.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\common\N3Utils.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="res\Bkg.bmp">
Expand Down
5 changes: 3 additions & 2 deletions src/tool/N3CE/N3CE.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>_DEBUG;WIN32;_WINDOWS;_N3TOOL;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SrcDir)\engine;$(VendorDir)\spdlog\include;$(WindowsSDK_IncludePath);$(VendorDir)\DXSDK9\Include</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(SrcDir)\engine;$(VendorDir)\spdlog\include;$(WindowsSDK_IncludePath);$(VendorDir)\DXSDK9\Include</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
Expand Down Expand Up @@ -93,7 +93,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_N3TOOL;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SrcDir)\engine;$(VendorDir)\spdlog\include;$(WindowsSDK_IncludePath);$(VendorDir)\DXSDK9\Include</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(SrcDir)\engine;$(VendorDir)\spdlog\include;$(WindowsSDK_IncludePath);$(VendorDir)\DXSDK9\Include</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<IntrinsicFunctions>true</IntrinsicFunctions>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down Expand Up @@ -182,6 +182,7 @@
<ResourceCompile Include="N3CE.rc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\common\N3Utils.h" />
<ClInclude Include="..\..\engine\N3Base\N3Log.h" />
<ClInclude Include="..\Widget\PropertyList.h" />
<ClInclude Include="..\..\engine\N3Base\BitMapFile.h" />
Expand Down
3 changes: 3 additions & 0 deletions src/tool/N3CE/N3CE.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@
<ClInclude Include="..\..\engine\N3Base\N3Log.h">
<Filter>N3Base</Filter>
</ClInclude>
<ClInclude Include="..\..\common\N3Utils.h">
<Filter>N3Base</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="res\N3CE.ico">
Expand Down
5 changes: 3 additions & 2 deletions src/tool/N3FXE/N3FXE.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>_DEBUG;WIN32;_WINDOWS;_N3TOOL;_CRT_SECURE_NO_WARNINGS;DIRECTINPUT_VERSION=0x0800;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SrcDir)\engine;$(SrcDir)\game;$(VendorDir)\spdlog\include;$(WindowsSDK_IncludePath);$(VendorDir)\DXSDK9\Include</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(SrcDir)\engine;$(SrcDir)\game;$(VendorDir)\spdlog\include;$(WindowsSDK_IncludePath);$(VendorDir)\DXSDK9\Include</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
Expand Down Expand Up @@ -93,7 +93,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_N3TOOL;_CRT_SECURE_NO_WARNINGS;DIRECTINPUT_VERSION=0x0800;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SrcDir)\engine;$(SrcDir)\game;$(VendorDir)\spdlog\include;$(WindowsSDK_IncludePath);$(VendorDir)\DXSDK9\Include</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SrcDir)\common;$(SrcDir)\engine;$(SrcDir)\game;$(VendorDir)\spdlog\include;$(WindowsSDK_IncludePath);$(VendorDir)\DXSDK9\Include</AdditionalIncludeDirectories>
<AdditionalOptions>/wd4018 /wd4091 /wd4244 /wd4267 /wd4477 /wd4838 /wd6031 /wd26495 /wd4102 %(AdditionalOptions)</AdditionalOptions>
<IntrinsicFunctions>true</IntrinsicFunctions>
<FunctionLevelLinking>true</FunctionLevelLinking>
Expand Down Expand Up @@ -202,6 +202,7 @@
<ResourceCompile Include="N3FXE.rc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\common\N3Utils.h" />
<ClInclude Include="..\..\engine\N3Base\N3Log.h" />
<ClInclude Include="..\..\engine\N3Base\BitMapFile.h" />
<ClInclude Include="..\..\engine\N3Base\DFont.h" />
Expand Down
3 changes: 3 additions & 0 deletions src/tool/N3FXE/N3FXE.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@
<ClInclude Include="..\..\engine\N3Base\N3Log.h">
<Filter>N3Base</Filter>
</ClInclude>
<ClInclude Include="..\..\common\N3Utils.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="res\N3FXE.ico">
Expand Down
Loading

0 comments on commit 3badcad

Please sign in to comment.