MCPcopy Create free account
hub / github.com/JACoders/OpenJK / SE_CheckForLanguageUpdates

Function SE_CheckForLanguageUpdates

code/qcommon/stringed_ingame.cpp:1264–1275  ·  view source on GitHub ↗

called in Com_Frame, so don't take up any time! (can also be called during dedicated) instead of re-loading just the files we've already loaded I'm going to load the whole language (simpler)

Source from the content-addressed store, hash-verified

1262// instead of re-loading just the files we've already loaded I'm going to load the whole language (simpler)
1263//
1264void SE_CheckForLanguageUpdates(void)
1265{
1266 if (se_language && se_language->modified)
1267 {
1268 const char *psErrorMessage = SE_LoadLanguage( se_language->string, SE_TRUE );
1269 if ( psErrorMessage )
1270 {
1271 Com_Error( ERR_DROP, psErrorMessage );
1272 }
1273 se_language->modified = SE_FALSE;
1274 }
1275}
1276
1277
1278///////////////////////// eof //////////////////////////

Callers 2

SV_FrameFunction · 0.50
_UI_RefreshFunction · 0.50

Calls 2

SE_LoadLanguageFunction · 0.70
Com_ErrorFunction · 0.70

Tested by

no test coverage detected