diff --git a/backends/platform/ds/osystem_ds.cpp b/backends/platform/ds/osystem_ds.cpp index c2295b12c04..0c49e990b85 100644 --- a/backends/platform/ds/osystem_ds.cpp +++ b/backends/platform/ds/osystem_ds.cpp @@ -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"; + } +} diff --git a/backends/platform/ds/osystem_ds.h b/backends/platform/ds/osystem_ds.h index e3ac19416fc..d24a5bafeea 100644 --- a/backends/platform/ds/osystem_ds.h +++ b/backends/platform/ds/osystem_ds.h @@ -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);