mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-03 04:18:04 +03:00
Add Nintendo Switch support
- Bundle resources folder through romfs - Added Switch-exclusive romfs init/exit code - Add icon for NRO - Add Switch-exclusive CMake code for NACP/NRO generation - Add GitHub Actions Switch workflow
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
#include <emscripten.h>
|
||||
#include <emscripten/html5.h>
|
||||
#endif
|
||||
#ifdef __SWITCH__
|
||||
#include <switch.h>
|
||||
#endif
|
||||
|
||||
SDL_Window* g_window;
|
||||
SDL_Renderer* g_renderer;
|
||||
@@ -20,6 +23,9 @@ NACT* g_nact;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
#ifdef __SWITCH__
|
||||
romfsInit();
|
||||
#endif
|
||||
Config config(argc, argv);
|
||||
|
||||
if (!config.timidity_cfg.empty()) {
|
||||
@@ -94,6 +100,10 @@ int main(int argc, char *argv[])
|
||||
SDL_DestroyWindow(g_window);
|
||||
SDL_Quit();
|
||||
|
||||
#ifdef __SWITCH__
|
||||
romfsExit();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user