diff options
author | Lioncash <mathew1800@gmail.com> | 2018-09-20 00:55:33 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-09-20 00:57:26 +0200 |
commit | 05d49962b69f6597116246776828c2bbc8a98582 (patch) | |
tree | 368b814f5954608acda1cdbba3eb5cc589c93b3e | |
parent | Reworked incorrect nifm stubs (#1355) (diff) | |
download | yuzu-05d49962b69f6597116246776828c2bbc8a98582.tar yuzu-05d49962b69f6597116246776828c2bbc8a98582.tar.gz yuzu-05d49962b69f6597116246776828c2bbc8a98582.tar.bz2 yuzu-05d49962b69f6597116246776828c2bbc8a98582.tar.lz yuzu-05d49962b69f6597116246776828c2bbc8a98582.tar.xz yuzu-05d49962b69f6597116246776828c2bbc8a98582.tar.zst yuzu-05d49962b69f6597116246776828c2bbc8a98582.zip |
-rw-r--r-- | src/core/file_sys/control_metadata.cpp | 8 | ||||
-rw-r--r-- | src/core/file_sys/control_metadata.h | 7 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/core/file_sys/control_metadata.cpp b/src/core/file_sys/control_metadata.cpp index e76bf77bf..b47c95d11 100644 --- a/src/core/file_sys/control_metadata.cpp +++ b/src/core/file_sys/control_metadata.cpp @@ -8,6 +8,14 @@ namespace FileSys { +const std::array<const char*, 15> LANGUAGE_NAMES = { + "AmericanEnglish", "BritishEnglish", "Japanese", + "French", "German", "LatinAmericanSpanish", + "Spanish", "Italian", "Dutch", + "CanadianFrench", "Portugese", "Russian", + "Korean", "Taiwanese", "Chinese", +}; + std::string LanguageEntry::GetApplicationName() const { return Common::StringFromFixedZeroTerminatedBuffer(application_name.data(), 0x200); } diff --git a/src/core/file_sys/control_metadata.h b/src/core/file_sys/control_metadata.h index 8a510bf46..319bae821 100644 --- a/src/core/file_sys/control_metadata.h +++ b/src/core/file_sys/control_metadata.h @@ -66,12 +66,7 @@ enum class Language : u8 { Default = 255, }; -static constexpr std::array<const char*, 15> LANGUAGE_NAMES = { - "AmericanEnglish", "BritishEnglish", "Japanese", - "French", "German", "LatinAmericanSpanish", - "Spanish", "Italian", "Dutch", - "CanadianFrench", "Portugese", "Russian", - "Korean", "Taiwanese", "Chinese"}; +extern const std::array<const char*, 15> LANGUAGE_NAMES; // A class representing the format used by NX metadata files, typically named Control.nacp. // These store application name, dev name, title id, and other miscellaneous data. |