// (now also added for Windows, to create files in user data directory)
// ----------------------------------------------------------------------------
+char *getLogBasename(char *basename)
+{
+ return getStringCat2(basename, ".log");
+}
+
char *getLogFilename(char *basename)
{
return getPath2(getMainUserGameDataDir(), basename);
void ReloadCustomArtworkList(struct ArtworkListInfo *);
void FreeCustomArtworkLists(struct ArtworkListInfo *);
+char *getLogBasename(char *);
char *getLogFilename(char *);
void OpenLogFile(void);
void CloseLogFile(void);
program.version_string = program_version_string;
- program.log_filename = getLogFilename(LOG_FILENAME);
+ program.log_filename = getLogFilename(getLogBasename(program_basename));
program.log_file = program.log_file_default = stdout;
program.api_thread_count = 0;
#define FALLBACK_TEXT_FILENAME "fallback.txt"
-#define LOG_FILENAME "stdout.txt"
-
#define STRING_PARENT_DIRECTORY ".."
#define STRING_TOP_DIRECTORY "/"