Rename the global configuration file to 86box_global.cfg.

This commit is contained in:
OBattler
2025-08-16 18:57:07 +02:00
parent 8986f13f2b
commit 1670ae1cfa
2 changed files with 5 additions and 4 deletions

View File

@@ -1054,7 +1054,7 @@ usage:
/* Build the global configuration file path. */ /* Build the global configuration file path. */
if (global == NULL) { if (global == NULL) {
plat_get_global_config_dir(global_cfg_path, sizeof(global_cfg_path)); plat_get_global_config_dir(global_cfg_path, sizeof(global_cfg_path));
path_append_filename(global_cfg_path, global_cfg_path, CONFIG_FILE); path_append_filename(global_cfg_path, global_cfg_path, GLOBAL_CONFIG_FILE);
} else { } else {
strncpy(global_cfg_path, global, sizeof(global_cfg_path) - 1); strncpy(global_cfg_path, global, sizeof(global_cfg_path) - 1);
} }

View File

@@ -39,6 +39,7 @@
/* Filename and pathname info. */ /* Filename and pathname info. */
#define CONFIG_FILE "86box.cfg" #define CONFIG_FILE "86box.cfg"
#define GLOBAL_CONFIG_FILE "86box_global.cfg"
#define NVR_PATH "nvr" #define NVR_PATH "nvr"
#define SCREENSHOT_PATH "screenshots" #define SCREENSHOT_PATH "screenshots"