mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-12 20:55:56 +00:00
QT save fixes II (#3119)
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
* added recentFiles save/load * gui language * fixups for language * fixed language issue with savedata (it was saving based on gui language and not on console language) * clang fix * elf dirs added * added theme
This commit is contained in:
parent
423254692a
commit
43321fb45a
20 changed files with 188 additions and 266 deletions
|
@ -22,25 +22,25 @@ static Core::FileSys::MntPoints* g_mnt = Common::Singleton<Core::FileSys::MntPoi
|
|||
namespace fs = std::filesystem;
|
||||
|
||||
// clang-format off
|
||||
static const std::unordered_map<std::string, std::string> default_title = {
|
||||
{"ja_JP", "セーブデータ"},
|
||||
{"en_US", "Saved Data"},
|
||||
{"fr_FR", "Données sauvegardées"},
|
||||
{"es_ES", "Datos guardados"},
|
||||
{"de_DE", "Gespeicherte Daten"},
|
||||
{"it_IT", "Dati salvati"},
|
||||
{"nl_NL", "Opgeslagen data"},
|
||||
{"pt_PT", "Dados guardados"},
|
||||
{"ru_RU", "Сохраненные данные"},
|
||||
{"ko_KR", "저장 데이터"},
|
||||
{"zh_CN", "保存数据"},
|
||||
{"fi_FI", "Tallennetut tiedot"},
|
||||
{"sv_SE", "Sparade data"},
|
||||
{"da_DK", "Gemte data"},
|
||||
{"no_NO", "Lagrede data"},
|
||||
{"pl_PL", "Zapisane dane"},
|
||||
{"pt_BR", "Dados salvos"},
|
||||
{"tr_TR", "Kayıtlı Veriler"},
|
||||
static const std::unordered_map<int, std::string> default_title = {
|
||||
{0/*"ja_JP"*/, "セーブデータ"},
|
||||
{1/*"en_US"*/, "Saved Data"},
|
||||
{2/*"fr_FR"*/, "Données sauvegardées"},
|
||||
{3/*"es_ES"*/, "Datos guardados"},
|
||||
{4/*"de_DE"*/, "Gespeicherte Daten"},
|
||||
{5/*"it_IT"*/, "Dati salvati"},
|
||||
{6/*"nl_NL"*/, "Opgeslagen data"},
|
||||
{7/*"pt_PT"*/, "Dados guardados"},
|
||||
{8/*"ru_RU"*/, "Сохраненные данные"},
|
||||
{9/*"ko_KR"*/, "저장 데이터"},
|
||||
{10/*"zh_CN"*/, "保存数据"},
|
||||
{12/*"fi_FI"*/, "Tallennetut tiedot"},
|
||||
{13/*"sv_SE"*/, "Sparade data"},
|
||||
{14/*"da_DK"*/, "Gemte data"},
|
||||
{15/*"no_NO"*/, "Lagrede data"},
|
||||
{16/*"pl_PL"*/, "Zapisane dane"},
|
||||
{17/*"pt_BR"*/, "Dados salvos"},
|
||||
{19/*"tr_TR"*/, "Kayıtlı Veriler"},
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
|
@ -71,9 +71,9 @@ fs::path SaveInstance::GetParamSFOPath(const fs::path& dir_path) {
|
|||
|
||||
void SaveInstance::SetupDefaultParamSFO(PSF& param_sfo, std::string dir_name,
|
||||
std::string game_serial) {
|
||||
std::string locale = Config::getEmulatorLanguage();
|
||||
int locale = Config::GetLanguage();
|
||||
if (!default_title.contains(locale)) {
|
||||
locale = "en_US";
|
||||
locale = 1; // default to en_US if not found
|
||||
}
|
||||
|
||||
#define P(type, key, ...) param_sfo.Add##type(std::string{key}, __VA_ARGS__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue