NovaSquirrel / Mesen-X

Mesen X is a cross-platform (Windows & Linux) NES/Famicom emulator built in C++ and C#. This fork is meant to gather development efforts from different forks. Deprecated; see https://github.com/SourMesen/Mesen2/
https://www.mesen.ca
GNU General Public License v3.0
160 stars 28 forks source link

Load .dbg file when launched with scripts #59

Closed AlchemicRaker closed 2 years ago

AlchemicRaker commented 2 years ago

Currently when mesen is launched with scripts passed as command line args, the AutoLoadDbgFiles() function never gets called... because the Debug Window is loaded in an unusual way that keeps it hidden while allowing the Scripts Window to be opened. (Normally, opening the Debug Window for the first time is followed by calling AutoLoadDbgFiles(), which doesn't happen in this specific case).

This PR is to fix that, allowing the dbg file to be loaded when launched with scripts.