diff --git a/$PBOPREFIX$.txt b/$PBOPREFIX$.txt new file mode 100644 index 0000000..1cf3188 --- /dev/null +++ b/$PBOPREFIX$.txt @@ -0,0 +1 @@ +YAInteraction \ No newline at end of file diff --git a/scripts/4_World/YAInteraction/Config/YAInteractionConfigLoader.c b/scripts/4_World/YAInteraction/Config/YAInteractionConfigLoader.c index e428bda..a2e5ef8 100644 --- a/scripts/4_World/YAInteraction/Config/YAInteractionConfigLoader.c +++ b/scripts/4_World/YAInteraction/Config/YAInteractionConfigLoader.c @@ -33,8 +33,12 @@ class YAInteractionConfigLoader // ------------------------------------------------------------------ static void Init() { - string folder = GetGame().GetProfileFolder() + DIR_NAME + "/"; // GetProfileFolder() has trailing slash - MakeDirectory(folder); // no-op / harmless if it already exists + // "$profile:" is the engine-mounted virtual path to the server profiles + // folder. (DayZGame has no GetProfileFolder() in this build; $profile: is + // the portable idiom used by e.g. ZenRepairWells / TerjeMods.) + string folder = "$profile:\\" + DIR_NAME + "\\"; + if (!FileExist(folder)) + MakeDirectory(folder); string settingsPath = folder + SETTINGS_FILE; string dataPath = folder + DATA_FILE;