mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-25 09:29:48 +00:00
Minimally begin to support UTF8
This commit is contained in:
parent
25e4fd0eba
commit
a055ae8b8d
@ -15,6 +15,8 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#include <locale.h>
|
||||
|
||||
#define SAVE_MAGICK "A2VM"
|
||||
#define SAVE_MAGICK2 "A2V2"
|
||||
#define SAVE_VERSION 2
|
||||
@ -32,6 +34,7 @@ static bool emulatorShuttingDown = false;
|
||||
const char *data_dir = NULL;
|
||||
char **argv = NULL;
|
||||
int argc = 0;
|
||||
const char *locale = NULL;
|
||||
CrashHandler_s *crashHandler = NULL;
|
||||
|
||||
#if defined(CONFIG_DATADIR)
|
||||
@ -80,7 +83,6 @@ static void _cli_argsToPrefs(void) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#elif defined(ANDROID) || (TARGET_OS_MAC || TARGET_OS_PHONE)
|
||||
// data_dir is set up elsewhere
|
||||
#else
|
||||
@ -440,6 +442,9 @@ int main(int _argc, char **_argv) {
|
||||
argc = _argc;
|
||||
argv = _argv;
|
||||
|
||||
locale = setlocale(LC_ALL, "");
|
||||
LOG("locale is : %s", locale);
|
||||
|
||||
#if TESTING
|
||||
# if TEST_CPU
|
||||
// Currently this test is the only one that blocks current thread and runs as a black screen
|
||||
|
@ -35,6 +35,9 @@ extern const char *data_dir;
|
||||
extern char **argv;
|
||||
extern int argc;
|
||||
|
||||
// locale
|
||||
extern const char *locale;
|
||||
|
||||
//
|
||||
// Emulator lifecycle
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user