summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2024-12-15 14:02:56 -0600
committerGitHub <noreply@github.com>2024-12-15 14:02:56 -0600
commitb4a196731056e458a45f99ea2bb10f0eda19c774 (patch)
tree21c1c05f9c59bba7424de6367fa4f69be6ba3c99 /Source
parentada646a795d954bb6d00441200d71bad437c3d10 (diff)
parentad24ddb6bb01ddaba19bf72e8eda5cae354701ae (diff)
Merge pull request #13226 from JosJuice/achievementmanager-forward-declarations
AchievementManager: Add required forward declarations
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/AchievementManager.h10
-rw-r--r--Source/Core/DolphinTool/VerifyCommand.cpp4
2 files changed, 14 insertions, 0 deletions
diff --git a/Source/Core/Core/AchievementManager.h b/Source/Core/Core/AchievementManager.h
index 9de18f1711..b4ec5f8195 100644
--- a/Source/Core/Core/AchievementManager.h
+++ b/Source/Core/Core/AchievementManager.h
@@ -275,11 +275,21 @@ private:
#include <string>
+namespace ActionReplay
+{
+struct ARCode;
+}
+
namespace DiscIO
{
class Volume;
}
+namespace Gecko
+{
+class GeckoCode;
+}
+
class AchievementManager
{
public:
diff --git a/Source/Core/DolphinTool/VerifyCommand.cpp b/Source/Core/DolphinTool/VerifyCommand.cpp
index b80f00a273..fcaa31b819 100644
--- a/Source/Core/DolphinTool/VerifyCommand.cpp
+++ b/Source/Core/DolphinTool/VerifyCommand.cpp
@@ -133,8 +133,10 @@ int VerifyCommand(const std::vector<std::string>& args)
hashes_to_calculate.md5 = true;
else if (algorithm == "sha1")
hashes_to_calculate.sha1 = true;
+#ifdef USE_RETRO_ACHIEVEMENTS
else if (algorithm == "rchash")
rc_hash_calculate = true;
+#endif
}
if (!hashes_to_calculate.crc32 && !hashes_to_calculate.md5 && !hashes_to_calculate.sha1 &&
@@ -163,11 +165,13 @@ int VerifyCommand(const std::vector<std::string>& args)
verifier.Finish();
const DiscIO::VolumeVerifier::Result& result = verifier.GetResult();
+#ifdef USE_RETRO_ACHIEVEMENTS
// Calculate rcheevos hash
if (rc_hash_calculate)
{
rc_hash_result = AchievementManager::CalculateHash(input_file_path);
}
+#endif
// Print the report
if (!algorithm_is_set)