aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmma Miler <27428383+emma-miler@users.noreply.github.com>2022-02-01 01:55:37 +0100
committerGitHub <noreply@github.com>2022-01-31 21:55:37 -0300
commit8c2b7b4a544158035d6ad8669ba94b5bc31aadba (patch)
treeeda56caca1b8d94e21952bfca070c15a097ccca2
parent186a4e2dbcb8a7c2f1a24f6657f0c5daa00a7fd5 (diff)
downloadNorthstarLauncher-8c2b7b4a544158035d6ad8669ba94b5bc31aadba.tar.gz
NorthstarLauncher-8c2b7b4a544158035d6ad8669ba94b5bc31aadba.zip
Fix Northstar custom directory launch argument (#62)
-rw-r--r--NorthstarDedicatedTest/scriptsrson.cpp1
-rw-r--r--NorthstarDedicatedTest/scriptsrson.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/scriptsrson.cpp b/NorthstarDedicatedTest/scriptsrson.cpp
index d75a9e70..a2bf2457 100644
--- a/NorthstarDedicatedTest/scriptsrson.cpp
+++ b/NorthstarDedicatedTest/scriptsrson.cpp
@@ -9,6 +9,7 @@
void ModManager::BuildScriptsRson()
{
spdlog::info("Building custom scripts.rson");
+ fs::path MOD_SCRIPTS_RSON_PATH = fs::path(GetCompiledAssetsPath() / MOD_SCRIPTS_RSON_SUFFIX);
fs::remove(MOD_SCRIPTS_RSON_PATH);
// not really important since it doesn't affect actual functionality at all, but the rson we output is really weird
diff --git a/NorthstarDedicatedTest/scriptsrson.h b/NorthstarDedicatedTest/scriptsrson.h
index 30ab1304..140db341 100644
--- a/NorthstarDedicatedTest/scriptsrson.h
+++ b/NorthstarDedicatedTest/scriptsrson.h
@@ -1,4 +1,4 @@
#pragma once
-const fs::path MOD_SCRIPTS_RSON_PATH = GetCompiledAssetsPath() / "scripts/vscripts/scripts.rson";
+const std::string MOD_SCRIPTS_RSON_SUFFIX = "scripts/vscripts/scripts.rson";
const char* VPK_SCRIPTS_RSON_PATH = "scripts\\vscripts\\scripts.rson"; \ No newline at end of file