Merge pull request #13226 from JosJuice/achievementmanager-forward-declarations
AchievementManager: Add required forward declarations
This commit is contained in:
commit
b4a1967310
|
@ -275,11 +275,21 @@ private:
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
namespace ActionReplay
|
||||||
|
{
|
||||||
|
struct ARCode;
|
||||||
|
}
|
||||||
|
|
||||||
namespace DiscIO
|
namespace DiscIO
|
||||||
{
|
{
|
||||||
class Volume;
|
class Volume;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace Gecko
|
||||||
|
{
|
||||||
|
class GeckoCode;
|
||||||
|
}
|
||||||
|
|
||||||
class AchievementManager
|
class AchievementManager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -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 &&
|
||||||
|
@ -163,11 +165,13 @@ int VerifyCommand(const std::vector<std::string>& args)
|
||||||
verifier.Finish();
|
verifier.Finish();
|
||||||
const DiscIO::VolumeVerifier::Result& result = verifier.GetResult();
|
const DiscIO::VolumeVerifier::Result& result = verifier.GetResult();
|
||||||
|
|
||||||
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
||||||
// Calculate rcheevos hash
|
// Calculate rcheevos hash
|
||||||
if (rc_hash_calculate)
|
if (rc_hash_calculate)
|
||||||
{
|
{
|
||||||
rc_hash_result = AchievementManager::CalculateHash(input_file_path);
|
rc_hash_result = AchievementManager::CalculateHash(input_file_path);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Print the report
|
// Print the report
|
||||||
if (!algorithm_is_set)
|
if (!algorithm_is_set)
|
||||||
|
|
Loading…
Reference in New Issue