From 8c2b7b4a544158035d6ad8669ba94b5bc31aadba Mon Sep 17 00:00:00 2001 From: Emma Miler <27428383+emma-miler@users.noreply.github.com> Date: Tue, 1 Feb 2022 01:55:37 +0100 Subject: Fix Northstar custom directory launch argument (#62) --- NorthstarDedicatedTest/scriptsrson.cpp | 1 + NorthstarDedicatedTest/scriptsrson.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'NorthstarDedicatedTest') 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 -- cgit v1.2.3