#134304 - Zapf_Bandit - Thu Jul 12, 2007 11:37 am
Hey,
I just bought myself a nifty R4 (slot1) card today.
I copied the game I am working on and it worked fine.
I have been using my supercard lite (slot2) for dev up until now.
I now want to add some persistant data to the cart (i.e. sram stuff)
My question is:
How should I save data using the slot1?
When I start my rom a *.sav file is created by the OS but I can't seem to read or write to it.
All the examples I can find use the memory on slot2 for saving. I have tried simply using:
Has anyone else run into this? What is the solution? Can homebrew saves be done on an R4?
I'm thinking I should use eeprom for saving but I can't find any example code using this.
I'm not a n00b but really need some advice.
Thanks in advance for any info,
Zapf bandit
Last edited by Zapf_Bandit on Thu Jul 12, 2007 12:48 pm; edited 2 times in total
I just bought myself a nifty R4 (slot1) card today.
I copied the game I am working on and it worked fine.
I have been using my supercard lite (slot2) for dev up until now.
I now want to add some persistant data to the cart (i.e. sram stuff)
My question is:
How should I save data using the slot1?
When I start my rom a *.sav file is created by the OS but I can't seem to read or write to it.
All the examples I can find use the memory on slot2 for saving. I have tried simply using:
Code: |
*(uint8*)(SRAM) = 69; |
Has anyone else run into this? What is the solution? Can homebrew saves be done on an R4?
I'm thinking I should use eeprom for saving but I can't find any example code using this.
I'm not a n00b but really need some advice.
Thanks in advance for any info,
Zapf bandit
Last edited by Zapf_Bandit on Thu Jul 12, 2007 12:48 pm; edited 2 times in total