build: Make ImHex fully compile with MSVC and Clang CL

This does NOT make ImHex work yet. However it can now be compiled
This commit is contained in:
WerWolv
2025-02-01 15:13:13 +01:00
parent 466b372d41
commit 8039ae1b90
18 changed files with 95 additions and 33 deletions

View File

@@ -22,7 +22,7 @@ namespace hex::plugin::builtin {
ImNodesContext *ctx = ImNodes::CreateContext();
ctx->Style = ImNodes::GetStyle();
ctx->Io = ImNodes::GetIO();
ctx->AttributeFlagStack = GImNodes->AttributeFlagStack;
ctx->AttributeFlagStack = ImNodes::GetCurrentContext()->AttributeFlagStack;
return ctx;
}(), [](ImNodesContext *ptr) {

View File

@@ -202,7 +202,7 @@ namespace hex::plugin::builtin {
AchievementManager::unlockAchievement("hex.builtin.achievement.hex_editor", "hex.builtin.achievement.hex_editor.modify_byte.name");
});
EventPatchCreated::subscribe([](const u8 *, u8, PatchKind) {
EventPatchCreated::subscribe([](const u8 *, u64, PatchKind) {
AchievementManager::unlockAchievement("hex.builtin.achievement.hex_editor", "hex.builtin.achievement.hex_editor.create_patch.name");
});