mirror of
https://github.com/AxioDL/kabufuda.git
synced 2025-12-10 22:17:40 +00:00
Various fixes and proper BAT handling
This commit is contained in:
@@ -4,16 +4,19 @@
|
||||
int main()
|
||||
{
|
||||
kabufuda::Card mc{_S("test.USA.raw"), "GM8E", "01"};
|
||||
mc.format(kabufuda::EDeviceId::SlotA, kabufuda::ECardSize::Card123Mb);
|
||||
mc.createFile("MetroidPrime A", kabufuda::BlockSize);
|
||||
kabufuda::FileHandle f = mc.openFile("MetroidPrime A");
|
||||
//mc.format(kabufuda::EDeviceId::SlotA, kabufuda::ECardSize::Card2043Mb);
|
||||
kabufuda::FileHandle f = mc.openFile("MetroidPrime B");
|
||||
if (!f)
|
||||
f = mc.createFile("MetroidPrime B", kabufuda::BlockSize);
|
||||
|
||||
if (f)
|
||||
{
|
||||
const char* test = "Metroid Prime is Cool";
|
||||
const char* test = "Metroid Prime B is Cool";
|
||||
size_t len = strlen(test);
|
||||
mc.write(&f, test, len + 1);
|
||||
uint16_t derp = 1234;
|
||||
mc.write(&f, &derp, 2);
|
||||
mc.commit();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user