Removes the per-platform save/savestream/autosave implementations, the settings UI frames, and the autosave overlay, replacing them with a savemanager.c/h + savefile.h/savedevice.h scaffold to build the new save system on top of. Also separates the concrete UI_ELEMENTS registration into uielementlist.h/.c so uielement.c only holds the generic per-element lifecycle logic. Co-Authored-By: Claude Sonnet 5 <[email protected]>
44 lines
824 B
C
44 lines
824 B
C
/**
|
|
* Copyright (c) 2026 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include "dusk.h"
|
|
|
|
typedef struct {
|
|
const char_t *name;
|
|
const char_t *file;
|
|
} localeinfo_t;
|
|
|
|
static const localeinfo_t LOCALE_INFO_EN_US = {
|
|
.name = "en-US",
|
|
.file = "locale/en_US.po",
|
|
};
|
|
|
|
static const localeinfo_t LOCALE_INFO_JP_JP = {
|
|
.name = "ja-JP",
|
|
.file = "locale/jp_JP.po",
|
|
};
|
|
|
|
static const localeinfo_t LOCALE_INFO_ES_MX = {
|
|
.name = "es-MX",
|
|
.file = "locale/es_MX.po",
|
|
};
|
|
|
|
static const localeinfo_t * const LOCALE_INFO_LIST[] = {
|
|
&LOCALE_INFO_EN_US,
|
|
&LOCALE_INFO_JP_JP,
|
|
&LOCALE_INFO_ES_MX
|
|
};
|
|
|
|
#define LOCALE_INFO_LIST_COUNT ( \
|
|
sizeof(LOCALE_INFO_LIST) / sizeof(LOCALE_INFO_LIST[0]) \
|
|
)
|
|
|
|
#define LOCALE_DEFAULT LOCALE_INFO_EN_US
|
|
|
|
// EOF
|