DS: Support detecting the system language

This commit is contained in:
Cameron Cawley 2020-08-13 17:18:51 +01:00 committed by Eugene Sandulenko
parent 66472abf1a
commit fe05ae75cd
2 changed files with 15 additions and 0 deletions

View File

@ -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";
}
}

View File

@ -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);