Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit ca6512f

Browse files
committed
Added MD5 check & Colored console text, also makes use of PCH
The program now checks for the file's MD5 hash and warns users that patched versions of the file may result in unwanted bugs. The console text now has color to it. The program now uses pch.h
1 parent b0a23f6 commit ca6512f

File tree

7 files changed

+509
-30
lines changed

7 files changed

+509
-30
lines changed

Config.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#pragma once
22

3-
#include <iostream>
4-
#include <string>
5-
#include <fstream>
6-
#include <sstream>
7-
#include <algorithm>
8-
#include <type_traits>
3+
#ifndef CONFIG_H
4+
#define CONFIG_H
5+
6+
#include "pch.h"
97
#include "Interp.h"
108

119
enum typeConversion
@@ -361,3 +359,6 @@ namespace Config
361359
}
362360
}
363361
}
362+
363+
#endif
364+

FFXIITZAFPSU.cpp

8.84 KB
Binary file not shown.

FFXIITZAFPSU.vcxproj

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,14 @@
152152
<IntrinsicFunctions>true</IntrinsicFunctions>
153153
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
154154
<WholeProgramOptimization>true</WholeProgramOptimization>
155-
<MinimalRebuild>true</MinimalRebuild>
156155
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
157156
<SupportJustMyCode>false</SupportJustMyCode>
158157
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
159-
<BufferSecurityCheck>true</BufferSecurityCheck>
158+
<BufferSecurityCheck>false</BufferSecurityCheck>
160159
<EnablePREfast>true</EnablePREfast>
161160
<SDLCheck>true</SDLCheck>
162-
<LanguageStandard>stdcpplatest</LanguageStandard>
163-
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
161+
<LanguageStandard>stdcpp17</LanguageStandard>
162+
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
164163
</ClCompile>
165164
<Link>
166165
<SubSystem>Console</SubSystem>
@@ -180,15 +179,14 @@
180179
<IntrinsicFunctions>true</IntrinsicFunctions>
181180
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
182181
<WholeProgramOptimization>true</WholeProgramOptimization>
183-
<MinimalRebuild>true</MinimalRebuild>
184182
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
185183
<SupportJustMyCode>false</SupportJustMyCode>
186184
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
187-
<BufferSecurityCheck>true</BufferSecurityCheck>
185+
<BufferSecurityCheck>false</BufferSecurityCheck>
188186
<EnablePREfast>true</EnablePREfast>
189187
<SDLCheck>true</SDLCheck>
190-
<LanguageStandard>stdcpplatest</LanguageStandard>
191-
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
188+
<LanguageStandard>stdcpp17</LanguageStandard>
189+
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
192190
</ClCompile>
193191
<Link>
194192
<SubSystem>Console</SubSystem>
@@ -208,12 +206,11 @@
208206
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
209207
<MultiProcessorCompilation>true</MultiProcessorCompilation>
210208
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
211-
<MinimalRebuild>true</MinimalRebuild>
212-
<BufferSecurityCheck>true</BufferSecurityCheck>
209+
<BufferSecurityCheck>false</BufferSecurityCheck>
213210
<EnablePREfast>true</EnablePREfast>
214211
<SDLCheck>true</SDLCheck>
215-
<LanguageStandard>stdcpplatest</LanguageStandard>
216-
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
212+
<LanguageStandard>stdcpp17</LanguageStandard>
213+
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
217214
</ClCompile>
218215
<Link>
219216
<SubSystem>Console</SubSystem>
@@ -235,12 +232,11 @@
235232
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
236233
<MultiProcessorCompilation>true</MultiProcessorCompilation>
237234
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
238-
<MinimalRebuild>true</MinimalRebuild>
239-
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
240-
<BufferSecurityCheck>true</BufferSecurityCheck>
235+
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
236+
<BufferSecurityCheck>false</BufferSecurityCheck>
241237
<EnablePREfast>true</EnablePREfast>
242238
<SDLCheck>true</SDLCheck>
243-
<LanguageStandard>stdcpplatest</LanguageStandard>
239+
<LanguageStandard>stdcpp17</LanguageStandard>
244240
</ClCompile>
245241
<Link>
246242
<SubSystem>Console</SubSystem>
@@ -262,12 +258,11 @@
262258
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
263259
<MultiProcessorCompilation>true</MultiProcessorCompilation>
264260
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
265-
<MinimalRebuild>true</MinimalRebuild>
266-
<BufferSecurityCheck>true</BufferSecurityCheck>
267-
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
261+
<BufferSecurityCheck>false</BufferSecurityCheck>
262+
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
268263
<EnablePREfast>true</EnablePREfast>
269264
<SDLCheck>true</SDLCheck>
270-
<LanguageStandard>stdcpplatest</LanguageStandard>
265+
<LanguageStandard>stdcpp17</LanguageStandard>
271266
</ClCompile>
272267
<Link>
273268
<SubSystem>Console</SubSystem>
@@ -289,12 +284,11 @@
289284
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
290285
<MultiProcessorCompilation>true</MultiProcessorCompilation>
291286
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
292-
<MinimalRebuild>true</MinimalRebuild>
293-
<BufferSecurityCheck>true</BufferSecurityCheck>
294-
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
287+
<BufferSecurityCheck>false</BufferSecurityCheck>
288+
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
295289
<EnablePREfast>true</EnablePREfast>
296290
<SDLCheck>true</SDLCheck>
297-
<LanguageStandard>stdcpplatest</LanguageStandard>
291+
<LanguageStandard>stdcpp17</LanguageStandard>
298292
</ClCompile>
299293
<Link>
300294
<SubSystem>Console</SubSystem>
@@ -308,10 +302,12 @@
308302
<ClInclude Include="Config.h" />
309303
<ClInclude Include="ConfigFile.h" />
310304
<ClInclude Include="Interp.h" />
305+
<ClInclude Include="md5.h" />
311306
<ClInclude Include="pch.h" />
312307
</ItemGroup>
313308
<ItemGroup>
314309
<ClCompile Include="FFXIITZAFPSU.cpp" />
310+
<ClCompile Include="md5.cpp" />
315311
<ClCompile Include="pch.cpp">
316312
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
317313
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>

FFXIITZAFPSU.vcxproj.filters

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
<ClInclude Include="Interp.h">
2828
<Filter>Source Files</Filter>
2929
</ClInclude>
30+
<ClInclude Include="md5.h">
31+
<Filter>Source Files</Filter>
32+
</ClInclude>
3033
</ItemGroup>
3134
<ItemGroup>
3235
<ClCompile Include="pch.cpp">
@@ -35,5 +38,8 @@
3538
<ClCompile Include="FFXIITZAFPSU.cpp">
3639
<Filter>Source Files</Filter>
3740
</ClCompile>
41+
<ClCompile Include="md5.cpp">
42+
<Filter>Source Files</Filter>
43+
</ClCompile>
3844
</ItemGroup>
3945
</Project>

0 commit comments

Comments
 (0)