aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/pdef.cpp
diff options
context:
space:
mode:
authorEmma Miler <27428383+emma-miler@users.noreply.github.com>2022-02-03 00:16:51 +0100
committerGitHub <noreply@github.com>2022-02-02 20:16:51 -0300
commitd10ae36c64123855eb828b7e2c19c6b405f0883a (patch)
treeb8c495c4022ebb60f542bc0bc262ef068574579f /NorthstarDedicatedTest/pdef.cpp
parent8c2b7b4a544158035d6ad8669ba94b5bc31aadba (diff)
downloadNorthstarLauncher-d10ae36c64123855eb828b7e2c19c6b405f0883a.tar.gz
NorthstarLauncher-d10ae36c64123855eb828b7e2c19c6b405f0883a.zip
Fix pdef custom path (#64)
Diffstat (limited to 'NorthstarDedicatedTest/pdef.cpp')
-rw-r--r--NorthstarDedicatedTest/pdef.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/pdef.cpp b/NorthstarDedicatedTest/pdef.cpp
index 83a31db0..20b4bea5 100644
--- a/NorthstarDedicatedTest/pdef.cpp
+++ b/NorthstarDedicatedTest/pdef.cpp
@@ -11,6 +11,8 @@ void ModManager::BuildPdef()
{
spdlog::info("Building persistent_player_data_version_231.pdef...");
+ fs::path MOD_PDEF_PATH = fs::path(GetCompiledAssetsPath() / MOD_PDEF_SUFFIX);
+
fs::remove(MOD_PDEF_PATH);
std::string pdef = ReadVPKOriginalFile(VPK_PDEF_PATH);