diff --git a/es-app/src/FileData.cpp b/es-app/src/FileData.cpp index 32d9e9cc3..a67e54f63 100644 --- a/es-app/src/FileData.cpp +++ b/es-app/src/FileData.cpp @@ -1143,6 +1143,10 @@ std::string FileData::findEmulatorPath(std::string& command) } for (std::string path : emulatorStaticPaths) { + path = Utils::FileSystem::expandHomePath(path); + #if defined(_WIN64) + path = Utils::String::replace(path, "/", "\\"); + #endif if (Utils::FileSystem::isRegularFile(path) || Utils::FileSystem::isSymlink(path)) { command.replace(0, endPos + 1, path); diff --git a/es-app/src/PlatformId.cpp b/es-app/src/PlatformId.cpp index 5e8ffc05a..a10aa4971 100644 --- a/es-app/src/PlatformId.cpp +++ b/es-app/src/PlatformId.cpp @@ -109,6 +109,7 @@ namespace PlatformIds "stratagus", // Stratagus game engine "sufami", // Bandai SuFami Turbo "supergrafx", // NEC SuperGrafx + "switch", // Nintendo Switch "ti99", // Texas Instruments TI-99 "tic80", // TIC-80 game engine "trs-80", // Tandy TRS-80 diff --git a/es-app/src/PlatformId.h b/es-app/src/PlatformId.h index 2dfe0e144..e8be86f4e 100644 --- a/es-app/src/PlatformId.h +++ b/es-app/src/PlatformId.h @@ -109,6 +109,7 @@ namespace PlatformIds GAMEENGINE_STRATAGUS, BANDAI_SUFAMI_TURBO, NEC_SUPERGRAFX, + NINTENDO_SWITCH, TEXAS_INSTRUMENTS_TI99, GAMEENGINE_TIC80, TANDY_TRS80, diff --git a/es-app/src/scrapers/ScreenScraper.cpp b/es-app/src/scrapers/ScreenScraper.cpp index b8dbfc493..01d38b4ff 100644 --- a/es-app/src/scrapers/ScreenScraper.cpp +++ b/es-app/src/scrapers/ScreenScraper.cpp @@ -80,6 +80,7 @@ const std::map screenscraper_platformid_map { { NINTENDO_GAME_AND_WATCH, 52 }, { NINTENDO_POKEMON_MINI, 211 }, { NINTENDO_SATELLAVIEW, 107 }, + { NINTENDO_SWITCH, 225 }, { BANDAI_SUFAMI_TURBO, 108 }, { DOS, 135 }, { PC, 135 }, diff --git a/resources/systems/macos/es_systems.xml b/resources/systems/macos/es_systems.xml index 018b3ee26..acfabaa6a 100644 --- a/resources/systems/macos/es_systems.xml +++ b/resources/systems/macos/es_systems.xml @@ -1045,6 +1045,15 @@ supergrafx supergrafx + + switch + Nintendo Switch + %ROMPATH%/switch + .nca .NCA .nro .NRO .nso .NSO .nsp .NSP .xci .XCI .7z .7Z .zip .ZIP + PLACEHOLDER %ROM% + switch + switch + tanodragon Tano Dragon diff --git a/resources/systems/unix/es_find_rules.xml b/resources/systems/unix/es_find_rules.xml index 0401d373b..83d7c11a0 100644 --- a/resources/systems/unix/es_find_rules.xml +++ b/resources/systems/unix/es_find_rules.xml @@ -4,19 +4,38 @@ retroarch + org.libretro.RetroArch + RetroArch-Linux-x86_64.AppImage /var/lib/flatpak/exports/bin/org.libretro.RetroArch + ~/Applications/RetroArch-Linux-x86_64.AppImage + ~/.local/bin/RetroArch-Linux-x86_64.AppImage + ~/bin/RetroArch-Linux-x86_64.AppImage + + + + + + yuzu + org.yuzu_emu.yuzu + yuzu.AppImage + + + /var/lib/flatpak/exports/bin/org.yuzu_emu.yuzu + ~/Applications/yuzu.AppImage + ~/.local/bin/yuzu.AppImage + ~/bin/yuzu.AppImage - - ~/.config/retroarch/cores ~/snap/retroarch/current/.config/retroarch/cores ~/.var/app/org.libretro.RetroArch/config/retroarch/cores + + ~/.config/retroarch/cores /usr/lib/x86_64-linux-gnu/libretro diff --git a/resources/systems/unix/es_systems.xml b/resources/systems/unix/es_systems.xml index 97fb791ea..38f10b781 100644 --- a/resources/systems/unix/es_systems.xml +++ b/resources/systems/unix/es_systems.xml @@ -1045,6 +1045,15 @@ supergrafx supergrafx + + switch + Nintendo Switch + %ROMPATH%/switch + .nca .NCA .nro .NRO .nso .NSO .nsp .NSP .xci .XCI .7z .7Z .zip .ZIP + %EMULATOR_YUZU% %ROM% + switch + switch + tanodragon Tano Dragon diff --git a/resources/systems/windows/es_find_rules.xml b/resources/systems/windows/es_find_rules.xml index 88219f349..b3f6dc384 100644 --- a/resources/systems/windows/es_find_rules.xml +++ b/resources/systems/windows/es_find_rules.xml @@ -18,6 +18,15 @@ %ESPATH%\..\RetroArch\retroarch.exe + + + + yuzu.exe + + + ~\AppData\Local\yuzu\yuzu-windows-msvc\yuzu.exe + + %EMUPATH%\cores diff --git a/resources/systems/windows/es_systems.xml b/resources/systems/windows/es_systems.xml index 82eb78c30..229b919c7 100644 --- a/resources/systems/windows/es_systems.xml +++ b/resources/systems/windows/es_systems.xml @@ -1045,6 +1045,15 @@ supergrafx supergrafx + + switch + Nintendo Switch + %ROMPATH%\switch + .nca .NCA .nro .NRO .nso .NSO .nsp .NSP .xci .XCI .7z .7Z .zip .ZIP + %EMULATOR_YUZU% %ROM% + switch + switch + tanodragon Tano Dragon diff --git a/themes/rbsimple-DE/switch/colors.xml b/themes/rbsimple-DE/switch/colors.xml new file mode 100644 index 000000000..803b8344d --- /dev/null +++ b/themes/rbsimple-DE/switch/colors.xml @@ -0,0 +1,18 @@ + + 6 + + + + DA4A4B + + + 65BADE + + + 000000 + + + EBECEE + + + diff --git a/themes/rbsimple-DE/switch/images/console.svg b/themes/rbsimple-DE/switch/images/console.svg new file mode 100644 index 000000000..345a518f0 --- /dev/null +++ b/themes/rbsimple-DE/switch/images/console.svg @@ -0,0 +1,3 @@ + + + diff --git a/themes/rbsimple-DE/switch/images/consolegame.svg b/themes/rbsimple-DE/switch/images/consolegame.svg new file mode 100644 index 000000000..345a518f0 --- /dev/null +++ b/themes/rbsimple-DE/switch/images/consolegame.svg @@ -0,0 +1,3 @@ + + + diff --git a/themes/rbsimple-DE/switch/images/controller.svg b/themes/rbsimple-DE/switch/images/controller.svg new file mode 100644 index 000000000..345a518f0 --- /dev/null +++ b/themes/rbsimple-DE/switch/images/controller.svg @@ -0,0 +1,3 @@ + + + diff --git a/themes/rbsimple-DE/switch/images/logo.svg b/themes/rbsimple-DE/switch/images/logo.svg new file mode 100644 index 000000000..04414e24f --- /dev/null +++ b/themes/rbsimple-DE/switch/images/logo.svg @@ -0,0 +1,140 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/themes/rbsimple-DE/switch/systeminfo.xml b/themes/rbsimple-DE/switch/systeminfo.xml new file mode 100644 index 000000000..700710504 --- /dev/null +++ b/themes/rbsimple-DE/switch/systeminfo.xml @@ -0,0 +1,30 @@ + + 6 + + + + Manufacturer : Nintendo + + + Year of Release : 2017 + + + Units sold : 84 million + + + Best-selling game : Mario Kart 8 Deluxe + + + CPU : ARM 4 Cortex-A57 cores @ 1.02 GHz + + + RAM : 4 GB LPDDR4 @ 1331/1600 MHz + + + Video : 256 Maxwell-based CUDA cores @ 307.2–768 MHz + + + Screen : 6.2-inch, 1280 × 720 LCD (237 ppi) + + + diff --git a/themes/rbsimple-DE/switch/theme.xml b/themes/rbsimple-DE/switch/theme.xml new file mode 100644 index 000000000..1ef216328 --- /dev/null +++ b/themes/rbsimple-DE/switch/theme.xml @@ -0,0 +1,28 @@ + + 6 + ./../theme.xml + ./colors.xml + ./systeminfo.xml + + + + ./images/controller.svg + + + + + + 262626 + 262626 + + + + + + ./images/logo.svg + + + ./images/consolegame.svg + + +