INSERT OR IGNORE INTO app_emulator_possible_paths (os_id, possible_path, android_package_name, android_activity_name, description, is_default, priority) VALUES
-- RetroArch para Windows
(1, 'C:\\RetroArch-Win32\\retroarch.exe', NULL, NULL, 'RetroArch Win32', 0, 1),
(1, 'C:\\RetroArch-Win64\\retroarch.exe', NULL, NULL, 'RetroArch Win64', 1, 2),
(1, 'C:\\RetroArch-MSVC10-Win32\\retroarch.exe', NULL, NULL, 'RetroArch MSVC10 Win32', 0, 3),
(1, 'C:\\RetroArch-MSVC10-Win64\\retroarch.exe', NULL, NULL, 'RetroArch MSVC10 Win64', 0, 4),
(1, 'C:\\RetroArch-MSVC05-Win32\\retroarch.exe', NULL, NULL, 'RetroArch MSVC05 Win32', 0, 5),
(1, 'C:\\Program Files\\RetroArch\\retroarch.exe', NULL, NULL, 'RetroArch Program Files Win32', 0, 6),
(1, 'C:\\Program Files\\RetroArch-Win64\\retroarch.exe', NULL, NULL, 'RetroArch Program Files Win64', 0, 7),
(1, 'C:\\Program Files (x86)\\RetroArch\\retroarch.exe', NULL, NULL, 'RetroArch Program Files Win32', 0, 8),
(1, 'C:\\Program Files (x86)\\RetroArch-Win64\\retroarch.exe', NULL, NULL, 'RetroArch Program Files Win64', 0, 9),
-- RetroArch Steam
(1, 'C:\\Program Files (x86)\\Steam\\steamapps\\common\\RetroArch\\retroarch.exe', NULL, NULL, 'RetroArch Steam Win32', 0, 10),
(1, 'D:\\Program Files (x86)\\Steam\\steamapps\\common\\RetroArch\\retroarch.exe', NULL, NULL, 'RetroArch Steam Win64', 0, 11),
(1, 'C:\\Program Files\\Steam\\steamapps\\common\\RetroArch\\retroarch.exe', NULL, NULL, 'RetroArch Steam Win32', 0, 12),
(1, 'D:\\Program Files\\Steam\\steamapps\\common\\RetroArch\\retroarch.exe', NULL, NULL, 'RetroArch Steam Win64', 0, 13),

-- Eden y Citron para Windows
(1, 'C:\\Eden\\eden.exe', NULL, NULL, 'Eden Switch Emulator', 0, 20),
(1, 'C:\\Program Files\\Eden\\eden.exe', NULL, NULL, 'Eden Switch Emulator', 0, 21),
(1, 'D:\\Eden\\eden.exe', NULL, NULL, 'Eden Switch Emulator', 0, 22),
(1, 'C:\\Citron\\citron.exe', NULL, NULL, 'Citron Switch Emulator', 0, 23),
(1, 'C:\\Program Files\\Citron\\citron.exe', NULL, NULL, 'Citron Switch Emulator', 0, 24),
(1, 'D:\\Citron\\citron.exe', NULL, NULL, 'Citron Switch Emulator', 0, 25),

-- PCSX2 para Windows
(1, 'C:\\PCSX2\\pcsx2-qt.exe', NULL, NULL, 'PCSX2 Standalone', 0, 30),
(1, 'C:\\Program Files\\PCSX2\\pcsx2-qt.exe', NULL, NULL, 'PCSX2 Standalone', 0, 31),
(1, 'C:\\Program Files (x86)\\PCSX2\\pcsx2-qt.exe', NULL, NULL, 'PCSX2 Standalone', 0, 32),
(1, 'D:\\PCSX2\\pcsx2-qt.exe', NULL, NULL, 'PCSX2 Standalone', 0, 33),


-- RetroArch para Android (con packages y activities)
(2, 'com.retroarch.aarch64', 'com.retroarch.aarch64', 'com.retroarch.browser.retroactivity.RetroActivityFuture', 'Actividad principal para lanzar juegos (funciona)', 1, 1),
(2, 'com.retroarch.aarch64', 'com.retroarch.aarch64', 'com.retroarch.browser.mainmenu.MainMenuActivity', 'Menú principal de RetroArch', 0, 2),
(2, 'com.retroarch.aarch64', 'com.retroarch.aarch64', 'com.retroarch.browser.retroactivity.RetroActivity', 'Actividad alternativa para juegos', 0, 3),
(2, 'com.retroarch', 'com.retroarch', 'com.retroarch.browser.retroactivity.RetroActivityFuture', 'Actividad principal para package estándar', 0, 4),
(2, 'com.retroarch', 'com.retroarch', 'com.retroarch.browser.mainmenu.MainMenuActivity', 'Menú principal para package estándar', 0, 5),
(2, 'com.retroarch.ra32', 'com.retroarch.ra32', 'com.retroarch.browser.retroactivity.RetroActivityFuture', 'Actividad principal para package ra32', 0, 6),
(2, 'com.retroarch.ra32', 'com.retroarch.ra32', 'com.retroarch.browser.mainmenu.MainMenuActivity', 'Menú principal para package ra32', 0, 7),

-- Eden y Citron para Android
(2, NULL, 'dev.eden.eden_emulator', 'org.yuzu.yuzu_emu.ui.main.MainActivity', 'Eden Standard Switch Emulator', 1, 20),
(2, NULL, 'dev.legacy.eden_emulator', 'org.yuzu.yuzu_emu.ui.main.MainActivity', 'Eden Legacy Switch Emulator', 1, 21),
(2, NULL, 'com.miHoYo.Yuanshen', 'org.yuzu.yuzu_emu.ui.main.MainActivity', 'Eden Optimized Switch Emulator', 1, 22),
(2, NULL, 'org.citron.citron_emu', 'org.citron.citron_emu.ui.main.MainActivity', 'Citron Switch Emulator', 1, 23),

-- NetherSX2 para Android
(2, NULL, 'xyz.aethersx2.android', 'xyz.aethersx2.android.EmulationActivity', 'NetherSX2 PS2 Emulator', 1, 30),

-- Dolphin Standalone para Android
(2, NULL, 'org.dolphinemu.dolphinemu', 'org.dolphinemu.dolphinemu.ui.main.MainActivity', 'Dolphin Emulator', 1, 40),

-- PPSSPP para Android
(2, NULL, 'org.ppsspp.ppsspp', 'org.ppsspp.ppsspp.PpssppActivity', 'PPSSPP Emulator', 1, 50),
(2, NULL, 'org.ppsspp.ppssppgold', 'org.ppsspp.ppssppgold.PpssppActivity', 'PPSSPP Gold Emulator', 1, 51),

-- Azahar para Android
(2, NULL, 'io.github.lime3ds.android', 'org.citra.citra_emu.ui.main.MainActivity', 'Azahar Emulator', 1, 60),

-- DuckStation para Android
(2, NULL, 'com.github.stenzek.duckstation', 'com.github.stenzek.duckstation.MainActivity', 'DuckStation Emulator', 1, 70),

-- RetroArch para Linux
(3, '~/Applications/RetroArch-Linux*.AppImage', NULL, NULL, 'RetroArch Linux', 1, 1),
(3, '~/.local/share/applications/RetroArch-Linux*.AppImage', NULL, NULL, 'RetroArch Linux', 0, 2),
(3, '~/.local/bin/RetroArch-Linux*.AppImage', NULL, NULL, 'RetroArch Linux', 0, 3),
(3, '~/bin/RetroArch-Linux*.AppImage', NULL, NULL, 'RetroArch Linux', 0, 4),
(3, '/var/lib/flatpak/exports/bin/org.libretro.RetroArch', NULL, NULL, 'RetroArch Linux', 0, 5),
(3, '~/.local/share/flatpak/exports/bin/org.libretro.RetroArch', NULL, NULL, 'RetroArch Linux', 0, 6),

-- Eden y Citron para Linux (buscar en common paths)
(3, '~/Applications/Eden*.AppImage', NULL, NULL, 'Eden Switch Emulator', 0, 20),
(3, '~/.local/bin/Eden*.AppImage', NULL, NULL, 'Eden Switch Emulator', 0, 21),
(3, '~/Applications/Citron*.AppImage', NULL, NULL, 'Citron Switch Emulator', 0, 22),
(3, '~/.local/bin/Citron*.AppImage', NULL, NULL, 'Citron Switch Emulator', 0, 23),

-- PCSX2 para Linux
(3, '/var/lib/flatpak/exports/bin/net.pcsx2.PCSX2', NULL, NULL, 'PCSX2 Flatpak', 1, 30),
(3, '~/.local/share/flatpak/exports/bin/net.pcsx2.PCSX2', NULL, NULL, 'PCSX2 Flatpak User', 0, 31),
(3, '~/Applications/PCSX2*.AppImage', NULL, NULL, 'PCSX2 AppImage', 0, 32),
(3, '~/.local/bin/pcsx2-qt', NULL, NULL, 'PCSX2 Binary', 0, 33),
(3, '/usr/bin/pcsx2-qt', NULL, NULL, 'PCSX2 System', 0, 34),

-- RetroArch para macOS
(4, '/Applications/RetroArch.app', NULL, NULL, 'RetroArch macOS', 1, 1);
