mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 00:55:06 +01:00
- mapped classic controller + and - buttons to work like wiimote + and - instead of using the classic controller L and R buttons. makes more sense to me.
- cleaned up homebrew launcher code a little.
This commit is contained in:
parent
1ce95b7ba3
commit
6152edff6c
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 3.4 MiB After Width: | Height: | Size: 3.4 MiB |
@ -11,9 +11,9 @@
|
|||||||
#define WBTN_HOME_PRESSED (wBtn_Pressed(WPAD_BUTTON_HOME, WPAD_EXP_NONE) \
|
#define WBTN_HOME_PRESSED (wBtn_Pressed(WPAD_BUTTON_HOME, WPAD_EXP_NONE) \
|
||||||
|| wBtn_Pressed(WPAD_CLASSIC_BUTTON_HOME, WPAD_EXP_CLASSIC))
|
|| wBtn_Pressed(WPAD_CLASSIC_BUTTON_HOME, WPAD_EXP_CLASSIC))
|
||||||
#define WBTN_MINUS_PRESSED (wBtn_Pressed(WPAD_BUTTON_MINUS, WPAD_EXP_NONE) \
|
#define WBTN_MINUS_PRESSED (wBtn_Pressed(WPAD_BUTTON_MINUS, WPAD_EXP_NONE) \
|
||||||
|| wBtn_Pressed(WPAD_CLASSIC_BUTTON_FULL_L, WPAD_EXP_CLASSIC))
|
|| wBtn_Pressed(WPAD_CLASSIC_BUTTON_MINUS, WPAD_EXP_CLASSIC))
|
||||||
#define WBTN_PLUS_PRESSED (wBtn_Pressed(WPAD_BUTTON_PLUS, WPAD_EXP_NONE) \
|
#define WBTN_PLUS_PRESSED (wBtn_Pressed(WPAD_BUTTON_PLUS, WPAD_EXP_NONE) \
|
||||||
|| wBtn_Pressed(WPAD_CLASSIC_BUTTON_FULL_R, WPAD_EXP_CLASSIC))
|
|| wBtn_Pressed(WPAD_CLASSIC_BUTTON_PLUS, WPAD_EXP_CLASSIC))
|
||||||
#define WBTN_Z_PRESSED (wBtn_Pressed(WPAD_NUNCHUK_BUTTON_Z, WPAD_EXP_NUNCHUK) \
|
#define WBTN_Z_PRESSED (wBtn_Pressed(WPAD_NUNCHUK_BUTTON_Z, WPAD_EXP_NUNCHUK) \
|
||||||
|| wBtn_Pressed(WPAD_CLASSIC_BUTTON_ZR, WPAD_EXP_CLASSIC))
|
|| wBtn_Pressed(WPAD_CLASSIC_BUTTON_ZR, WPAD_EXP_CLASSIC))
|
||||||
#define WBTN_A_PRESSED (wBtn_Pressed(WPAD_BUTTON_A, WPAD_EXP_NONE) \
|
#define WBTN_A_PRESSED (wBtn_Pressed(WPAD_BUTTON_A, WPAD_EXP_NONE) \
|
||||||
|
@ -95,8 +95,9 @@ bool LoadHomebrew(const char *filepath)
|
|||||||
DCFlushRange(EXECUTE_ADDR, filesize);
|
DCFlushRange(EXECUTE_ADDR, filesize);
|
||||||
homebrew_ptr = (char*)EXECUTE_ADDR;
|
homebrew_ptr = (char*)EXECUTE_ADDR;
|
||||||
homebrew_size = filesize;
|
homebrew_size = filesize;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *GetHomebrew(unsigned int *size)
|
char *GetHomebrew(unsigned int *size)
|
||||||
@ -168,7 +169,7 @@ void BootHomebrew()
|
|||||||
|
|
||||||
memcpy(BOOTER_ADDR, appbooter_ptr, appbooter_size);
|
memcpy(BOOTER_ADDR, appbooter_ptr, appbooter_size);
|
||||||
DCFlushRange(BOOTER_ADDR, appbooter_size);
|
DCFlushRange(BOOTER_ADDR, appbooter_size);
|
||||||
|
free(appbooter_ptr);
|
||||||
JumpToEntry(BOOTER_ENTRY);
|
JumpToEntry(BOOTER_ENTRY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user