diff --git a/Makefile b/Makefile index 6fd663a..4c613ba 100644 --- a/Makefile +++ b/Makefile @@ -145,7 +145,7 @@ bin: $(SOURCES) #--------------------------------------------------------------------------------- # Windows rule to use with mingw, mingw openssl pre-built binary: https://wiki.openssl.org/index.php/Binaries win: $(SOURCES) - g++ $(SOURCES)/*.cpp -o splatsave.exe -std=c++11 -lmbedcrypto -lz -static-libstdc++ -static-libgcc + g++ $(SOURCES)/*.cpp -o splatsave.exe -static -std=c++11 -lmbedcrypto -lz -static-libstdc++ -static-libgcc -lpthread #--------------------------------------------------------------------------------- switch: $(BUILD) diff --git a/source/SaveDataFactory.cpp b/source/SaveDataFactory.cpp index ce91bc1..bdd322e 100644 --- a/source/SaveDataFactory.cpp +++ b/source/SaveDataFactory.cpp @@ -1,10 +1,10 @@ #include "SaveDataFactory.h" const int SaveDataFactory::ENCODED_FILE_SIZE[] = { - 0x483B0, 0x483E0, 0x86840, 0x88D90, 0x88D90 + 0x483B0, 0x483E0, 0x86840, 0x88D90, 0x88D90, 0x88D90 }; const int SaveDataFactory::BODY_SIZE[] = { - 0x483A0, 0x483A0, 0x86800, 0x88D50, 0x88D50 + 0x483A0, 0x483A0, 0x86800, 0x88D50, 0x88D50, 0x88D50 }; const uint32_t SaveDataFactory::CRYPT_TAB2[] = { @@ -106,6 +106,7 @@ SaveDataFactory::SaveDataFactory(const std::string save_inPath) { m_cryptTab = CRYPT_TAB3; break; case 4: + case 5: m_cryptTab = CRYPT_TAB4; break; default: diff --git a/source/SaveDataFactory.h b/source/SaveDataFactory.h index d048060..af224ec 100644 --- a/source/SaveDataFactory.h +++ b/source/SaveDataFactory.h @@ -45,7 +45,7 @@ class SaveDataFactory { // save content int m_version; - static const int LATEST_SUPPORT_VERS = 4; + static const int LATEST_SUPPORT_VERS = 5; // save crypto static const uint32_t CRYPT_TAB2[];