DigitalBoyz Posted November 30, 2021 Share Posted November 30, 2021 I'm using Leadwerks 4.6 I have found my game always creating log file on AppData > Local, even I'm not using debug build. Settings .cfg file I can change location by modify C++ code but I cant find way to disable / relocation log file. Any ideas? Quote Link to comment Share on other sites More sharing options...
reepblue Posted November 30, 2021 Share Posted November 30, 2021 Not ony PC atm but near the top of the main.cpp file there is a block of code that defines the location of the settings file using Filesystem::GetAppDirectory(). You can swap it for the path you wish to save your files. Normally, the default is "correct" but if you want Steam Cloud support for saved games, you'll need to have the app create and look for files in the game directory. 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
DigitalBoyz Posted November 30, 2021 Author Share Posted November 30, 2021 10 minutes ago, reepblue said: Not ony PC atm but near the top of the main.cpp file there is a block of code that defines the location of the settings file using Filesystem::GetAppDirectory(). You can swap it for the path you wish to save your files. Normally, the default is "correct" but if you want Steam Cloud support for saved games, you'll need to have the app create and look for files in the game directory. Thank you, I have tested but seem not help. Settings .cfg file relocated but .log file still there at LocalAppData. My game are planned as standalone playing without steam and not want to leave files on tester's PC Quote Link to comment Share on other sites More sharing options...
DigitalBoyz Posted November 30, 2021 Author Share Posted November 30, 2021 I have found solution by looking Leadwerks.h file and found suspect function name "SetLogMode" without any document. I try to wrote Quote Leadwerks::SetLogMode(false); on very beginning of program, log file now disabled. Quote Link to comment Share on other sites More sharing options...
reepblue Posted November 30, 2021 Share Posted November 30, 2021 Oh yeah, I forgot about the log file. You can also relocate it by assigning the logfile__ stream pointer to the Filesystem:: Writefile() function. 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.