mirror of
https://github.com/sonicdcer/sf64.git
synced 2024-11-23 13:00:06 +00:00
PRINTF(); usage in sys_save
This commit is contained in:
parent
07fbeac7cb
commit
42225b01ff
@ -7,21 +7,23 @@ SaveFile sPrevSaveData;
|
||||
|
||||
s32 Save_ReadBlock(s32 arg0, u8* arg1) {
|
||||
if (osEepromRead(&gSerialEventQueue, arg0, arg1)) {
|
||||
(void) "EEPROM インターフェース回路反応なし (READ)\n";
|
||||
PRINTF("EEPROM インターフェース回路反応なし (READ)\n");
|
||||
return -1;
|
||||
} else {
|
||||
PRINTF("EEPROM READ %02X: %02X %02X %02X %02X %02X %02X %02X %02X\n");
|
||||
return 0;
|
||||
}
|
||||
(void) "EEPROM READ %02X: %02X %02X %02X %02X %02X %02X %02X %02X\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 Save_WriteBlock(s32 arg0, u8* arg1) {
|
||||
if (osEepromWrite(&gSerialEventQueue, arg0, arg1)) {
|
||||
(void) "EEPROM インターフェース回路反応なし (WRITE)\n";
|
||||
PRINTF("EEPROM インターフェース回路反応なし (WRITE)\n");
|
||||
return -1;
|
||||
} else {
|
||||
Timer_Wait(MSEC_TO_CYCLES(15));
|
||||
PRINTF("EEPROM WRITE %02X: %02X %02X %02X %02X %02X %02X %02X %02X\n");
|
||||
return 0;
|
||||
}
|
||||
Timer_Wait(MSEC_TO_CYCLES(15));
|
||||
(void) "EEPROM WRITE %02X: %02X %02X %02X %02X %02X %02X %02X %02X\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 Save_WriteEeprom(SaveFile* arg0) {
|
||||
@ -30,9 +32,10 @@ s32 Save_WriteEeprom(SaveFile* arg0) {
|
||||
s32 j;
|
||||
|
||||
if (osEepromProbe(&gSerialEventQueue) != 1) {
|
||||
(void) "EEPROM が ありません\n";
|
||||
PRINTF("EEPROM が ありません\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
for (i = 0; i < EEPROM_MAXBLOCKS; i++) {
|
||||
var_a2 = 0;
|
||||
for (j = 0; j < EEPROM_BLOCK_SIZE; j++) {
|
||||
@ -52,7 +55,7 @@ s32 Save_ReadEeprom(SaveFile* arg0) {
|
||||
s32 i;
|
||||
|
||||
if (osEepromProbe(&gSerialEventQueue) != 1) {
|
||||
(void) "EEPROM が ありません\n";
|
||||
PRINTF("EEPROM が ありません\n");
|
||||
return -1;
|
||||
}
|
||||
for (i = 0; i < EEPROM_MAXBLOCKS; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user