diff --git a/lib/libimhex/source/api/tutorial_manager.cpp b/lib/libimhex/source/api/tutorial_manager.cpp index 825d57388..fd84578d3 100644 --- a/lib/libimhex/source/api/tutorial_manager.cpp +++ b/lib/libimhex/source/api/tutorial_manager.cpp @@ -33,6 +33,13 @@ namespace hex { idStack.push_back(0); } + void add(const char *string) { + const ImGuiID seed = idStack.back(); + const ImGuiID id = ImHashStr(string, 0, seed); + + idStack.push_back(id); + } + void add(const std::string &string) { const ImGuiID seed = idStack.back(); const ImGuiID id = ImHashStr(string.c_str(), string.length(), seed);