Commit graph

132 commits

Author SHA1 Message Date
kwolekr
16f138052c debugger: Add dumpmem command 2024-12-02 14:59:14 -05:00
orbea
94a307628e src: remove SDL1 code path
Closes: https://github.com/mupen64plus/mupen64plus-ui-console/issues/15
2024-10-24 09:34:30 -07:00
GhostlyDark
1cab2e6dfe core_interface.c: Don't force macOS app bundle path 2024-09-06 22:36:17 +02:00
Richard Goedeken
1a68327fdd update version and release info for v2.6.0 release 2024-07-14 17:52:12 -07:00
GhostlyDark
1340c4bdfc main.c: Fix 64DD ROM loading 2023-04-18 13:43:38 +02:00
Logan
96834d5a18 Use PIF_ROM_SIZE 2020-10-11 23:10:36 +02:00
Logan McNaughton
42f91fec0d PIF binary support 2020-10-11 23:10:36 +02:00
Richard Goedeken
117d2e8fa4 fix warnings in win32 2019-06-02 23:13:14 -07:00
Richard Goedeken
b8fa2dea54 add function attributes so GCC can find bugs in calls to string formatting functions with variadic arguments 2019-03-03 09:41:03 -08:00
Richard Goedeken
8f7b6b07ca fix issue #54 - front-end application uses Config API functions from v2.3.1 2019-03-01 19:21:37 -08:00
Richard Goedeken
8548eb39f1 update version and release info for v2.5.9 BETA release 2019-02-10 10:14:35 -08:00
Corey Hickey
e46434df3a Fix setting plugin parameters when configuration file not present.
Currently, several plugins test for a specific version number to be set
in the config; if the version number is not present, then such plugins
initialize themselves with default parameters, completely ignoring any
parameters that had been set previously.

Example:
Input Warning: Missing or incompatible config section 'Input-SDL-Control1'. Clearing.

This behavior makes command-line plugin parameters largely unusable
until the configuration file has been written to (with an appropriate
"version" parameter).

To fix this, parse plugin parameters in another phase: after loading the
plugins but before attaching them to the core. This allows plugins to
load their own defaults before the command-line parameters are overlaid.

Plugins should be able to handle this; the operation is similar to how
mupen64plus-gui loads plugins to get defaults, allows the user to modify
the parameters, and then attaches the plugins to the core.
2019-01-26 21:18:41 -08:00
Richard Goedeken
b4db22f1fd
Merge pull request #48 from bugfood/fix-nosaveoptions
Fix nosaveoptions
2019-01-12 10:35:33 -08:00
Richard Goedeken
5926250b86 initialize variable. fix warnings 2018-11-16 19:56:32 -08:00
Daniel Selifonov
9df31d93f9
Fixed two issues in the new 'asm' debugger command 2018-11-11 23:16:52 -08:00
Daniel Selifonov
1ffb52b17a
Warn memory breakpoint users about physical/virtual address differences 2018-11-11 22:20:22 -08:00
Daniel Selifonov
2cdb10de7e
Added "translate" debugger command for virtual->physical address lookup 2018-11-11 22:13:38 -08:00
Daniel Selifonov
3c28ab2d54
Added "bp trig" command to see flags/address data for last hit breakpoint 2018-11-11 22:10:42 -08:00
Daniel Selifonov
c510ac4fc5
added more arguments to 'asm' debugger command
Zero arguments: disassemble one instruction at the current PC
One argument (address): disassemble one instruction at the address
Two arguments (address, size): disassemble 'size' instructions at 'address'
Three arguments (address, size, flags): disassemble 'size' instructions at 'address'
 - If bit-3 is set (i.e. & 0x04): also print binary representation of instructions
 - If bit-2 is set (i.e. & 0x02): prefix each instruction with its memory address
 - If bit-1 is set (i.e. & 0x01): prefix each instruction with an index from the start of disassembly
2018-11-11 22:06:52 -08:00
Daniel Selifonov
39c5800112
added breakpoint range and flag control to the add command 2018-11-11 21:59:04 -08:00
Daniel Selifonov
cd65527203
added simple memory writing command to debugger_loop 2018-11-11 21:37:33 -08:00
Richard Goedeken
859dda24f4 disable the debugger in the core if we are not running it in the ui-console, otherwise it will hang forever in the paused state 2018-11-06 07:30:55 -08:00
Richard Goedeken
cbbfeaad14 fix last commit; we need to support hex addresses too 2018-10-19 19:13:22 -07:00
Richard Goedeken
0dc8782b4d debugger fix: memory addresses must be unsigned 2018-10-18 20:45:19 -07:00
Daniel Selifonov
d1d184009a fixed bug in core_interface.c; getting function handles to DebugMemWrite* were actually getting handles to DebugMemRead* 2018-10-14 21:49:35 -07:00
Richard Goedeken
b1add1f806 fix register printout in debugger: need to tell printf that we have 64-bit values 2018-10-01 21:25:53 -07:00
Corey Hickey
2409aff737 avoid saving configuration unnecessarily
1. Check for changes before saving.
2. The command-line options are only parsed once, so no need to save
them again.
2018-08-29 22:37:35 -07:00
Corey Hickey
0bb63fe6f5 save configuration (if desired) right before running game
Currently, plugins frequently call ConfigSaveSection(), which results in
the configuration being rewritten. I intend to submit patches to remove
these calls.

In exchange, the front-end should save the configuration at the latest
safe opportunity, to capture any changes before most chances of crashes,
power outages, kill -9, etc.
2018-08-29 22:36:54 -07:00
Corey Hickey
678c534d27 Parse --nosaveoptions earlier in order to respect it.
The '--nosaveoptions' option does not work currently, due to various
reasons.

1. The core saves its configuration when loaded (addressed in a separate
   PR).
2. Plugins often save their configuration (to be addresses separately,
   if this change is acceptable).
3. The UI does not parse --nosaveoptions early enough to avoid saving
   the configuration (addressed in this patch).

This does not fully make --nosaveoptions work, but it is an incremental
improvement.
2018-08-27 21:52:59 -07:00
Bobby Smiles
9125460cd7 Add basic support for 64DD.
Definition of DD IPL rom and disk is done through the mupen64plus.cfg
file as follow:

[64DD]
IPL-ROM="path/to/64DD_IPL_ROM.bin"
Disk="path/to/64DDDisk.ndd"

Setting an empty IPL-ROM disable the 64DD.
Setting an empty Disk acts as if the 64DD had no disk plugged in.

You can also specify these at program startup using command-line
arguments --dd-ipl-rom and --dd-disk.
2018-03-25 22:48:39 +02:00
Richard Goedeken
5485240100 compilers which dont build in C99 mode by default are super lame 2018-03-12 22:10:40 -07:00
Richard Goedeken
e90085e34d update README and add new mem read command to console debugger 2018-03-12 21:53:31 -07:00
Richard Goedeken
6f44877ba6 fix win32 build 2018-02-11 15:18:22 -08:00
Richard Goedeken
c99996235e need this header file for the SDL version macro 2018-02-07 22:58:25 -08:00
Richard Goedeken
b49c7a6275 fix memory leak, warning, build with SDL 1.2 2018-02-07 22:43:03 -08:00
Richard Goedeken
b7cfc11513 force core config parameter EnableDebugger to True when launching debugger 2018-02-07 22:15:28 -08:00
Richard Goedeken
da4df0e27f fix warning and use SDL_Delay() instead of usleep() 2018-02-07 22:04:45 -08:00
Richard Goedeken
f641c94b3d merge console debugger from wnayes on github into ui-console front-end 2018-02-07 20:33:00 -08:00
Richard Goedeken
a105ae0c6f on macOS systems, use corefoundation framework to get the absolute path to the frameworks folder in the bundle, and look for the core library and plugins there 2018-01-23 19:18:33 -08:00
Anthony J. Bentley
78d3d6c955 Update homepage. 2018-01-01 17:46:49 +01:00
Anthony J. Bentley
aa292ba32d Update homepage links in program output, manpage, readme. 2018-01-01 17:46:49 +01:00
Gillou68310
990e24d7bc Fix VS2013 compilation 2017-12-12 17:23:34 +01:00
Bobby Smiles
e54b7c1a24 Rename GB cart loader to media loader. 2017-10-14 03:39:02 +02:00
Bobby Smiles
5e17accad0 Basic support for GB cart loader command.
Definition of GB carts loaded inside transferpak is done through the
mupen64plus.cfg file as follow :

[TransferPak]
GB-rom-1 = "path/to/gb_rom.gb"
GB-ram-1 = "path/to/gb_rom.sav"
GB-rom-2 ...
GB-ram-2 ...

Setting an empty GB ROM acts as if GB cart was removed form TransferPak.
Setting an empty GB RAM let the Core generate a blank save file.

These parameters are modifiable during emulator execution. You just need
to trigger the GB cart change button, and these parameters will be
reloaded.

You can also specify these at program startup using command-line
arguments --gb-{rom,ram}-{1,2,3,4}
2017-10-14 03:39:02 +02:00
Logan McNaughton
7aac7adb5f Add support for VIDEXT_HEADER 2017-03-16 21:20:48 -06:00
Gillou68310
334db80b55 New implementation of the savestate loaded at startup option.
The savestate will be loaded on the first safe state interrupt instead of being loaded on the first frame.
2016-10-19 17:15:06 +02:00
Richard Goedeken
58cf524522 update text files and version number for upcoming 2.5 release 2015-04-26 12:32:06 -07:00
Conchúr Navid
e1b4a8f1e3 Add missing includes and forward declarations 2015-03-21 13:47:40 +01:00
Conchúr Navid
9818963be4 Sort the includes based on type and names 2015-03-21 10:58:40 +01:00
Richard Goedeken
398b96c3b2 added project/solution file for Visual Studio 2013. removed older MSVS project files. fix code compatilibity problems with MSVC 2015-02-22 07:13:34 -08:00