summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-20 00:55:33 +0200
committerLioncash <mathew1800@gmail.com>2018-09-20 00:57:26 +0200
commit05d49962b69f6597116246776828c2bbc8a98582 (patch)
tree368b814f5954608acda1cdbba3eb5cc589c93b3e /src/core/file_sys
parentReworked incorrect nifm stubs (#1355) (diff)
downloadyuzu-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
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/control_metadata.cpp8
-rw-r--r--src/core/file_sys/control_metadata.h7
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.