3987 Commits

Author SHA1 Message Date
Matthew Parlane
14ea442382 srawx fixed thanks to boo toe. 2012-03-20 19:51:42 +13:00
Shawn Hoffman
c0992cc73e Build fix:
Don't use isascii() - just do it ourselves
Bump required wxw version (for shared libs)
There still seems to be linking issues on some linux distros, I can't reproduce it though...
2012-03-19 23:16:01 -07:00
Shawn Hoffman
dd5df17688 forgot to save my buffer :( 2012-03-19 12:07:47 -07:00
Shawn Hoffman
cf52029b51 Check if the game's ID is valid before accessing it to set the ntsc u/j register. Prevents discs without a real ID from crashing dolphin. 2012-03-19 11:12:40 -07:00
Shawn Hoffman
ff6023df27 Change wxString(<string>, wxConvUTF8) method of creating unicode from filenames to wxSafeConvertMB2WX()
(Just applied to FrameTools.cpp for now)
Allows one to properly restart Pokémon by hitting play :P

Ignore non-ASCII strings passed to DisplayMessage(). These strings would end up going to renderer display and statusbar/titlebar, which can't handle them properly.
2012-03-19 10:37:15 -07:00
Matthew Parlane
418f46ea72 Fixed memory leak. And added braces to match the rest of the switch statement in FileIO. 2012-03-19 18:08:16 +13:00
marcosvitali
20eca1bf7e Ive fixed definitely Pokemon XD in dual core mode. This game is doing something not allowed. It attach to CPU the same fifo attached to the GPU in multibuffer mode. I added a check to prevent overwrite the GPU FIFO with the CPU FIFO. If the game do that on breakpoint the solution can fail.
Fixed ReadWriteDistance calc when CPRead > CPWrite.
Added Token and Finish cause to GP Jit checking.
2012-03-18 22:54:58 -03:00
Shawn Hoffman
c5d746f3d8 remove scons files from VS projects 2012-03-18 06:41:12 -07:00
Matthew Parlane
8479d5bdf7 Some code clean up. I am terrible at coding styles... 2012-03-18 21:50:07 +13:00
Matthew Parlane
6fe495e1aa Fixed Pokepark 2! Maybe... :D Don't trust save states, although I think they are correct. File fd's were too large. Let me know if file related loading stops working in some games. fds are many to 1, not 1 to 1. ES has two instances available at a time. Sadly a clean up requires changing IWII_IPC_HLE_Device Constructor, as a deviceID doesn't make much sense per device. I won't do this until we have less branches :| 2012-03-18 21:00:23 +13:00
skidau
05692b1e7e Sped up to the Dolphin debugger by not checking for breakpoints when stepping.
Fixed the JIT cache, invalidating one instruction length at a time.
Fixed a bug where the JIT cache did not get invalidated when stepping.
Disabled fused instructions in the debugger.
2012-03-16 20:08:05 +11:00
skidau
8ed6ea3b07 Sped up the Dolphin debugger in JIT mode by splitting a block only while stepping or when it contains a breakpoint. The block is invalidated when a breakpoint is set or cleared.
Fixed a bug in the JitCache where the JIT icache was not being invalidated when a block containing the instruction was destroyed.
2012-03-15 21:48:19 +11:00
skidau
0ed8af2287 Forced reload of the native Gecko Code handler if the game overwrites it.
Fixes issue 5225.
2012-03-13 23:41:40 +11:00
skidau
dc79d68e72 Added the corresponding change from r352ab2ba4394 into JITIL.
Tidied some code.
2012-03-13 22:35:11 +11:00
Matthew Parlane
b37c468039 Fixes issue 5269
Sorry guys but I needed to disable stfs so that Pokepark 2 would not freeze(?). Feel free to put some effort in to finding out why, I do not understand Jit sorry.
2012-03-13 23:42:30 +13:00
marcosvitali
352ab2ba43 Improved the CheckException for the GatherPipe writes in JIT, now only the External Exceptions are processed.
We Didn't Check 0x0008000 in PowerPC::ppcState.msr this was killing the performance, this also fix a hang when this check is performed.
SMG for example.
Deleted the HiWatermark condition from GPFifo.
Please test games affected in this  Revision 9e649ce79850, and games affected in this Revision b0f75f17ae19.
I do not want to excite the game players of 'The Las Story', but Could test again the random hangs with this rev?

Thanks
2012-03-13 01:44:10 -03:00
skidau
bf76b802a7 Fixed the in-built Dolphin profiler. 2012-03-10 16:24:13 +11:00
Matthew Parlane
880992b10f Fixed DoState and removed unneeded class variable. 2012-03-07 00:22:55 +13:00
Matthew Parlane
b49b4bb614 Fixed DoState and removed unneeded class variable. 2012-03-07 00:21:31 +13:00
Matthew Parlane
53d2d9718f Fixes issue 2917 and possibly others like 5232 2012-03-06 23:32:13 +13:00
Matthew Parlane
e8e2c241d7 delroth pointed out that it should be "starts with" not "contains". Unlikely this has ever affected anyone.... 2012-03-06 23:31:59 +13:00
Matthew Parlane
614c43029f fixed files so they can have more than one handle opened at a time. 2012-03-06 23:31:48 +13:00
Matthew Parlane
095b9de85e Fixes issue 2917 and possibly others like 5232 2012-03-06 23:10:04 +13:00
marcosvitali
b0f75f17ae This release still fixed the hangs produced by fifo overflow without sacrifice performance.
For example you can test Tutorial moves at the beginning of The last history now is fluid 30/60.
Shuffle2: I've delete the hacky line, I think is not necessary anymore. Additional some clean in CommandProcessor.
Please test The Last Story and others games affected in the previous commits and give me a feedback.
2012-03-05 02:40:10 -03:00
skidau
a53916ff5d Changed the detection of FIFO write addresses to writes at the gather pipe boundary. This speeds up games which frequently write to the gather pipe like the pre-rendered movies in The Last Story.
Added some code to unlink invalidated blocks so that the recompiled block can be linked (speed-up).
2012-03-04 23:42:33 +11:00
skidau
5de8366db2 Made the invalidation of the FIFO write JIT blocks more selective (efficient). Fixes the slowdown in the House of the Dead: Overkill cutscenes. 2012-03-04 08:10:46 +11:00
Henrik Rydgard
f5d4fe0bfe Fix some minor bugs pointed out by PVS Studio (thanks!) 2012-03-03 20:07:20 +01:00
skidau
874e17e504 Added the corresponding change from r9e649ce79850 to JITIL. 2012-03-03 15:41:55 +11:00
skidau
9e649ce798 Added additional checks to ensure that only a FIFO breakpoint exception is handled. This fixes the hangs in games like de Blob, Xenoblade and Super Mario Galaxy introduced by r9e398fd41802. 2012-03-03 14:26:39 +11:00
skidau
9e398fd418 Added an external exception check when the CPU writes to the FIFO. This allows the CPU time to service FIFO overflows. Fixes random hangs caused by FIFO overflows and desyncs like in "The Last Story" and "Battalion Wars 2". Thanks to marcosvitali for the research.
Fixes issue 5209.
Fixes issue 5150.
Fixes issue 5055.
Fixes issue 4889.
Fixes issue 4061.
Fixes issue 4010.
Fixes issue 3902.
2012-03-02 18:53:41 +11:00
Matthew Parlane
fb062c4a0b Free ECC data. 2012-03-01 21:23:52 +13:00
Shawn Hoffman
6eb2cb2666 Merge branch 'master' into wii-network 2012-02-27 22:36:41 -08:00
Matthew Parlane
6ccb30ac5f Forced timeout. 2012-02-28 19:17:05 +13:00
Matthew Parlane
1d16785590 Implement ES_Sign and GetDeviceCert and others 2012-02-28 19:17:04 +13:00
Matthew Parlane
57e3fbed91 Debug vprintf! 2012-02-28 19:17:02 +13:00
Matthew Parlane
fea02b8dca Add SSL debug, everyone needs it! 2012-02-28 19:17:01 +13:00
Shawn Hoffman
e5b7e81f44 openssl: enable ec/dsa and rearrange files in Externals a bit. 2012-02-27 00:51:50 -08:00
Shawn Hoffman
9866cae4ff net: create directory for config file if it doesn't exist. 2012-02-23 12:48:54 -08:00
Shawn Hoffman
f73c82c232 net: add inet_ntop 2012-02-23 12:38:11 -08:00
parlane
1c2004fe5d Wrong japan game value. 2012-02-20 20:26:48 +00:00
parlane
c42a6f156e Added Korean handling of settings file.
Fixes issue 5215.
2012-02-19 23:02:01 +00:00
Pierre Bourdon
b9aeba7f7c Make SO_POLL work on Linux (and probably better on Windows :P) 2012-02-19 19:39:47 +01:00
Pierre Bourdon
31788791e8 Logging messages change errno, save the return value from recv before logging 2012-02-19 19:39:46 +01:00
Pierre Bourdon
81d7eefd6a Correctly map Wii/native socket level and optname for GETSOCKOPT 2012-02-19 19:37:56 +01:00
Pierre Bourdon
87456054d6 Move the sockopt mapping to the toplevel (needed for GETSOCKOPT too) 2012-02-19 19:37:56 +01:00
Pierre Bourdon
2c9109936c Linux uses EAGAIN instead of EWOULDBLOCK (only used on Windows) 2012-02-19 19:37:56 +01:00
Matthew Parlane
ef4ac51170 Added some error comments. 2012-02-19 14:29:57 +13:00
Matthew Parlane
40c9f481df Fixed some warnings, removed unneeded linux ifdefs 2012-02-19 13:06:05 +13:00
Pierre Bourdon
959d116530 Handle SSL_ERROR_WANT_WRITE too in the NET_SSL_READ ioctl handler (+ cleanup) 2012-02-18 23:25:42 +01:00
Pierre Bourdon
5fe49e4185 Implement SO_SETSOCKOPT for POSIX systems 2012-02-18 19:01:22 +01:00