feat(files+gb): file browser launches .gb via GameBoy, preserve mDNS

This commit is contained in:
Adolfo Reyna
2026-07-20 12:51:19 -04:00
parent 75178652e2
commit 68766cdbed
3 changed files with 38 additions and 2 deletions
+9
View File
@@ -239,6 +239,15 @@ void View::viewFile(const std::string& path, const std::string& filename) {
if (loader) {
loader->start("one.tactility.mp3player", bundle);
}
#endif
} else if (isSupportedGameBoyFile(filename)) {
#ifdef ESP_PLATFORM
auto bundle = std::make_shared<Bundle>();
bundle->putString("file", processed_filepath);
auto loader = service::loader::findLoaderService();
if (loader) {
loader->start("one.tactility.gameboy", bundle);
}
#endif
} else {
LOG_W(TAG, "Opening files of this type is not supported");