Commit graph

132 commits

Author SHA1 Message Date
littleguy77
44f0f5060d Fix windows build regression introduced in PR 12.
The EXPORT command breaks the build in windows due to conflicting
declaration of sdl_main by SDL_main.h, when built for WIN32.  No such
conflict exists for non-windows builds.

Here we just substitute the non-windows definition of EXPORT.
2015-01-17 20:18:37 -05:00
Dorian Fevrier
b2bbc856ab Revert "Remove SDL build dependency." 2015-01-14 08:34:08 -05:00
littleguy77
87ef78922a Remove SDL build dependency. 2015-01-13 12:43:58 -05:00
littleguy77
f3d45ddbbe Allow external state callback to be specified via build flag...
... and allow main() to be called by external module.

Useful for UI implementations that simply layer on top of ui-console
(rather than reimplement it).  In such cases, ui-console can be built as
a library rather than top-level executable.  The higher-level UI can
then "launch" the ui-console implementation in its own process/thread
by calling main directly (rather than spawning a separate ui-console
process).  This is not only a general convenience, but also allows the
higher-level UI to provide a state callback to synchronize its display.

This commit facilitates downstream UI development, but is not likely to
be of interest to general users who build ui-console from makefile.
Therefore, the CALLBACK_* build flags are omitted from the makefile help
text.
2015-01-08 22:55:40 -05:00
Will Nayes
969970dcde Added basic breakpoints add/rm. Added printout of current op. Added exit/quit. 2014-12-30 16:34:47 -06:00
Will Nayes
175503cde5 No padding on all-zeroes register values. 2014-12-18 19:35:24 -06:00
Will Nayes
8fb22f1096 Use SDL threading instead of pthreads. 2014-12-18 19:29:23 -06:00
Will Nayes
5ce862533c Added GPR printout with value-changed indication. 2014-12-16 21:10:33 -06:00
Dorian Fevrier
c495ff81e6 fix bad logic to set frame callback 2014-12-13 15:56:26 -05:00
Dorian Fevrier
7d5247b399 fix: can't load saved state and do screenshot because only one callback function is allowed. Now everything is done inside one single callback function 2014-12-12 20:07:29 -05:00
Dorian Fevrier
566c9f9903 add savestate loading at rom startup support 2014-12-11 23:25:30 -05:00
Will Nayes
29363909e0 Fixes after fetching upstream. 2014-11-23 17:54:01 -06:00
Will Nayes
1703b25649 Initial debugger code with run/pause/step. 2014-11-23 16:36:50 -06:00
Sven Eckelmann
da9e9b4d3b Force line ending type for specific files
Different operation systems (Unix vs. Windows) use different line ending types.
It can easily happen that users from different systems edit files and replace
all line endings of a file with the system specific version. This screws up
diffs and makes merges harder.

Git can normalize line endings for specific files and avoid this problem.
Binary files should be marked to avoid accidentally normalization.
2013-12-19 14:19:07 +01:00
littleguy77
4cff083518 Define printf/debug callback for Android builds. 2013-08-30 09:42:28 -04:00
Richard Goedeken
04fe4dad22 update version number to 2.0 2013-07-03 07:09:38 -07:00
Richard Goedeken
ba2e1d0192 update README and command-line usage console output 2013-06-27 22:31:55 -07:00
Sven Eckelmann
9a3c294a88 Avoid crash caused by missing initial SDL startup
SDL needs to overwrite the main function to initialize the inner state on some
operating systems. Not doing it this way will cause random crashes and
undefined behaviour.

Systems which need a special main function are for example Apple MacOS,
Android, iPhone or Win32. SDL will handle it automatically and keep systems
without such requirement with an untouched main function.
2013-06-25 14:57:05 +02:00
Richard Goedeken
340c135b7c fixed compiler warnings 2013-03-09 21:30:06 -08:00
richard42
f34f491110 changes to fix compile errors in OSX 10.7.5 2013-02-11 09:05:01 -08:00
n pepinpe
69e4a968e7 Include SDL header without SDL/ directory 2012-12-31 10:52:25 +01:00
Richard Goedeken
d8d9f23080 string safety for DebugMessage 2012-06-24 18:13:17 -07:00
casualjames casualjames
c939b8ca0c Make sure main.h is included. 2012-06-25 02:36:43 +02:00
casualjames casualjames
46549eea52 Implementation. 2012-06-25 02:33:47 +02:00
Richard Goedeken
d7a60ce545 more specific parameter comment based on feedback from issue 489 2012-04-08 09:55:50 -07:00
Richard Goedeken
5726cca201 updating README, RELEASE, and version info for v1.99.5 tag 2012-03-10 09:56:09 -08:00
richard42
39059928a9 default to save config file in ui-console front-end 2012-03-06 21:07:52 -08:00
richard42
ce7b345509 1. add project dependencies to solution file
2. bugfix: forgot newlines in warning messages
2012-03-06 20:48:41 -08:00
Richard Goedeken
c77f1134e0 fixed round-off error in config parameter version checking 2012-03-04 15:42:30 -08:00
Richard Goedeken
16f9c57b1c Added config version number for UI-Console section 2012-02-23 20:47:36 -08:00
Sven Eckelmann
0ad97d0897 Fix loading of cheat entries with leading zeros 2011-09-22 13:18:05 +02:00
Sven Eckelmann
9d4018c551 Only use software interrupts on x86(_64) 2011-08-04 11:53:58 +02:00
Richard Goedeken
7b7873bcfa Support core front-end API v2.0.1, and add --nospeedlimit option for benchmarking 2011-07-16 11:30:41 -07:00
Sven Eckelmann
649789679b Don't use _BIG_ENDIAN to check for endianness as it is always set on OpenBSD 2011-06-26 20:18:11 +02:00
Sven Eckelmann
a9494e2c02 Mark local only functions as static or fix their definition 2011-06-25 23:46:50 +02:00
Sven Eckelmann
cf11a07c99 Remove unused variable NumCheats 2011-06-25 17:21:23 +02:00
Richard Goedeken
d5fe6bbbba updated Console-UI front-end for new Mupen64plus 2.0 API versioning scheme 2011-05-16 21:49:45 -07:00
Richard Goedeken
665e817b48 updated version and RELEASE info for 1.99.4 tag 2010-11-22 20:55:15 -05:00
Richard Goedeken
238ff7f8e9 add some parameter checking for --emumode option 2010-10-21 15:37:36 -04:00
Narann
7b2758def8 [fix] cheat.c now compile on visual studio. Just VS can't cast void pointer to typed pointer 2010-10-18 20:59:06 +02:00
Richard Goedeken
29e4230313 spinout's and my changes for new cheat file format, keyed off of CRC instead of GoodName 2010-10-04 22:09:06 -04:00
Richard Goedeken
25f8ade6e4 cleaned up source code and fixed a couple of bugs in new cheat code 2010-09-29 23:21:49 -04:00
Richard Goedeken
6b46d19ffd New cheat file parsing code from spinout for parsing a new cheat code file with a somewhat more readable format. This code also can deal with the cheats which have multiple options 2010-09-29 22:39:00 -04:00
Sven Eckelmann
f3db39ea83 Add dummy PATH_MAX on systems without it
Posix only defines that PATH_MAX may is defined through limits.h.
GNU/Hurd has removed this definition without violating the standards.

Mupen64Plus still relies on it and we work around that problem by
defining PATH_MAX as 4096 in all places it is needed. This is not 100%
correct as their are ways to generate longer paths, but mupen64plus must
be heavily refactored in some places to fix the actual problem.
---
2010-07-13 21:33:43 +02:00
Sven Eckelmann
3a72b1a0e7 Add missing header 2010-03-04 23:31:18 +01:00
Richard Goedeken
31082b9ed7 fixed default plugin names 2010-03-02 19:39:03 -05:00
Richard Goedeken
e984740635 suppress dlopen() error message if system-installed core lib not found, because it will be searched for in the current directory later 2010-03-01 19:55:24 -05:00
Richard Goedeken
6a68ccbd2b Updated RELEASE file and version info for 1.99.3 tag 2010-02-13 16:55:43 -05:00
GoedekenR
88212f6656 Change from unix to dos line endings for osal_files_win32.c 2010-01-26 01:17:48 -05:00
GoedekenR
38252128b9 Win32: fixed error (due to compiling .c files as .cpp) 2010-01-11 23:36:10 -05:00