/** * Copyright (c) 2026 Dominic Masters * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #pragma once #include "error/error.h" #include "save/settingsfile.h" #define SETTINGS_LINUX_PATH_MAX FILENAME_MAX #define SETTINGS_LINUX_FILE_FORMAT "%s/settings.dat" #ifndef SETTINGS_LINUX_PATH #define SETTINGS_LINUX_PATH "./saves" #endif typedef struct { char_t path[SETTINGS_LINUX_PATH_MAX]; } settingslinux_t; /** * Initializes the settings system on Linux - ensures the settings * directory exists, independent of whether the game-save system (see * savelinux.h) has been initialized. * * @return An error code if initialization fails. */ errorret_t settingsInitLinux(void); /** * Disposes of the settings system on Linux. * * @return An error code if disposal fails. */ errorret_t settingsDisposeLinux(void);