Skip to content

Commit 4b79846

Browse files
Added Japanese and improved navigation
1 parent b65f45e commit 4b79846

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/main.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ void deInitFull(){
107107

108108
int SelectionMenu(){
109109

110-
int langId=0;
110+
int langId=1;
111111
const char* languages[]={
112+
"Japanese",
112113
"English",
113114
"French",
114115
"German",
@@ -162,7 +163,7 @@ int SelectionMenu(){
162163
OSScreenClearBufferEx(0, 0);
163164
OSScreenClearBufferEx(1, 0);
164165

165-
PRINT_TEXT2(0,0,"Spiik: Region and Language enforcer v0.1 (Phoenix)");
166+
PRINT_TEXT2(0,0,"Spiik: Region and Language enforcer v0.1b (Phoenix)");
166167
PRINT_TEXT2(0,2,"Select with DPAD and confirm with A. Press HOME to exit.");
167168
//PRINT_TEXT2("\n");
168169

@@ -197,21 +198,21 @@ int SelectionMenu(){
197198
update=true;
198199
}else if (pressedBtns & VPAD_BUTTON_RIGHT){
199200
if(selectionId==0)
200-
langId=(langId+1)%11;
201+
langId=(langId+1)%12;
201202
else
202203
regionId = (regionId+1)%3;
203204
update=true;
204205
}else if (pressedBtns & VPAD_BUTTON_LEFT){
205206
if(selectionId==0)
206-
langId= langId==0? 10 : (langId-1)%11;
207+
langId= langId==0? 11 : (langId-1)%12;
207208
else
208209
regionId = regionId==0? 2 : (regionId-1)%3;
209210
update=true;
210211
}
211-
usleep(60000);
212+
usleep(80000);
212213
}
213214

214-
SetLanguage(langId+1);
215+
SetLanguage(langId);
215216
SetRegion(1<<regionId);
216217

217218
MEM1_free(screenBuffer);

src/patcher/coreinit_function_patcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ DECL(void, _Exit, void){
7070
}
7171

7272
DECL(int, UCReadSysConfig, int IOHandle, int count, struct UCSysConfig* settings){
73-
log_print("UCReadSysConfig\n");
73+
log_printf("UCReadSysConfig: %s\n",settings->name);
7474

7575
int result = real_UCReadSysConfig(IOHandle,count,settings);
7676

0 commit comments

Comments
 (0)