VerifyTool: Add missing USE_RETRO_ACHIEVEMENTS ifdefs

This commit is contained in:
JosJuice 2024-12-15 18:15:57 +01:00 committed by camdenorrb
commit 2b1001a706

View file

@ -133,8 +133,10 @@ int VerifyCommand(const std::vector<std::string>& args)
hashes_to_calculate.md5 = true; hashes_to_calculate.md5 = true;
else if (algorithm == "sha1") else if (algorithm == "sha1")
hashes_to_calculate.sha1 = true; hashes_to_calculate.sha1 = true;
#ifdef USE_RETRO_ACHIEVEMENTS
else if (algorithm == "rchash") else if (algorithm == "rchash")
rc_hash_calculate = true; rc_hash_calculate = true;
#endif
} }
if (!hashes_to_calculate.crc32 && !hashes_to_calculate.md5 && !hashes_to_calculate.sha1 && if (!hashes_to_calculate.crc32 && !hashes_to_calculate.md5 && !hashes_to_calculate.sha1 &&
@ -171,7 +173,6 @@ int VerifyCommand(const std::vector<std::string>& args)
} }
#endif #endif
// Print the report // Print the report
if (!algorithm_is_set) if (!algorithm_is_set)
{ {