mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #39801 from tilpner/goxel-no-imgui_ini
goxel: don't save imgui.ini to working directory
This commit is contained in:
commit
164b580b36
2 changed files with 15 additions and 0 deletions
|
@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "01022c43pmwiqb18rx9fz08xr99h6p03gw6bp0lay5z61g3xkz17";
|
||||
};
|
||||
|
||||
patches = [ ./disable-imgui_ini.patch ];
|
||||
|
||||
nativeBuildInputs = [ scons pkgconfig wrapGAppsHook ];
|
||||
buildInputs = [ glfw3 gtk3 libpng12 ];
|
||||
|
||||
|
|
13
pkgs/applications/graphics/goxel/disable-imgui_ini.patch
Normal file
13
pkgs/applications/graphics/goxel/disable-imgui_ini.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/gui.cpp b/src/gui.cpp
|
||||
index 9b7236c..a8a11b2 100644
|
||||
--- a/src/gui.cpp
|
||||
+++ b/src/gui.cpp
|
||||
@@ -314,6 +314,8 @@ static void init_ImGui(const inputs_t *inputs)
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
io.DeltaTime = 1.0f/60.0f;
|
||||
|
||||
+ io.IniFilename = NULL;
|
||||
+
|
||||
io.KeyMap[ImGuiKey_Tab] = KEY_TAB;
|
||||
io.KeyMap[ImGuiKey_LeftArrow] = KEY_LEFT;
|
||||
io.KeyMap[ImGuiKey_RightArrow] = KEY_RIGHT;
|
Loading…
Reference in a new issue