Commit graph

105 commits

Author SHA1 Message Date
Sven Eckelmann
124be15f94 Don't export inlined functions in C++ files 2010-03-18 11:12:15 +01:00
Sven Eckelmann
33faf704dd Reduced console output when running make without V=1 2010-03-18 10:59:11 +01:00
Sven Eckelmann
6bc14fdda3 Use separate CXXFLAGS environment variable when calling CXX 2010-03-18 10:10:38 +01:00
Sven Eckelmann
542754dd9c Add automatically dependency tracking for C/C++ files
Every time a header is changed, the user had to cleanup the whole project and
then rebuild it. It is quite easy to fix and should help a lot when working on
the project. The dependency files will be created at the first run (when
dependency tracking isn't useful anyway) and should create nearly no overhead.
2010-03-04 22:47:43 +01:00
GoedekenR
04f3a10797 Remove #include <stdint.h> and <stdbool.h> from new R4300 debugger code so that it will build in Windows 2010-02-28 09:01:35 -05:00
Richard Goedeken
275ec2bb6d added new re-entrant R4300 disassembler, from tty68k/zzt32, a man who loves MIPS processors 2010-02-26 11:38:40 -05:00
Richard Goedeken
99032437c3 makefile updates: use CFLAGS+= instead of CFLAGS= 2010-02-20 10:38:05 -05:00
GoedekenR
509c858ba2 bugfix: screenshot directory handling code used unix-specific path separators; now is platform-independent
bugfix: libpng write function crashed on Win32 when using its own fwrite() calls.  Now I'm using callbacks and calling fwrite() from within screenshot.cpp, which avoids the crash
2010-01-21 23:33:47 -05:00
Richard Goedeken
f316a7540e bugfix #257: added to makefile OS type GNU/kFreeBSD 2010-01-20 21:56:45 -05:00
Richard Goedeken
0ecd0a0604 don't run ldconfig on make install unless user is root; otherwise this can throw an error when a packager is building everything in a sandbox 2010-01-07 23:29:31 -05:00
GoedekenR
aa77010ce8 bugfix: stop spamming console with "Core: couldn't open memory pack file 'C:\...\*.mpk' for reading" messages 2010-01-02 16:22:33 -05:00
GoedekenR
5aa0674401 bugfix: win32 dynarec caused crash in release build
bugfix: get release build updated in project file
2010-01-02 15:24:56 -05:00
GoedekenR
19cceadab5 bugfix: stop spamming console with "Core: couldn't open eeprom file 'C:\...\*.eep' for reading" messages 2010-01-02 13:42:28 -05:00
GoedekenR
f1cb2990e7 fixed bugs in osal/files_win32.c, set up Win32 Debug build 2009-12-26 12:28:55 -05:00
GoedekenR
e7abd4677c Added libpng and freetype dependencies to Win32 build. The core now builds a valid DLL 2009-12-26 10:57:37 -05:00
GoedekenR
ae86636fe3 Merge recent Win32 work with previous makefile changes 2009-12-25 01:37:15 -05:00
GoedekenR
4c7060dff6 Added zlib support for Win32 build.
Since the MiniZip code (in main/zip/*) has _major_ C++ incompatibilities, I had to switch project file from (C++ compiler) back to Default.
This also required refactoring all the code with the nice C99 features which MSVC stupidly doesn't support
2009-12-25 01:35:01 -05:00
GoedekenR
ed36ec4484 Added new MSVC8 project file for mupen64plus-core 2009-12-24 16:36:16 -05:00
Richard Goedeken
4219de5179 bugfix: makefile needs to install Core header files so that plugins can be built later 2009-12-19 19:42:49 -05:00
Richard Goedeken
3daad95e08 Makefile improvements: throw error if OS/CPU not supported, use DESTDIR in install/uninstall paths, per Lazhur request. Allow user-specified CC/CXX/LD paths, per Auria request 2009-12-19 19:29:52 -05:00
Richard Goedeken
e5f3f9fe39 put LIBS after OBJECTS when linking, to avoid problems with -Wl,--as-needed 2009-12-15 13:32:31 -05:00
Richard Goedeken
ca7a17ca6f update m64p_build.sh script to move symbolic link instead of calling ldconfig. update makefile install target to depend upon building the library and to call LDCONFIG so that the lib cache is updated 2009-12-14 00:26:30 -05:00
Richard Goedeken
60e7eec02c removed unneeded release.mk file 2009-12-12 08:15:33 -05:00
Richard Goedeken
4bd48d31d5 fixed install/uninstall options in makefile, removed broken rebuild option 2009-12-12 01:15:57 -05:00
Richard Goedeken
c32403c0cb rename ui-console binary from mupen64plus-cli to just mupen64plus 2009-12-12 00:32:16 -05:00
Richard Goedeken
5253052870 cleanup and refactor makefile, remove pre.mk and configure script 2009-12-07 22:45:32 -05:00
Richard Goedeken
d8a8251eab generate versioned shared library for Linux and Freebsd 2009-12-05 20:08:57 -05:00
Richard Goedeken
53b9e93b7f added -Wall to CFLAGS and cleaned up the warnings for 64-bit normal and debugger builds 2009-12-01 22:46:47 -05:00
Richard Goedeken
a928f13da7 removed the old core comparison code and replaced with function calls through the new API. The front-end application will handle the communication between the 2 running cores 2009-11-30 22:01:43 -05:00
Richard Goedeken
93302a481a bugfix in Makefile for DEBUGGER=1 build, updated help message 2009-11-28 14:01:50 -05:00
Richard Goedeken
89d19906ef since the only language file that we ever had for the core was English, it seems that there's not that much of a demand for translation support in the core. So all of the translation code (and the empty language file) have been removed 2009-11-27 14:48:27 -05:00
Richard Goedeken
48caacd092 modified pre.mk for OSX compatibility patch from Auria and refactored for simplicity 2009-11-23 20:09:08 -05:00
Richard Goedeken
c821c5cb53 Moved all of the SDL event-related stuff into a new source file eventloop.c. There are still 2 things to fix: the joystick axis-driven core commands are hosed without hysteresis, and the key_pressed and event_active functions should be removed. They are only used by gs_button_pressed in cheat.c and should be replaced with a better mechanism 2009-11-18 23:15:11 -05:00
Richard Goedeken
243fd15d2c cleaned up makefiles a bit 2009-11-14 00:29:31 -05:00
Richard Goedeken
7b602e0eba imported patch OSX_build 2009-11-14 00:24:08 -05:00
Richard Goedeken
af80e7b4fb changed makefile option named DBG to DEBUGGER, and changed DBGSYM to DEBUG. added state load/save M64CMD enums 2009-10-22 23:06:50 -04:00
Richard Goedeken
a98d235a49 another big changeset moving over to the new API: 1. removed main/config.h and config.c, refactored core code to use new config api 2. added code for CoreAttachPlugin/CoreDetachPlugin 3. refactored r4300 core selector mechanism for single variable, removing dynacore/interpcore 4. rewrote main.c, removing unneeded functions and variables, refactoring for new API 2009-10-20 19:47:04 -04:00
Richard Goedeken
1f5117801d Completely rewrote Core's plugin handling code. Too many changes to list them all, but from a high-level perspective: 1. Remove all file-based library-handling code from plugin.c 2. Changed global API of plugin.c to integrate easily with entry-point code in api/frontend.c 3. New feature: automatic dummy plugin fallback 4. Removed legacy Win32 types (BYTE, DWORD) and struct members (hWnd, hInst, etc) 2009-10-17 22:09:51 -04:00
Richard Goedeken
cd54230594 moved all of the api_* files from main/ to api/, removing the prefix api_ from their names 2009-10-15 23:10:56 -04:00
Richard Goedeken
4be66b99ca makefile fix. added ConfigShutdown and ConfigSaveFile functions. added another warning message in ConfigInit 2009-10-15 23:01:14 -04:00
Richard Goedeken
9f65528f36 1. added Config Get*Path() functions, conformant to XDG Base Directory Specification 2. added debug callback code to pass messages back to front-end application 3. added extra level parameter to DebugCallback 4. numerous parameter type fixes in API 5. added ConfigGetUserConfigPath() function to API, so that user data / user config are separated 2009-10-13 23:11:55 -04:00
Richard Goedeken
baf8df1137 a couple of typo fixes and API updates made during the UI-console initial draft 2009-10-11 22:53:57 -04:00
Richard Goedeken
924f5dc803 finished PluginGetVersion() function in api_common.c. Now the front-end can attach to the core 2009-10-09 13:59:27 -04:00
Richard Goedeken
1052d25a4c Updated makefile to use static version.h instead of generating it from template 2009-10-09 13:36:04 -04:00
Richard Goedeken
e86fab2bed 1. moved main/plugin.* and dummy*/* into new plugin/ folder. 2. changed all #include statements with paths so that instead of being relative to current source file, they are relative to base source directory. 2009-10-07 23:01:13 -04:00
Richard Goedeken
95707e9d32 Added empty framework for the 2.0 api: all of the Core functions which will be exported to the other modules, and the API header files containing function pointers for use by the other modules 2009-10-07 20:19:58 -04:00
Richard Goedeken
5d35ed216e only compile with -fPIC on 64-bit arch because 32-bit shared lib can be built without it, and it has 40-60% speed penalty on i386. Add -fvisibility=hidden cflag for performance. Change rjump.c in both dynarecs so source can be properly built either with or without -fPIC -DPIC 2009-10-04 14:50:26 -04:00
Richard Goedeken
b63168dd6b Removed 7zip and lzma source code. Removed <bzlib.h> dependency from main/rom.c and removed <zlib.h> dependencies from everywhere except main/zip/*, which is only used by main/savestates.c 2009-10-04 00:30:27 -04:00
Richard Goedeken
ce938b162b removed NO_GUI preprocessor directive, l_GuiEnabled main.c flag, and signal handler 2009-10-03 23:22:37 -04:00
Richard Goedeken
bdcb92d6fb removed romcache.c/h, moved INI handling functions into rom.c/h 2009-10-03 19:54:23 -04:00