Properly set the supported language, user language, and region based on the ROM's region (#38)

This commit is contained in:
TY
2025-12-23 22:08:55 +08:00
committed by GitHub
parent 151b68018d
commit 19cce5960b
4 changed files with 139 additions and 4 deletions

View File

@@ -3,6 +3,8 @@
#include "ndsHeader.h"
#include "DsiWareSaveArranger.h"
#include "BootMode.h"
#include "ConsoleRegion.h"
#include "UserLanguage.h"
struct dsi_devicelist_entry_t;
@@ -72,4 +74,7 @@ private:
void InsertArgv();
bool TrySetupDsiWareSave();
bool TryDecryptSecureArea();
ConsoleRegion GetRomRegion(u32 gameCode);
UserLanguage GetLanguageByRomRegion(ConsoleRegion romRegion);
u32 GetSupportedLanguagesByRegion(ConsoleRegion region);
};