Commit Graph

371 Commits

Author SHA1 Message Date
Maarten ter Huurne 722ea233a1 Align stack to 16-byte boundary when compiling in 32-bit mode with GCC. This is required to run anything on OS X and to support SSE instructions on Linux.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@439 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-05 00:02:53 +00:00
masken f96d19a1fb Wiimote: added ACL connection setup.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@438 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-03 06:50:38 +00:00
Maarten ter Huurne 36058428a0 Replaced "unsigned __int64" by "u64".
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@433 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-03 00:02:21 +00:00
Maarten ter Huurne 6e2416b389 Replaced "unsigned __int32" by "u32".
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@432 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-02 23:44:54 +00:00
Maarten ter Huurne 36b464cbc8 Replaced "unsigned __int16" by "u16".
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@431 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-02 23:32:05 +00:00
Shawn Hoffman 179752449d removed PortableSockets.cpp from the vs05 project file
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@430 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-02 02:35:08 +00:00
Maarten ter Huurne 1154027808 Replaced type "DWORD" by "u32", except where "DWORD" is used to access the Windows API.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@429 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-01 22:48:56 +00:00
Maarten ter Huurne f3f17b4a19 Removed parts of PortableSockets that we do not use. If you need more functionality later, resurrect it from old SVN revisions or re-download the source (see top of the header). However, DO NOT use performance counters to do timing, since the counter value can be different for different CPU cores.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@428 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-01 22:13:11 +00:00
masken 012041bab5 Added puts() HLE, WIIMOTE logging section and experimental virtual connection request.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@427 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-01 21:29:27 +00:00
gigaherz b1cd01819b replace _DEBUG with LOGGING in the #ifs. Thanks to Xuefer for this change.
also unbroke somethign which shouldn't have been there in the last commit.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@426 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-01 15:18:32 +00:00
gigaherz a7ec1a2562 Made banners/icons show up in linux. It doesn't seem to use the right height, but I have to leave now so that will have to wait.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@425 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-01 15:04:59 +00:00
gigaherz b0f51a0b98 Reverted the "warning removal" changes because they broke debug building in windows. Used #ifdef _DEBUG to disable those lines in release builds instead.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@424 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-01 14:49:34 +00:00
XTra.KrazzY 10eef7f60e Build fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@423 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-01 13:31:24 +00:00
nakeee 4bbfff3cac many warning fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@422 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-01 12:11:08 +00:00
Maarten ter Huurne cad45aea72 Replaced CPFifo by SCPFifoStruct: both were identical and there is no point in having two definitions.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@421 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-01 09:12:30 +00:00
Sonicadvance1 454cee4d1e Your Holy savior has come to save the day. Also fixed compiling in Linux, a memory leak, and checks if a glxcontext was created
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@419 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-01 08:32:33 +00:00
gigaherz ead647d422 Added code to display the first icon (I tried to display it animated, but failed).
It still uses just one imagelist, so I had to "expand" the icons to 96x32 (adding transparent pixels to the right).
Sorry I don't know how to do this better and it's 4am.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@418 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-01 02:10:42 +00:00
gigaherz f0b41b1f0d Fixed display of banners.
Turns out the YAGCD stuff was wrong, and it messed up the meaning of two bits. Also I had a bug in the CI8(C8) icon format display (wrong unswizzling).

Next will be adding icon display & animation, in a separate column

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@417 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-09-01 00:43:35 +00:00
gigaherz 56608cecc9 Added code to display the banners from the memcards. Doesn't overlay the icons yet.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@413 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-31 22:28:43 +00:00
gigaherz 532c675a3a Added animation reading. It seems to work fine for the first frame, but none of my saves have >1 frames so I can't test the reading of the other frames, which should work fine anyway.
Only missing is DISPLAYING the banner and the animation/icon.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@410 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-31 21:08:47 +00:00
gigaherz be6c1518ea Added ReadBannerRGBA8 function to GCMemcard class.
Also "#if FALSE"'d the debug code which outputs BMPs of the banners (because I'm too lazy, the BMPs will "look" upside-down, while the actual image is ok).

Next step will be to also allow reading animations.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@409 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-31 20:35:41 +00:00
Maarten ter Huurne 0bebbcb5f4 Replaced type "BYTE" by "u8", except where "BYTE" is used to access the Windows API.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@408 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-31 14:32:35 +00:00
hrydgard af1e42ec90 Fix build
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@406 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-31 14:00:54 +00:00
Maarten ter Huurne 2c7a92e1b7 Split off type definitions from "Common.h" into new header "CommonTypes.h". This is a preparation for sharing the type definitions between the Dolphin core and the plugin specs.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@405 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-31 13:54:25 +00:00
hrydgard 09406d76c4 Fix/workaround at least one class of buffer underruns in the GL plugin. Fix some bad deletes (instead of delete []). etc.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@404 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-31 13:36:52 +00:00
Maarten ter Huurne d9e129ae99 Removed WEAK_SYMBOL: it is not used anywhere.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@403 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-31 13:13:36 +00:00
XTra.KrazzY 2f0eb72ba1 Added compression support for save states. Decompression is still buggy so compression is off by default.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@401 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-31 09:38:41 +00:00
hrydgard a9c6a59307 don't lookup things in symbol map unnecessarily in the ppcanalyst, helps slowdowns in debugger in debug mode
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@400 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-31 08:39:57 +00:00
hrydgard 55c18d1d10 some cleanup, don't update the log window too often
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@399 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-31 08:29:43 +00:00
hrydgard 8bd78a21b4 Fix Pad_DX9 crash
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@398 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-31 06:53:23 +00:00
hrydgard af60e06bb0 Simulate Wii bootup better (info from wiibrew.org)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@397 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-31 06:52:16 +00:00
hrydgard b89e56cbcb linux build fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@396 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-30 23:30:41 +00:00
XTra.KrazzY 432084ebe7 handled state saving IO errors
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@392 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-30 22:36:28 +00:00
hrydgard 718a1c6a3f missing files, sorry
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@391 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-30 22:15:37 +00:00
hrydgard 005cbbb379 Basic VBA-style save state system implemented - kb shortcuts only working on Windows. Keyboard shortcut system added. More cleanup in GFX plugins.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@390 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-30 22:06:53 +00:00
hrydgard 85565688d7 New SaveState folder for states. Removed some outdated code. Removed an unnecessary level of indirection for plugin calls. Assorted cleanup.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@389 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-30 19:19:40 +00:00
hrydgard 6b6003c563 add zlib include directory to all configurations of Core.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@388 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-30 16:45:07 +00:00
hrydgard e4825be7a8 more statesave bugfixes...
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@387 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-30 16:24:45 +00:00
hrydgard 4608333a56 State saving progress. Most core state seems to be saved/loaded correctly, not so for video yet unfortunately.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@386 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-30 16:05:32 +00:00
XTra.KrazzY 95eb8f9ef3 Save states now work (to some extent). Please report special cases which cause crashes or anything of the sort. Also removed debug messages from state management
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@385 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-30 15:54:44 +00:00
gigaherz 06f0b02ecd Fixed a few bugs with the memcard manager, and memcard classes:
- Now the GCMemcard class will use the backup dir/bat if the main one is outdated/corrupted.
 - I fixed a few bugs in Delete. It still doesn't work, but at least it doesn't make the program crash.

I included a small changei n the sln so that debug/x64 builds use release/x64 njoy, this way there's no build errors annoying people trying to debug Dolphin. ;)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@384 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-30 13:44:44 +00:00
hrydgard 53afa1f900 reverted quantizer fix - causes heavy slowdown in some games. I have a better idea :p
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@383 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-30 13:17:07 +00:00
hrydgard 5ac5a04982 More state save code, "proper" fix for the quantizer problem
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@382 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-30 13:06:17 +00:00
hrydgard ff0a613427 Cleaning up XK's mess, added a simple profiler, minor disasm fix. Too lazy to split it up into individual changes. Savestates not yet working.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@381 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-30 12:11:25 +00:00
Shawn Hoffman c32f116596 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@376 8ced0084-cf51-0410-be5f-012b33b47a6e 2008-08-28 22:15:00 +00:00
XTra.KrazzY 2e760d69fe Added save/load state support in the UI
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@375 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-28 21:30:13 +00:00
Maarten ter Huurne 1716ef46bb Use compact syntax for converting C strings to C++ strings.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@374 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-28 19:22:36 +00:00
Maarten ter Huurne cfd31f4385 Build both GUI and non-GUI executable.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@373 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-28 18:58:11 +00:00
XTra.KrazzY f8b4311b66 Final typo and error fixes and include reordering
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@372 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-28 09:19:46 +00:00
XTra.KrazzY 531230c03d *another* typo fix. Sorry
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@371 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-28 08:11:40 +00:00
XTra.KrazzY f3fb7a9102 typo fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@370 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-28 08:09:25 +00:00
XTra.KrazzY e05e2179c3 I have broken something, but more may be broken
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@369 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-28 08:00:40 +00:00
XTra.KrazzY 051c2e0784 A lot of save state groundwork. Please notify if compilation breaks because
I haven't compiled


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@368 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-28 07:58:04 +00:00
XTra.KrazzY 8a33d6787b git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@367 8ced0084-cf51-0410-be5f-012b33b47a6e 2008-08-28 07:42:48 +00:00
Maarten ter Huurne e764723832 Fixed warnings about comparison between signed and unsigned integer expressions.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@366 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 16:12:05 +00:00
Maarten ter Huurne 541a86de26 Removed unused function x86SetJ8().
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@365 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 13:42:32 +00:00
Maarten ter Huurne ad748bfc05 Fixed CALL range check.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@364 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 13:29:35 +00:00
Maarten ter Huurne 9b1ddfcc69 Fixed BE32 macro to make sure it returns an unsigned int.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@363 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 12:51:03 +00:00
Sonicadvance1 a5d51aa2ce Linux Speed up
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@362 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 12:47:57 +00:00
daco65 6b718a6936 just some typo correction
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@361 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 12:44:29 +00:00
Maarten ter Huurne 105e1c325f Fixed warnings about field initialisation order.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@359 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 12:33:49 +00:00
Maarten ter Huurne ae7d236fdf Fixed warnings about field initialisation order.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@358 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 12:27:03 +00:00
Maarten ter Huurne b64722d4d5 Fixed warnings about field initialisation order.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@357 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 12:23:52 +00:00
Maarten ter Huurne a8f5185ef0 This header is Windows specific, so disabled it for other platforms, to avoid GCC complaining about a #pragma it cannot understand.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@355 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 12:09:56 +00:00
Maarten ter Huurne c0da275501 Fixed warning about initialisation order. Also made code layout consistent within this file.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@350 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 11:33:45 +00:00
Maarten ter Huurne bbeca155de Added "const" to the data type. This fixes loads of compile warnings and the resulting file seems to still be a valid XPM (in fact, some of the files already had "const").
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@349 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 11:24:16 +00:00
Maarten ter Huurne b6f82eb871 Avoid warning about redefining macro. It would be nice though if someone could add a comment describing what is Windows-specific about the JITting of stb/sth/stw.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@348 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 11:17:50 +00:00
XTra.KrazzY a0ae17c5ff Fixed message box calls (they aren't even necessary, just checking whether the saving made it into the VideoCommon library
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@345 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 10:01:46 +00:00
Maarten ter Huurne f8d7231be8 Fixed "no newline at end of file" warnings.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@342 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 09:27:57 +00:00
Maarten ter Huurne f31ae87152 Fixed "no newline at end of file" warnings.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@341 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 09:27:38 +00:00
Maarten ter Huurne 4aa233f1f6 Only include <windows.h> when compiling for Windows.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@340 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 09:07:02 +00:00
Maarten ter Huurne 7d0bf8a101 Fixed "no newline at end of file" warning.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@339 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 09:05:52 +00:00
daco65 f55722e288 Fix for XK's commit. XK, if its wrong punch me in the face
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@337 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 01:45:31 +00:00
Maarten ter Huurne d720368d48 Clear the full size of the EXRAM.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@335 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 01:05:54 +00:00
Maarten ter Huurne 0f3e8ddced On platforms where the OpenGL library uses the CDECL calling convention, the stack should be increased after making a call.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@334 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-27 01:04:54 +00:00
XTra.KrazzY 7a2cdef912 Preliminary video save state support. More work is necessary, this is just some infrastructure for inter-project communication.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@332 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-26 23:40:18 +00:00
Maarten ter Huurne 734586a0ab Include system headers using "#include <file.h>", so GCC will not issue warnings about them.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@331 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-26 23:32:54 +00:00
Maarten ter Huurne 59974dfb5b Only use "-fPIC" for compiling objects that will be part of dynamic libs. Make SConscripts inherit the compile flags from the top level instead of overriding them.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@329 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-26 22:28:42 +00:00
Maarten ter Huurne 0ebba1bde0 Restructured main SCons file in the same way as the one for the GL plugin.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@328 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-26 21:02:23 +00:00
Maarten ter Huurne 93f45b773c Fixed typo introduced in rev 323.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@327 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-26 14:09:59 +00:00
Maarten ter Huurne cedb93df9c Use CP_START constant: its value is 0, but using the constant anyway makes the code easier to read.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@325 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-26 13:06:38 +00:00
Maarten ter Huurne 19336445df IsElfWii(): return false if open fails. Also query file size only once.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@324 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-26 13:02:54 +00:00
Maarten ter Huurne ef6fb30b3c Refactored BlobReaders: instead of constructor + IsValid() method, a factory method is used which returns NULL if no valid BlobReader could be created. The new code does more sanity checks and leaks less objects.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@323 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-26 12:40:09 +00:00
Maarten ter Huurne 4c54c0cad8 Documented the change of rev 320 in a comment, so people reading the code will not be tempted to remove it.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@322 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-26 12:06:43 +00:00
Maarten ter Huurne 8e69d942e9 Implemented querying file size on POSIX. Also fixed size rounding of mmap() on POSIX.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@321 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-26 11:44:17 +00:00
Maarten ter Huurne fdf02ce331 Allow 32-bit writes to the VI: although this is officially not allowed, the hardware seems to accept it (for example, DesktopMan GC Tetris uses it).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@320 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-26 10:20:41 +00:00
hrydgard 236bb74c92 Forgot to move some enums.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@315 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-25 21:15:52 +00:00
hrydgard 84336bd7b6 little Logwindow feature - enable/disable all logs
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@314 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-25 21:02:56 +00:00
hrydgard ab4333ebac Small build fix, re-add CPU check
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@313 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-25 20:43:37 +00:00
hrydgard fd188ec09e Switch between JIT and Interpreter at runtime using the debug window (pause first!)
Plus assorted cleanup & fixes.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@312 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-25 20:34:11 +00:00
Maarten ter Huurne 1a2e350158 Declare EAX as input register for CPUID.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@310 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-25 10:21:19 +00:00
Maarten ter Huurne 8a06c0fdc7 Added call to DetectCPU() which is present in "Main.cpp" but was lacking in "MainNoGUI.cpp".
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@309 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-25 08:51:08 +00:00
Maarten ter Huurne 8185f7689a Fixed build on Linux.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@306 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 22:39:36 +00:00
hrydgard 90cf2c12c3 The arrows are back in the codeview!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@305 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 22:22:55 +00:00
hrydgard a47f8cbe9a more fixes, prefix filter for export symbols
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@304 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 21:54:59 +00:00
Maarten ter Huurne 4871626af8 Fixed "no newline at end of file" warnings issued by GCC 4.2.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@303 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 21:50:41 +00:00
hrydgard 5079ed0e5d linux build fix?
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@301 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 21:32:35 +00:00
hrydgard 71ea240890 More symbol magic+bugfixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@300 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 21:30:59 +00:00
Sonicadvance1 241896ee4c Build fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@299 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 20:32:46 +00:00
hrydgard b9f5fd1f44 Very simple call tree browser added to code window, bottom left.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@298 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 20:25:36 +00:00
Maarten ter Huurne 1b1f0ecae9 The simple form of "cpuid" should work on 64-bit platforms; on 32-bit platforms it is safer to use the version that does not modify EBX.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@297 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 20:13:49 +00:00
Maarten ter Huurne 7151ec6f4f GCC does not accept namespace as a prefix when defining functions (in general or because we are already inside the namespace?).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@296 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 19:48:42 +00:00
Maarten ter Huurne 2babda7a80 Explicitly convert from C string to wxString. Fixes build on Linux.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@295 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 19:47:10 +00:00
hrydgard c0c6fc9e6d Ok, part 2/2 of the symbol code rewrite. You can now create and use function signature files. A monkey ball signature file included. Now to add some cooler features...
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@294 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 18:50:51 +00:00
XTra.KrazzY 23665a7b93 Cross compatibility function union (strcasecmp, unlink)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@293 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 16:25:52 +00:00
hrydgard f44a06465a Change some project settings. Reorganize the symbol database code, step 1/2.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@292 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 15:46:08 +00:00
Maarten ter Huurne 6f1600304f 64-bit constant needs "ULL" suffix.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@290 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-24 11:37:31 +00:00
Sonicadvance1 8f6d7ad5e9 ...
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@285 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-23 19:50:28 +00:00
masken 657dfff6f8 Fixed new warnings from r282.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@284 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-23 15:33:40 +00:00
masken ae5b59747a Turned on Warnings as Errors for all vcprojs. Fixed almost all of the warnings in win32. Added many SVN Ignore settings.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@283 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-23 15:28:24 +00:00
hrydgard 8be70a8ed2 Finally hacked Super Monkey Ball into submission! Some bonus hacking tools included.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@282 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-23 15:15:25 +00:00
masken 0849a96d81 Added SYSCONF files. Fixed the return value of FileIO::Read().
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@281 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-23 14:53:33 +00:00
Sonicadvance1 d697eb6a85 Fix Compiling for people, Silly ector breaking things ;p
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@280 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-23 11:18:39 +00:00
hrydgard f82bf2ae9a Lots of FP hacking for little gain, super monkey ball is only slightly more sane (wow, it rhymed). Temporary no-speed-limit hack: Hold TAB.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@279 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-23 09:20:36 +00:00
Maarten ter Huurne 0becaa3223 Make sure SDL can hijack main() so it can do its initialisation. Only implemented for non-GUI executable so far.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@278 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-23 08:42:52 +00:00
Sonicadvance1 6e3069f99e Should fix Linux building, also adds GL/DX to the title in their respective plugins when in use
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@275 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-23 03:48:40 +00:00
Maarten ter Huurne cb5aa5435b On non-Windows platforms, #define _M_IX86 for 32-bit platforms and _M_X64 for 64-bit platforms. Until now, 64-bit was always selected, which broke Dolphin on 32-bit Linux and OS X.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@273 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-22 19:28:00 +00:00
Maarten ter Huurne 31c0bc4508 Implemented FPU precision control for 32-bit non-Windows platforms.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@272 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-22 17:46:13 +00:00
Maarten ter Huurne 292120453e Implemented FPU rounding control for 32-bit non-Windows platforms. I renamed the _RC_* constants that were previously #defined, because the bit patterns used by the hardware do not match those used by Windows; the new constants match the hardware.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@271 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-22 12:17:55 +00:00
Maarten ter Huurne 418e37029c Typecast function pointer argument of CALL() to void*, since this is not an automatic conversion for GCC.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@267 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-22 11:21:51 +00:00
Maarten ter Huurne 936bfbd867 Implemented Find4GBBase() on 32-bit non-Windows platforms. I am not sure the pointer acquired is any good though.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@266 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-22 10:38:53 +00:00
Maarten ter Huurne e74dd5d9f9 Added missing #include.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@265 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-22 00:13:26 +00:00
hrydgard 465ee5fd86 Save states - more boring groundwork. Far from done.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@263 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-21 23:28:07 +00:00
Maarten ter Huurne 28edd4d31b Fixed compilation when logging is enaled: it tried to log a non-existing field ("name"); I replaced it by an existing field ("type").
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@262 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-21 23:23:15 +00:00
Maarten ter Huurne 1acdd6b8e0 Fixed compile errors in conversion of C string to wxString when compiling with GCC against wx with Unicode support.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@261 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-21 23:11:29 +00:00
hrydgard 6a4d697f5f statesave prep: Change coretiming to index/registration model, instead of storing pointers. This will make it possible to save/load the event queue.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@258 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-21 20:01:18 +00:00
hrydgard 9e3747e2f3 SaveState preparations #1 - Annotate all(?) state. (NO SCHEDULE PROMISE!)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@257 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-21 18:23:10 +00:00
hrydgard 92031705cd Forgot some defines.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@256 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-21 17:57:26 +00:00
hrydgard 3ef0eb979d Move some code out of the plugins into VideoCommon. No functional change.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@255 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-21 17:49:06 +00:00
hrydgard 5e4da92d42 Very basic JIT results viewer.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@254 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-21 17:22:55 +00:00
hrydgard 77cec36ad4 Force the result of single precision arithmetic to have single precision only, also in jit. That is, another attempt at fixing the FPU bug in Zelda.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@251 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-20 23:25:48 +00:00
Maarten ter Huurne adafeaa8b4 Simplified conversion to C++ string.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@250 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-20 18:43:14 +00:00
hrydgard 683ba7ecae Minor speedup in texdecoder. More informative fifo error messages.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@249 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-20 18:31:48 +00:00
hrydgard bab47b610d Save/restore SSE flags through protected function calls.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@247 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-20 18:28:21 +00:00
hrydgard b5ff3fd80e Workaround for a missing feature in the FPU parts of the JIT.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@246 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-20 18:27:20 +00:00
hrydgard af7e0404ca fix crash bug in movddup-on-sse2-emulation
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@241 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-17 22:58:12 +00:00
hrydgard ba684cabcd some jit updates
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@240 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-17 22:26:42 +00:00
Shawn Hoffman 06e1add86c getting ready for AA
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@238 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-17 19:35:23 +00:00
NunoRamiro 8c132bdae5 - Fixed: Crash when loading a rom with an unknown file extension.
- Fixed: Crash when stopping a game.
- Improved: DirectX Plugin.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@237 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-17 19:28:24 +00:00
Sonicadvance1 e3f3a7a41d Linux: Fix so there isn't a trace/breakpoint trap when you get a panicalert and got the mem card reader to work
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@236 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-17 18:29:20 +00:00
hrydgard 3ccc46a67e Update 2005 project files. Add websites to help menu.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@235 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-17 16:59:59 +00:00
Shawn Hoffman 51317997f5 changed dolphinWX a bit and added memcard manager
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@234 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-17 16:41:53 +00:00
Sonicadvance1 730d80864d Mostly fix for OGL plugin, putting it's shaders in the right place, few other bugs here and there though. Fix for CPU detect and removed a quick hack to reduce underflows in the HLE plugin. Added AA for Linux, but may be only usable by ATI/Intel cards or Opensource drivers
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@231 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-17 03:56:07 +00:00
hrydgard d1723cae4a fix bug in giga's resampler,
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@230 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-16 23:53:00 +00:00
hrydgard aa3fee8c60 Audio system update - HLE plugin submitted, homebrew has sound, and also Mario movies!! (this was very unexpected). This also acts as a frame limiter. Might provide an option to turn it off in the future.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@227 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-16 21:58:07 +00:00
hrydgard dcd5ffeb7a More accurate audio interrupts (preparation for homebrew audio support). some minor cleanup in gl plugin.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@226 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-16 10:49:08 +00:00
Maarten ter Huurne 7962ab4713 Fixed CPU detection on Mac OS X.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@225 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-16 10:48:32 +00:00
Maarten ter Huurne 2f55ee30be Added missing #include.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@224 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-16 10:41:36 +00:00
hrydgard 48cfb8aa1f bug fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@223 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-15 20:51:32 +00:00
hrydgard a077e1e1de untested cpu_id for linux/macosx
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@222 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-08-15 20:48:40 +00:00