Skip to content

Commit

Permalink
code that i stole from mat
Browse files Browse the repository at this point in the history
store ini in save directory instead of the current directory
  • Loading branch information
qimiko committed Oct 30, 2024
1 parent d18fba7 commit 86939ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ void DevTools::setupPlatform() {
// this is a lie hehe
io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors;

// use static since imgui does not own the pointer!
static const auto iniPath = (Mod::get()->getSaveDir() / "imgui.ini").string();
io.IniFilename = iniPath.c_str();

unsigned char* pixels;
int width, height;
io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height);
Expand Down

0 comments on commit 86939ec

Please # to comment.