From 829cb27cdc28d2456a73cbd7e67f510a3e1cbd03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20J=C3=B6nsson?= Date: Wed, 27 Dec 2023 01:01:14 +0100 Subject: [PATCH] Fixed startup issue --- Engine/Launcher.exe | 4 ++-- Engine/Sandbox.exe | 4 ++-- Volt/Volt/src/Volt/Project/ProjectManager.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Engine/Launcher.exe b/Engine/Launcher.exe index a5c25d5b6..964385623 100644 --- a/Engine/Launcher.exe +++ b/Engine/Launcher.exe @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:11e3faff9878d7ba4d694d65b1a22213890fec3be27aee3128a3eb8fb4d49bf3 -size 26676736 +oid sha256:37b176f023254792f362eb3010fac144010e90d0a887925dfd5b5218f3f4a681 +size 26677248 diff --git a/Engine/Sandbox.exe b/Engine/Sandbox.exe index 5a2eca40c..0cb47b51a 100644 --- a/Engine/Sandbox.exe +++ b/Engine/Sandbox.exe @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:28140a5c89c8b3a851edcb349a0f522f98693fae36ca4ab375a6f1d7c78bc164 -size 43717632 +oid sha256:246b9bd20117ab738194c1a43af7aa95a8bcbd32eaa0febe6413dde04037c06f +size 43718144 diff --git a/Volt/Volt/src/Volt/Project/ProjectManager.cpp b/Volt/Volt/src/Volt/Project/ProjectManager.cpp index 9ca6a5442..25867d8fa 100644 --- a/Volt/Volt/src/Volt/Project/ProjectManager.cpp +++ b/Volt/Volt/src/Volt/Project/ProjectManager.cpp @@ -20,7 +20,6 @@ namespace Volt { m_currentProject->projectDirectory = projectPath.parent_path(); m_currentProject->projectFilePath = projectPath; - } else { @@ -39,7 +38,8 @@ namespace Volt VT_CORE_INFO("[ProjectManager]: Loading project {0}", projectPath); DeserializeProject(); - m_currentEngineDirectory = std::filesystem::current_path(); + m_currentEngineDirectory = FileSystem::GetEnvVariable("VOLT_PATH"); + std::filesystem::current_path(m_currentEngineDirectory); } void ProjectManager::SerializeProject()