Skip to content

Commit 8352290

Browse files
committed
Set UNITY_KEEP_LOG_FILES env var to keep log file
This resolves the problem of of the log file being deleted when the game closes, when we de-init the plugin properly.
1 parent 9d3960b commit 8352290

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ffrunner.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ main(int argc, char **argv)
594594
}
595595
SetEnvironmentVariableA("UNITY_DISABLE_PLUGIN_UPDATES", "yes");
596596
SetEnvironmentVariableA("LANG", NULL); // webplayer crashes if this is set
597+
SetEnvironmentVariableA("UNITY_KEEP_LOG_FILES", "yes");
597598

598599
if (args.forceVulkan) {
599600
SetEnvironmentVariableA("UNITY_FF_DX_DLL", "d3d9_vulkan.dll");
@@ -731,4 +732,4 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdS
731732
argv = __argv;
732733

733734
return main(argc, argv);
734-
}
735+
}

0 commit comments

Comments
 (0)