Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
rd-ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
苍蓝
rd-ygopro
Commits
8289a37a
Commit
8289a37a
authored
Dec 27, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into raw-video
parents
4fc1f58e
95fb3051
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
gframe/game.cpp
gframe/game.cpp
+24
-24
No files found.
gframe/game.cpp
View file @
8289a37a
...
...
@@ -1433,30 +1433,6 @@ void Game::LoadConfig() {
unsigned
int
lcid
=
0
;
#ifdef _WIN32
lcid
=
((
unsigned
int
)
GetSystemDefaultLangID
())
&
0xff
;
#else
/* temp broken
char* locale_str = getenv("LANG");
if(locale_str) {
if(strstr(locale_str, "zh"))
lcid = 0x04;
else
if(strstr(locale_str, "en"))
lcid = 0x09;
else
if(strstr(locale_str, "es"))
lcid = 0x0a;
else
if(strstr(locale_str, "ja"))
lcid = 0x11;
else
if(strstr(locale_str, "ko"))
lcid = 0x12;
else
if(strstr(locale_str, "pt"))
lcid = 0x16;
}
*/
#endif
switch
(
lcid
)
{
case
0x04
:
{
myswprintf
(
mainGame
->
gameConf
.
locale
,
L"%ls"
,
L"zh-CN"
);
...
...
@@ -1483,6 +1459,30 @@ void Game::LoadConfig() {
break
;
}
}
#else
/* temp broken
char* locale_str = getenv("LANG");
if(locale_str) {
if(strstr(locale_str, "zh"))
lcid = 0x04;
else
if(strstr(locale_str, "en"))
lcid = 0x09;
else
if(strstr(locale_str, "es"))
lcid = 0x0a;
else
if(strstr(locale_str, "ja"))
lcid = 0x11;
else
if(strstr(locale_str, "ko"))
lcid = 0x12;
else
if(strstr(locale_str, "pt"))
lcid = 0x16;
}
*/
#endif
#ifndef YGOPRO_COMPAT_MYCARD
SaveConfig
();
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment