mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 02:10:28 +00:00
DS: Support detecting the system language
This commit is contained in:
parent
66472abf1a
commit
fe05ae75cd
@ -523,3 +523,16 @@ Common::HardwareInputSet *OSystem_DS::getHardwareInputSet() {
|
||||
|
||||
return inputSet;
|
||||
}
|
||||
|
||||
Common::String OSystem_DS::getSystemLanguage() const {
|
||||
switch (PersonalData->language) {
|
||||
case 0: return "ja_JP";
|
||||
case 1: return "en_US";
|
||||
case 2: return "fr_FR";
|
||||
case 3: return "de_DE";
|
||||
case 4: return "it_IT";
|
||||
case 5: return "es_ES";
|
||||
case 6: return "zh_CN";
|
||||
default: return "en_US";
|
||||
}
|
||||
}
|
||||
|
@ -124,6 +124,8 @@ public:
|
||||
virtual Common::EventSource *getDefaultEventSource() { return _eventSource; }
|
||||
virtual Common::HardwareInputSet *getHardwareInputSet();
|
||||
|
||||
virtual Common::String getSystemLanguage() const;
|
||||
|
||||
virtual MutexRef createMutex(void);
|
||||
virtual void lockMutex(MutexRef mutex);
|
||||
virtual void unlockMutex(MutexRef mutex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user