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

Commit

Permalink
Added MD5 check & Colored console text, also makes use of PCH
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Drahsid committed Nov 24, 2018
1 parent b0a23f6 commit ca6512f
Show file tree
Hide file tree
Showing 7 changed files with 509 additions and 30 deletions.
13 changes: 7 additions & 6 deletions Config.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#pragma once

#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <type_traits>
#ifndef CONFIG_H
#define CONFIG_H

#include "pch.h"
#include "Interp.h"

enum typeConversion
Expand Down Expand Up @@ -361,3 +359,6 @@ namespace Config
}
}
}

#endif

Binary file modified FFXIITZAFPSU.cpp
Binary file not shown.
44 changes: 20 additions & 24 deletions FFXIITZAFPSU.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,14 @@
<IntrinsicFunctions>true</IntrinsicFunctions>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<WholeProgramOptimization>true</WholeProgramOptimization>
<MinimalRebuild>true</MinimalRebuild>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<SupportJustMyCode>false</SupportJustMyCode>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>true</BufferSecurityCheck>
<BufferSecurityCheck>false</BufferSecurityCheck>
<EnablePREfast>true</EnablePREfast>
<SDLCheck>true</SDLCheck>
<LanguageStandard>stdcpplatest</LanguageStandard>
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
<LanguageStandard>stdcpp17</LanguageStandard>
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -180,15 +179,14 @@
<IntrinsicFunctions>true</IntrinsicFunctions>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<WholeProgramOptimization>true</WholeProgramOptimization>
<MinimalRebuild>true</MinimalRebuild>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<SupportJustMyCode>false</SupportJustMyCode>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>true</BufferSecurityCheck>
<BufferSecurityCheck>false</BufferSecurityCheck>
<EnablePREfast>true</EnablePREfast>
<SDLCheck>true</SDLCheck>
<LanguageStandard>stdcpplatest</LanguageStandard>
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
<LanguageStandard>stdcpp17</LanguageStandard>
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -208,12 +206,11 @@
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<MinimalRebuild>true</MinimalRebuild>
<BufferSecurityCheck>true</BufferSecurityCheck>
<BufferSecurityCheck>false</BufferSecurityCheck>
<EnablePREfast>true</EnablePREfast>
<SDLCheck>true</SDLCheck>
<LanguageStandard>stdcpplatest</LanguageStandard>
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
<LanguageStandard>stdcpp17</LanguageStandard>
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -235,12 +232,11 @@
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<MinimalRebuild>true</MinimalRebuild>
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
<BufferSecurityCheck>true</BufferSecurityCheck>
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
<BufferSecurityCheck>false</BufferSecurityCheck>
<EnablePREfast>true</EnablePREfast>
<SDLCheck>true</SDLCheck>
<LanguageStandard>stdcpplatest</LanguageStandard>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -262,12 +258,11 @@
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<MinimalRebuild>true</MinimalRebuild>
<BufferSecurityCheck>true</BufferSecurityCheck>
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
<BufferSecurityCheck>false</BufferSecurityCheck>
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
<EnablePREfast>true</EnablePREfast>
<SDLCheck>true</SDLCheck>
<LanguageStandard>stdcpplatest</LanguageStandard>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -289,12 +284,11 @@
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<MinimalRebuild>true</MinimalRebuild>
<BufferSecurityCheck>true</BufferSecurityCheck>
<EnableEnhancedInstructionSet>AdvancedVectorExtensions2</EnableEnhancedInstructionSet>
<BufferSecurityCheck>false</BufferSecurityCheck>
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
<EnablePREfast>true</EnablePREfast>
<SDLCheck>true</SDLCheck>
<LanguageStandard>stdcpplatest</LanguageStandard>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -308,10 +302,12 @@
<ClInclude Include="Config.h" />
<ClInclude Include="ConfigFile.h" />
<ClInclude Include="Interp.h" />
<ClInclude Include="md5.h" />
<ClInclude Include="pch.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="FFXIITZAFPSU.cpp" />
<ClCompile Include="md5.cpp" />
<ClCompile Include="pch.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
Expand Down
6 changes: 6 additions & 0 deletions FFXIITZAFPSU.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
<ClInclude Include="Interp.h">
<Filter>Source Files</Filter>
</ClInclude>
<ClInclude Include="md5.h">
<Filter>Source Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="pch.cpp">
Expand All @@ -35,5 +38,8 @@
<ClCompile Include="FFXIITZAFPSU.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="md5.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
Loading

0 comments on commit ca6512f

Please sign in to comment.