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:
Adrian Graber
2022-10-29 08:25:07 +09:00
committed by kichikuou
parent 76a255619d
commit 05ff59cff2
4 changed files with 53 additions and 0 deletions
+10
View File
@@ -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;
}