mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
New SystemToolkit to manage access to files and settings folders in an
OS dependent way
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
|
||||
#include "defines.h"
|
||||
#include "Log.h"
|
||||
#include "SystemToolkit.h"
|
||||
#include "TextEditor.h"
|
||||
#include "UserInterfaceManager.h"
|
||||
#include "RenderingManager.h"
|
||||
@@ -125,6 +126,12 @@ bool UserInterface::Init()
|
||||
// prevent bug with imgui clipboard (null at start)
|
||||
ImGui::SetClipboardText("");
|
||||
|
||||
// setup settings filename
|
||||
std::string inifile = SystemToolkit::settingsFileCompletePath("imgui.ini");
|
||||
char *inifilepath = (char *) malloc( (inifile.size() + 1) * sizeof(char) );
|
||||
std::sprintf(inifilepath, "%s", inifile.c_str() );
|
||||
io.IniFilename = inifilepath;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user