Small corrections

This commit is contained in:
XorTroll 2019-11-09 01:06:22 +01:00
parent 123fd146d0
commit b214a19185
2 changed files with 6 additions and 17 deletions

View file

@ -48,23 +48,23 @@ namespace os
static std::vector<std::string> LanguageNames =
{
"日本語",
"Japanese",
"American English",
"Français",
"Deutsch",
"Italiano",
"Español",
"中文",
"한국어",
"Chinese",
"Korean",
"Nederlands",
"Português",
"Русский",
"中文",
"Taiwanese",
"British English",
"Français canadien",
"Español latino",
"中文",
"中文"
"Chinese (simplified)",
"Chinese (traditional)"
};
u32 GetBatteryLevel();

View file

@ -214,17 +214,6 @@ namespace cfg
return processed;
}
static JSON _RawJSONLoad(std::string file)
{
auto sz = fs::GetFileSize(file);
char *buf = new char[sz]();
fs::ReadFile(file, buf, sz);
std::string sjson(buf);
delete[] buf;
return JSON::parse(sjson);
}
std::string GetLanguageJSONPath(std::string lang)
{
return Q_BASE_SD_DIR "/lang/" + lang + ".json";