Skip to content

Commit

Permalink
Fix variable casting in sample
Browse files Browse the repository at this point in the history
  • Loading branch information
McCaulay committed Jul 22, 2023
1 parent 48694ac commit 673efee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/ps2-dump-to-mc/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ void main()
Okage::clearScreenText();

const char* dumpFile = "BASCUS-97129/dump.bin";
char* dumpAddress = (char*)OKAGE_LOVE_FLAG;
uint8_t* dumpAddress = (uint8_t*)OKAGE_LOVE_FLAG;

// Dump memory to MC
int fd = Okage::MemoryCardOpen(dumpFile, 1539);
Expand All @@ -17,7 +17,7 @@ void main()
return;
}

Okage::MemoryCardWrite(fd, dumpAddress, PS2::strlen(dumpAddress));
Okage::MemoryCardWrite(fd, dumpAddress, PS2::strlen((const char*)dumpAddress));
Okage::MemoryCardClose(fd);
Okage::printf("\"%s\" dumped to %s\\n", dumpAddress, dumpFile);
}

0 comments on commit 673efee

Please sign in to comment.