mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-15 14:56:05 -04:00
fix: malformed locale name. Closes #925.
This commit is contained in:
parent
e7d5faeeac
commit
e34dd39b9a
@ -64,7 +64,7 @@ public final class HMCLGameLauncher extends DefaultLauncher {
|
|||||||
try {
|
try {
|
||||||
// TODO: Dirty implementation here
|
// TODO: Dirty implementation here
|
||||||
if (I18n.getCurrentLocale().getLocale() == Locale.CHINA)
|
if (I18n.getCurrentLocale().getLocale() == Locale.CHINA)
|
||||||
FileUtils.writeText(optionsFile, "lang:zh_cn\nforceUnicodeFont:true\n");
|
FileUtils.writeText(optionsFile, "lang:zh_CN\nforceUnicodeFont:true\n");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Logging.LOG.log(Level.WARNING, "Unable to generate options.txt", e);
|
Logging.LOG.log(Level.WARNING, "Unable to generate options.txt", e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user