From 98a4f588cee50f553f13cf221faa132b5313fb6b Mon Sep 17 00:00:00 2001 From: 3096 Date: Thu, 20 Dec 2018 11:25:05 -0800 Subject: [PATCH] Update README and verify fail message --- README.md | 6 +----- source/main.cpp | 8 ++++++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2bf85bb..1d9cc76 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # splatsave -C++ implementation of Splatoon 2 save decoding/encoding, with full encryption support and ver 4 shuffle. +C++ implementation of Splatoon 2 save decoding/encoding, supports up to save version 8 (update 4.3.1). Requires [mbedtls](https://github.com/ARMmbed/mbedtls) and zlib to compile. @@ -9,7 +9,3 @@ Requires [mbedtls](https://github.com/ARMmbed/mbedtls) and zlib to compile. ### Thanks - Lean for bombing me with hints when I reversed ver 4 shuffle. -- SciresM for the original crypto script and csrngGetRandomBytes. -- Rajko on suggesting mbedtls and csrngGetRandomBytes. - -Shout out to WulfyStylez. [Apparently he had save encryption figured out on day 1](https://github.com/WulfyStylez/switch-save-work/tree/master/splatcrypt) but nobody noticed, lol. diff --git a/source/main.cpp b/source/main.cpp index d6fd50d..eee14b1 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -64,7 +64,7 @@ int splatsave(int argc, char const* argv[]) { "was previously unmodified, please submit an issue " "on the project's GitHub page or send me an email at " "contact@the3096.com! Thank you." - << std::hex << e.m_size << std::endl; + << std::endl; } else { std::cout << "Save size incorrect: 0x" << std::hex << e.m_size << std::endl; @@ -74,7 +74,11 @@ int splatsave(int argc, char const* argv[]) { std::cout << "Save version unsupported: " << e.m_version << std::endl; return -3; } catch (SaveDataFactory::DecodeFailToVerify& e) { - std::cout << "Cannot verify save." << std::endl; + std::cout << "Cannot verify save. If you believe this is a mistake, " + "and your save is intact, please submit an issue " + "on the project's GitHub page or send me an email at " + "contact@the3096.com! Thank you." + << std::endl; return -2; } catch (SaveDataFactory::CouldNotOpenFile& e) { std::cout << "Could not open " << path << std::endl;