From 35b348f93cdec2cf56bd311e99abccbe7773d058 Mon Sep 17 00:00:00 2001 From: Robert MacGregor Date: Thu, 16 Jun 2022 19:04:43 -0400 Subject: [PATCH] * Adjustment: Change Platform::makeFullPathName to use "game:/" as cwd if none is specified. --- Engine/source/platform/platformFileIO.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Engine/source/platform/platformFileIO.cpp b/Engine/source/platform/platformFileIO.cpp index b4076a232..66d562cae 100644 --- a/Engine/source/platform/platformFileIO.cpp +++ b/Engine/source/platform/platformFileIO.cpp @@ -328,8 +328,13 @@ char * Platform::makeFullPathName(const char *path, char *buffer, U32 size, cons // [rene, 05/05/2008] Based on overall file handling in Torque, it does not seem to make // that much sense to me to base things off the current working directory here. + #ifndef TORQUE_SCECURE_VFS if(cwd == NULL) cwd = Con::isCurrentScriptToolScript() ? Platform::getMainDotCsDir() : Platform::getCurrentDirectory(); + #else + if (cwd == NULL) + cwd = "game:/"; + #endif dStrncpy(buffer, cwd, size); buffer[size-1] = 0;