Skip to content

Commit

Permalink
Added Japanese and improved navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-calautti committed Mar 12, 2017
1 parent b65f45e commit 4b79846
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ void deInitFull(){

int SelectionMenu(){

int langId=0;
int langId=1;
const char* languages[]={
"Japanese",
"English",
"French",
"German",
Expand Down Expand Up @@ -162,7 +163,7 @@ int SelectionMenu(){
OSScreenClearBufferEx(0, 0);
OSScreenClearBufferEx(1, 0);

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

Expand Down Expand Up @@ -197,21 +198,21 @@ int SelectionMenu(){
update=true;
}else if (pressedBtns & VPAD_BUTTON_RIGHT){
if(selectionId==0)
langId=(langId+1)%11;
langId=(langId+1)%12;
else
regionId = (regionId+1)%3;
update=true;
}else if (pressedBtns & VPAD_BUTTON_LEFT){
if(selectionId==0)
langId= langId==0? 10 : (langId-1)%11;
langId= langId==0? 11 : (langId-1)%12;
else
regionId = regionId==0? 2 : (regionId-1)%3;
update=true;
}
usleep(60000);
usleep(80000);
}

SetLanguage(langId+1);
SetLanguage(langId);
SetRegion(1<<regionId);

MEM1_free(screenBuffer);
Expand Down
2 changes: 1 addition & 1 deletion src/patcher/coreinit_function_patcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ DECL(void, _Exit, void){
}

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

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

Expand Down

1 comment on commit 4b79846

@marco-calautti
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @favoredform ! I am reverse engineering some games actually, to understand in what other ways they detect the system language! Once I found what I need, rest assured I will ask for your help with the USA consoles!

Please sign in to comment.