1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: IPS Patch Achievement not being obtainable (#1429)

It turned out that the achievement "ROM hacks" wasn't actually
unlockable.
I'm not sure if the IPS32 patch also has to trigger this achievement,
but it seemed logical to me so I added the call to both methods.
This commit is contained in:
Nemoumbra 2023-11-16 23:38:20 +03:00 committed by GitHub
parent 0bace013a1
commit 1f7e2f5ed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@
#include <hex/api/keybinding.hpp>
#include <hex/api/project_file_manager.hpp>
#include <hex/api/layout_manager.hpp>
#include <hex/api/achievement_manager.hpp>
#include <hex/helpers/crypto.hpp>
#include <hex/helpers/patches.hpp>
@ -276,6 +277,8 @@ namespace hex::plugin::builtin {
else {
handleIPSError(data.error());
}
AchievementManager::unlockAchievement("hex.builtin.achievement.hex_editor", "hex.builtin.achievement.hex_editor.create_patch.name");
});
});
});
@ -306,8 +309,11 @@ namespace hex::plugin::builtin {
if (data.has_value())
file.writeVector(data.value());
else
else {
handleIPSError(data.error());
}
AchievementManager::unlockAchievement("hex.builtin.achievement.hex_editor", "hex.builtin.achievement.hex_editor.create_patch.name");
});
});
});