mirror of
https://github.com/XorTroll/uLaunch
synced 2025-02-16 20:48:28 +00:00
Small corrections
This commit is contained in:
parent
123fd146d0
commit
b214a19185
2 changed files with 6 additions and 17 deletions
|
@ -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();
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue