update SDL3 to latest commit

This commit is contained in:
Sasha Szpakowski
2024-10-06 20:30:44 -03:00
parent 1b0fdc338b
commit 9e5eb1b018
1426 changed files with 242456 additions and 103496 deletions
+5 -7
View File
@@ -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;
}