Set working dir on startup

This commit is contained in:
2022-07-24 02:07:35 +02:00
parent 7fa68792fb
commit 3641ffdad9
3 changed files with 23 additions and 8 deletions

View File

@@ -35,6 +35,13 @@ bool isHidden = false;
int main()
{
std::wstring appDir;
getAppDir(appDir);
if (_wchdir(appDir.c_str()) != 0)
{
std::cout << "Failed to set working dir." << std::endl;
}
ApplicationData applicationData{};
ImGuiCallbacks callbacks{};