Skip to content

Commit

Permalink
fix building
Browse files Browse the repository at this point in the history
  • Loading branch information
dwing4g committed Apr 30, 2024
1 parent 71a6523 commit d911d1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/launcher/datafilespage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,11 @@ void Launcher::DataFilesPage::saveSettings(const QString& profile)
}
else if (language == QLatin1String("Chinese(GBK)"))
{
mGameSettings.setValue(QLatin1String("encoding"), QLatin1String("gbk"));
mGameSettings.setValue(QLatin1String("encoding"), { "gbk" });
}
else if (language == QLatin1String("UTF-8"))
{
mGameSettings.setValue(QLatin1String("encoding"), QLatin1String("utf8"));
mGameSettings.setValue(QLatin1String("encoding"), { "utf8" });
}
else
{
Expand Down
4 changes: 2 additions & 2 deletions apps/wizard/mainwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,11 +414,11 @@ void Wizard::MainWizard::writeSettings()
}
else if (language == QLatin1String("Chinese(GBK)"))
{
mGameSettings.setValue(QLatin1String("encoding"), QLatin1String("gbk"));
mGameSettings.setValue(QLatin1String("encoding"), { "gbk" });
}
else if (language == QLatin1String("UTF-8"))
{
mGameSettings.setValue(QLatin1String("encoding"), QLatin1String("utf8"));
mGameSettings.setValue(QLatin1String("encoding"), { "utf8" });
}
else
{
Expand Down

0 comments on commit d911d1b

Please sign in to comment.