Comments (9)
I added saving to simple.js in this commit: b2ef17f.
It uses localStorage under the hood, and only uses one save file (not one-per game). But I think it should work for your use case.
from binjgb.
Yes, it's happening because I removed save support from the simple example I showed you. :-)
It shouldn't be too much work to add it back in, but I won't have time to do it for a little while. Basically all the stuff in demo.js called extRam*
needs to be added back in, as well as reading/writing to indexeddb.
from binjgb.
Thank you so much for getting back to me!
My students are the main ones who play my ROM and use the emulator, and one of them lost their save file and was crushed since they put so much hard work into it! I was heartbroken as well, since it brought back memories from my Game Boy days when the cart batteries would die!
Any who, this is great to hear! Let me know when you get a chance to fix it so we can work to get my page's code back where it needs to be!
In the meantime I guess I will have to use this as a reason to teach them about perseverance in the face of adversity! (Either that or make them their own ROM files that give them their high-leveled Pokemon back!) :D
from binjgb.
Thank you so much!
Can I just copy and paste this into my simple.js file, or should I delete mine, download yours, and then try re-uploading it?
from binjgb.
The changes are pretty small, you should be able to copy-paste them to your version.
from binjgb.
Thank you so much!
I will try this now and fingers-crossed for now more lost save files :D :D :D
from binjgb.
Happy to help!
from binjgb.
Hi binji.
would it be possible to add a button to upload a .sav file (while powered off) and to download the current .save file?
thanks!
from binjgb.
from binjgb.
Related Issues (20)
- Missing Z flag after add operation HOT 7
- make fails because of the ImGui HOT 1
- Browser Pre-Load Rom HOT 15
- Run Boot Rom HOT 2
- Joypad interrupt does not fire HOT 2
- Scaling is uneven HOT 2
- Vsync bug HOT 1
- Read sym file HOT 1
- Implement debug messages HOT 1
- Feature request: add a .sav import/export feature HOT 4
- Scanlines with the BG/Window disabled don't clear old sprite pixels HOT 2
- having trouble with embedding HOT 2
- Rejects ROMs as invalid HOT 4
- Skip audio frames while audio context is suspended HOT 2
- Huge RAM usage. HOT 5
- Integrate changes from daid/binjgb HOT 1
- Fatass Tracker doesn't work HOT 4
- Cube Raider doesn't work as expected HOT 3
- Unmatched malloc/free in `emulator_delete` HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from binjgb.