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:
parent
0bace013a1
commit
1f7e2f5ed3
@ -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");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user