mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-03-21 17:44:21 -05:00
Cleaning up e-reader loader code
This commit is contained in:
parent
5e212a0a81
commit
9af6dde347
|
|
@ -27,11 +27,6 @@ const u8 MSG_CARD_SENT[] = {0x83, 0x4a, 0x81, 0x5b, 0x83, 0x68, 0x91, 0x97,
|
|||
/* "エラー" */
|
||||
const u8 MSG_ERROR[] = {0x83, 0x47, 0x83, 0x89, 0x81, 0x5b, 0x00};
|
||||
|
||||
/* "エーを押して再試行" */
|
||||
const u8 MSG_PRESS_A_TRY_AGAIN[] = {0x83, 0x47, 0x81, 0x5b, 0x82, 0xf0, 0x89,
|
||||
0x9f, 0x82, 0xb5, 0x82, 0xc4, 0x8d, 0xc4,
|
||||
0x8e, 0x8e, 0x8d, 0x73, 0x00};
|
||||
|
||||
/* "ビーを押してキャンセル" */
|
||||
const u8 MSG_PRESS_B_CANCEL[] = {0x83, 0x72, 0x81, 0x5b, 0x82, 0xf0, 0x89, 0x9f,
|
||||
0x82, 0xb5, 0x82, 0xc4, 0x83, 0x4c, 0x83, 0x83,
|
||||
|
|
@ -57,7 +52,6 @@ const u16 palette[] = {0x0000, 0xFFFF};
|
|||
|
||||
void print(const char* text);
|
||||
bool cancel();
|
||||
bool tryAgain();
|
||||
void reset();
|
||||
|
||||
int main() {
|
||||
|
|
@ -185,11 +179,6 @@ bool cancel() {
|
|||
return (keys & ERAPI_KEY_B) != 0;
|
||||
}
|
||||
|
||||
bool tryAgain() {
|
||||
u32 keys = ERAPI_GetKeyStateRaw();
|
||||
return (keys & ERAPI_KEY_A) != 0;
|
||||
}
|
||||
|
||||
void reset() {
|
||||
setGeneralPurposeMode();
|
||||
setMultiPlayMode(3); // 3 = 115200 bps
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user