🆙 Added the use of ExternalTexts / UITexts

This commit is contained in:
duckietm
2026-04-23 08:33:04 +02:00
parent ce54d7bc53
commit 2ff37c22d2
3 changed files with 157 additions and 77 deletions
+4 -4
View File
@@ -35,7 +35,6 @@ export const App: FC<{}> = props =>
setPrepareTrigger(prev => prev + 1);
}, []);
// Listen for socket closed events (code 1000 "Bye" - server rejected SSO)
useNitroEvent(NitroEventType.SOCKET_CLOSED, showSessionExpired);
useMessageEvent<LoadGameUrlEvent>(LoadGameUrlEvent, event =>
@@ -61,8 +60,6 @@ export const App: FC<{}> = props =>
if(!ssoTicket || ssoTicket === '')
{
// Configuration is loaded lazily — fetch it up-front so the login
// screen toggle and Turnstile keys are available before we decide.
let configInitError: unknown = null;
try { await GetConfiguration().init(); }
catch(e) { configInitError = e; }
@@ -77,6 +74,9 @@ export const App: FC<{}> = props =>
if(loginScreenEnabled)
{
try { await GetLocalizationManager().init(); }
catch(localizationErr) { NitroLogger.error('[LoginScreen] Localization init failed', localizationErr); }
setIsReady(false);
setShowLogin(true);
return;
@@ -110,7 +110,7 @@ export const App: FC<{}> = props =>
eventMode: 'none',
failIfMajorPerformanceCaveat: false,
roundPixels: true,
useBackBuffer // Keep disabled by default unless explicitly enabled in NitroConfig
useBackBuffer
});
await GetConfiguration().init();