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

@@ -38,9 +38,10 @@
#define SCREEN_RES_Y 480 #define SCREEN_RES_Y 480
/* Filename and pathname info. */ /* Filename and pathname info. */
#define CONFIG_FILE "86box.cfg" #define CONFIG_FILE "86box.cfg"
#define NVR_PATH "nvr" #define GLOBAL_CONFIG_FILE "86box_global.cfg"
#define SCREENSHOT_PATH "screenshots" #define NVR_PATH "nvr"
#define SCREENSHOT_PATH "screenshots"
/* Recently used images */ /* Recently used images */
#define MAX_PREV_IMAGES 10 #define MAX_PREV_IMAGES 10