mirror of
https://github.com/love2d/megasource.git
synced 2026-08-20 04:30:45 +02:00
update SDL3 to latest commit
This commit is contained in:
@@ -15,14 +15,15 @@
|
||||
|
||||
static void log_locales(void)
|
||||
{
|
||||
SDL_Locale *locales = SDL_GetPreferredLocales();
|
||||
SDL_Locale **locales = SDL_GetPreferredLocales(NULL);
|
||||
if (!locales) {
|
||||
SDL_Log("Couldn't determine locales: %s", SDL_GetError());
|
||||
} else {
|
||||
SDL_Locale *l;
|
||||
int i;
|
||||
unsigned int total = 0;
|
||||
SDL_Log("Locales, in order of preference:");
|
||||
for (l = locales; l->language; l++) {
|
||||
for (i = 0; locales[i]; ++i) {
|
||||
const SDL_Locale *l = locales[i];
|
||||
const char *c = l->country;
|
||||
SDL_Log(" - %s%s%s", l->language, c ? "_" : "", c ? c : "");
|
||||
total++;
|
||||
@@ -44,9 +45,6 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Enable standard application logging */
|
||||
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
|
||||
|
||||
/* Parse commandline */
|
||||
for (i = 1; i < argc;) {
|
||||
int consumed;
|
||||
@@ -69,7 +67,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
/* Print locales and languages */
|
||||
if (SDLTest_CommonInit(state) == SDL_FALSE) {
|
||||
if (SDLTest_CommonInit(state) == false) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user