(06-23-2026, 04:17 PM)Michkov Wrote: This is a Windows question. Other emulators can launch straight into the game via startup options added to a shortcut or alternate configuration files.
I was wondering if there is an option to achieve this in mGBA as well. I've looked online and through the forum, but couldn't find anything.
I use a .BAT file.
Copy the text at the end of the message into a .bat file
Replace
Emulator path here:
Code:
set ‘EMU=C:\EMULATOR\mGBA-0.10.5-win64\mGBA.exe’
ROM path
set ‘ROM=C:\ROM\GBA\Fire Emblem - The Sacred Stones (Europe) (En,Fr,De,Es,It).zip’
directory where you save your games and the names of the quick save files:
[/code]
set ‘DIR_GAMES=C:\ROM\GBA\GAMES’
set ‘BASE_NAME=Fire Emblem - The Sacred Stones (Europe) (En,Fr,De,Es,It)’
[/code]
Please note that this file is not harmful; you should check it and place it wherever you like.
I mention this because you shouldn’t just use any old .bat file, but this is a simple one.
Here’s the code:
Code:
@echo off
setlocal
:: Configuración de rutas
set "EMU=C:\ROM\EMULADORES\mGBA-0.10.5-win64\mGBA.exe"
set "ROM=C:\ROM\GBA\Fire Emblem - The Sacred Stones (Europe) (En,Fr,De,Es,It).zip"
set "DIR_PARTIDAS=C:\ROM\GBA\PARTIDAS"
set "BASE_NAME=Fire Emblem - The Sacred Stones (Europe) (En,Fr,De,Es,It)"
:: Busca el archivo .ss* ordenado por fecha de modificación más reciente (/o-d)
set "ULTIMA_PARTIDA="
for /f "delims=" %%i in ('dir "%DIR_PARTIDAS%\%BASE_NAME%.ss*" /b /a-d /o-d 2^>nul') do (
set "ULTIMA_PARTIDA=%DIR_PARTIDAS%\%%i"
goto :encontrado
)
:sin_partida
echo No se han encontrado partidas (.ss*). Abriendo el juego normal...
start "" "%EMU%" "%ROM%"
goto :fin
:encontrado
echo Cargando partida mas reciente: "%ULTIMA_PARTIDA%"
start "" "%EMU%" -t "%ULTIMA_PARTIDA%" "%ROM%"
:fin
exit