getStatus and setStatus implementation

This commit is contained in:
Jack Andersen
2016-12-28 11:39:10 -10:00
parent 223ea9a56e
commit 7315a1dedd
4 changed files with 157 additions and 20 deletions

View File

@@ -13,7 +13,8 @@ int main()
if (!mc2)
mc2.format(kabufuda::ECardSlot::SlotA, kabufuda::ECardSize::Card2043Mb);
std::unique_ptr<kabufuda::IFileHandle> f = mc.openFile("MetroidPrime A");
std::unique_ptr<kabufuda::IFileHandle> f;
mc.openFile("MetroidPrime A", f);
if (!f)
{
mc.createFile("MetroidPrime A", kabufuda::BlockSize, f);