just tested your mod:
View attachment 324619
Thanks!
My first github project, and it worked! (kinda)
Really hope someone can get a beter scale/interpolation funcion and the option to switch between fullscreen and windowed mode.
But this works for now.
main.cpp is where SDL2 gets started it seems, here is difined how to display, how sound is defined and where your controller input is written.
Ohh and a big failure is savegames... restarting the game will be a clean startup each time...
Savestate and savegame function didn't seem to work for me, is there anyone here who know how the snes emulator saves and load SRM (SRAM savegames)? that would be a cool thing to add.
Each time you start the game now it starts with a clean SRAM, while on the snes the SRAM is kept life by a battery.
i am really new to this so i really don't know what i'm doing right now, but could this initation of ram be set to overwrite itself while ingame, or when exiting? that should make the original way of savegame working.
and can someone please help me with switch option in window mode:
- Fullscreen: SDL_Window* window = SDL_CreateWindow("Zelda3", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 512, 480, SDL_WINDOW_FULLSCREEN_DESKTOP);
- Windowed: SDL_Window* window = SDL_CreateWindow("Zelda3", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 512, 480, SDL_WINDOW_RESIZABLE);
Both lines work for me in main.cpp, but it would be great to be able to switch between modes with ALT+ENTER in-game.