Commit graph

295 commits

Author SHA1 Message Date
Richard Goedeken
d940c9323e fix Travis CI test builds for MXE 32 and 64 bits 2019-01-29 22:14:55 -08:00
Richard Goedeken
d4303d96c4
Merge pull request #52 from bugfood/fix-options
Fix setting plugin parameters when configuration file not present.
2019-01-26 23:30:37 -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
Richard Goedeken
7158199d94
Merge pull request #51 from thyth/upstream-debugger-rebase
Enhancements to debugging interface
2018-11-16 19:52:24 -08:00
Daniel Selifonov
9df31d93f9
Fixed two issues in the new 'asm' debugger command 2018-11-11 23:16:52 -08:00
Daniel Selifonov
a0034474ad
Documented debugger command augmentation in the README 2018-11-11 22:39:34 -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
838d4d4f2f oops, correctly set PLUGINDIR macro in makefile 2018-11-07 20:20:03 -08:00
Richard Goedeken
e502f2b66b fix for issue #50: use LIBDIR for PLUGINDIR and COREDIR if they are not explicitly given 2018-11-06 21:24:59 -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
Richard Goedeken
5c1e2e8f0a
Merge pull request #47 from bugfood/fix-nosaveoptions
Make --nosaveoptions not ever save options.
2018-08-28 16:55:41 -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
Richard Goedeken
5b9eba4cab update readme for 64DD usability issues 2018-05-12 07:36:24 -07:00
Richard Goedeken
adfcea709b
Merge pull request #43 from bsmiles32/dd
Add basic support for 64DD.
2018-05-12 07:29:03 -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
8e20ab8f70 update FSF address in license 2018-02-04 12:59:24 -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
Anthony J. Bentley
50a0714ab6 Update link to bug tracker. 2018-01-01 17:46:49 +01:00
Gillou68310
990e24d7bc Fix VS2013 compilation 2017-12-12 17:23:34 +01:00
Richard Goedeken
1cdc745ad2 update Makefile method for finding OSX_SDK_PATH 2017-11-14 16:21:49 -08:00
Dorian Fevrier
9f663670bb
Merge pull request #44 from charlemagnelasse/travis-mxe
Build MXE targets as additional tests in travis build matrix
2017-11-06 12:19:37 +01:00
Charlemagne Lasse
92514d1ced Build MXE targets as additional tests in travis build matrix 2017-11-05 15:34:19 +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
Richard Goedeken
36d7cd8eb3 Merge pull request #40 from loganmc10/patch-1
Fix for #39
2017-09-25 19:09:39 -07:00
Logan
36145e5bdf Fix for #39 2017-09-25 08:39:32 -06:00
Richard Goedeken
7daadc8e57 Merge pull request #36 from loganmc10/pie
Fix no-pie mode for compilers that default to PIE
2017-09-21 21:41:19 -07:00