drhelius / Gearsystem

Sega Master System / Game Gear / SG-1000 emulator for macOS, Windows, Linux, BSD and RetroArch.
https://x.com/drhelius
GNU General Public License v3.0
247 stars 45 forks source link

Feature Request: Load Symbol Maps From Command Line #75

Closed Pokeman2003 closed 6 months ago

Pokeman2003 commented 1 year ago

Pretty much on the tin. We can already load ROMs from the command line, so why not symbol maps? It would make automating my debugging way easier.

Also, it would probably behoove you to implement a CLI help prompt, under something like a /? or --? flag.

drhelius commented 1 year ago

Yep, nice to have.

If you are using the emulator as a debugger any feedback you have will be greatly appreciated. Don't hesitate to open more feature request if you miss something or can be improved.

Thanks for your help.

Pokeman2003 commented 1 year ago

I'm currently setting everything up to do so. I'll let you know when I encounter things that I think could use feedback.

While I'm here, what's with the custom UI instead of Win32? Is that just the result of a cross-platform library you're using? I don't mind it(at least, not in any capacity to demand it to be changed,) but it does ever so slightly bug me because it doesn't look consistent with the rest of my programs :P

drhelius commented 1 year ago

The UI is https://github.com/ocornut/imgui It is extremely easy to use and let me focus on the emulation part, and it is also portable. I used Qt in the past and it was a pita.

Pokeman2003 commented 1 year ago

So I've heard from one of my other developer friends. They liked early Qt, but aren't fans of current Qt. Anyways, like the emulator, keep up the good work!

drhelius commented 6 months ago

The emulator tries to load automatically a symbol file at the same time a rom is being loaded. For example, for path_to_rom_file.sms it tries to load path_to_rom_file.sym

This was already implemented. I just added an option to load a symbol file using the command line too: Usage: gearsystem [rom_file] [symbol_file]