Commit Graph

2504 Commits

Author SHA1 Message Date
Jake.Stine 069d1d59b8 * Should fix iso hot-swapping.
* Fixed a startup crash by moving the game database initialization to cpuReset().  This is a temporary measure until we sort out a better system for it.  This is needed because initializing complex classes in C++ as globals is VERY dangerous and unpredictable.  The databse was being loaded before any wxWidgets/UI objects were being created themselves, so any errors, exceptions, or console logs generated by the database were likely to cause unpredictable behavior.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2989 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-12 18:27:01 +00:00
Jake.Stine 30cf31b7bc SPU2-X: added some safety checks to the savestate code to catch (and ignore) situations where PCSX2 tries to save or load states while the plugins are shut down.
(and fixed compile errors from prev rev -- woops)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2988 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-12 14:18:40 +00:00
Jake.Stine 23a7f7ad21 * Likely fix for linux's crash-on-exit.
* Fix for random crash when hot-swapping plugins from the config panel.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2987 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-12 13:58:10 +00:00
arcum42 052506785b Enable cpu detection in spu2-x. Link to the systems copy of zlib, rather then building a separate copy for pcsx2.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2986 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-12 11:25:30 +00:00
arcum42 5d7facfa15 Get the database reader working in Linux.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2985 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-12 10:25:43 +00:00
arcum42 d24831f0d8 cmake: Start getting zzogl-pg and spu2-x support in the cmake build system. (I'm not enabling it yet, as I don't have time to get it working properly at the moment. That's probably a project for this weekend.)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2984 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-12 09:51:46 +00:00
cottonvibes 36973bfb92 - Get pcsx2 to display "game name (region) [serial] [crc]" in the console title-bar based on info found in game database.
- Some work on the database_loader class... now loads all game data into memory, and you can switch the game who's data is being read by calling setGame().
- Made the database_loader class a global "GameDB" so that it can be referred to throughout pcsx2 code...


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2983 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-12 09:33:45 +00:00
cottonvibes 8687a03c78 Added a credits section to game database.
Currently most of the info is based off the information found at http://sonyindex.com


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2982 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-11 21:47:58 +00:00
Jake.Stine 338cc07ce9 Some missing svn:eol-style=native props. It's like they vanish into thin air these things.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2981 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-11 11:44:33 +00:00
cottonvibes 02038a7dc1 oh i forgotten to commit this too ><
guess thats what happens when you don't commit stuff for a few weeks :/

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2980 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-11 09:23:22 +00:00
cottonvibes f26e4a6de6 oh i had forgotten to commit the cdvd.cpp change which used the code from my last update >.>
doesn't really matter though, it just looks up the game in the database and prints the name and serial to console.

i also fixed some bugs in the database file.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2979 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-11 08:21:59 +00:00
Jake.Stine a1870a845b Minor user interface cleanups and tweaks; most notable being some better "spam" protection on the console logger.
Details: Console logger now freezes updates for 100ms after every update.  This means it responds quickly to most logs, but limits series of log spams to 10 updates per second.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2978 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-11 07:17:31 +00:00
cottonvibes 2a05b6d449 Added a game database file which indexes most ps2 games by serial number.
Currently only has game serial/name/region info, but we can use this to load game-specific gamefixes and stuff in the future (and get rid of the pnaches system).

The file is DataBase.dbf, but can be opened and modified as a normal text-file.


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2977 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-11 06:14:11 +00:00
Jake.Stine 63f62bf737 User Interface:
* Console Log doesn't force itself into the focus anymore when it opens
 * Suspend/Resume menu item updates more reliably.
 * Changing plugin settings while suspended works nicer; less likely to crash/hang/etc (ironically, changing plugin settings while running was more reliable).

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2976 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-10 17:59:03 +00:00
refraction b552c1fdc2 Another minor modification for reverse FIFO
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2975 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-09 19:41:09 +00:00
sudonim1 a8b7c03845 Slightly pedantic change to OPH clearing and added a condition to an FQC assignment statement (there are far too many of these) which I think would interfere with reversed VIF1 operation.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2974 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-09 19:30:30 +00:00
refraction 96b1935c5f Nothing to see here
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2973 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-09 19:04:19 +00:00
refraction fe6d76d596 Fix for Tails of Destiny, added some other bits to check for wierd sizes (may never happen). Also put my IF statement back in, seems it does cause problems, commented why
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2972 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-09 19:02:06 +00:00
refraction f5ca7a7a55 Refixed Growlanser, also took out an IF which shouldn't have been in there.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2971 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-09 17:00:45 +00:00
refraction f288a166d3 Minor bug which i didnt think about in last commit
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2970 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-09 16:15:22 +00:00
refraction fbf2a59b32 Fix for Killzone from r2954, also cleaned up some other OPH's that had been missed
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2969 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-09 16:13:27 +00:00
arcum42 e5b02297e9 Copy liba52 into the main 3rdparty directory, and set the linux port of spu2-x in codeblocks up to use it from there.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2968 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-08 02:45:51 +00:00
arcum42 62c15102e4 Add NDEBUG to non-debug targets in Code::Blocks. Remove a few inlines that were causing problems with Linux. Remove a problematic hardcoded initialization of OutputModule I'd forgotten about in Spu2-x.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2967 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-08 01:51:29 +00:00
sudonim1 a3f9d74255 GSDx: very minor change to Z value scaling and a note for future changes based on testing real hardware.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2966 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-08 01:05:32 +00:00
ramapcsx2 575a56dc5c Changed the FFX speedhack to also set all EE timed events to happen near instantly.
This is now a multi purpose hack, which could potentially fix / break a lot of games.
It mostly affects FMV and PATH3 masking issues, but also stops games from booting, or makes them boot.
Use with caution :)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2965 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-07 22:10:36 +00:00
Jake.Stine d6eeb6a438 GSdx: Cleanups -- moved the new detection code to GSDevice11.cpp, where it (more or less) belongs.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2964 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-07 14:19:54 +00:00
ramapcsx2 e17d65cda6 Fix for release builds.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2963 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-07 10:01:26 +00:00
arcum42 8586e1b90d And let's update the project file too.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2962 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-07 09:57:27 +00:00
arcum42 aaded4ec6d Mess with Jake's code until it works in Linux.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2961 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-07 09:55:30 +00:00
sudonim1 07eed4ed47 D3D11 check with less D3D10 copy and paste and more working
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2960 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-07 09:49:39 +00:00
Jake.Stine 3005f0d0f8 GSdx: Fixed bug where DX10/11 was always detected under Vista/Win7, even when the video card only supported DX9. This fixes the F9 'renderswitch' hotkey.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2959 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-07 03:32:13 +00:00
Jake.Stine 12bdd9dc10 * Fixed death-by-recursion caused when a thread threw an exception.
* Fixed some minor bugs when processing idle events.
 * Plugin Load/Init/Shutdown/Unload are all called from the Main/UI thread again; this is important for plugins that issue popup warning/error messages.

DevNotes:
 * Added ScopedPtrMT, a multithread-safe version of ScopedPtr.
 * MTGS errors are still not handled as gracefully as they should be; namely the MTGS thread doesn't restart itself (it's on the TODO list).

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2958 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-07 03:20:58 +00:00
arcum42 0918cb42a3 Spu2-x: May as well delete the automake files for spu2-x, as they never worked... (The only way you can build spu2-x in Linux right now is codeblocks.)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2957 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-06 09:46:48 +00:00
arcum42 deb0f620d7 cmake: Make Devel the default for the moment. Commit another cmake patch...
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2956 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-06 09:33:23 +00:00
sudonim1 6314d413f9 Save state version bump. Since I changed VIF structures in the last commit, state compatibility was broken.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2955 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-06 00:49:08 +00:00
sudonim1 7c6f8877e8 Found wizardry / growlanser 2 & 3 hanging bug thanks to rama. OPH flag in GIF_STAT was misinterpreted (probably). It needs to be set on download, not upload.
Also clean-up/fix of GS download logic.  Might fix something if we're very lucky.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2954 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-06 00:43:13 +00:00
ramapcsx2 d474febcd6 Usual fix for FF12's crashing FMV. PCH on this time.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2953 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-05 22:11:59 +00:00
sudonim1 99fc9db0d0 DMA logging typo correction
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2952 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-05 22:07:22 +00:00
arcum42 152a36fa98 Replaced some defines that were accidentally removed at some point. Did some cmake work. Removed a forceinline that was giving gcc issues.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2951 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-05 20:06:05 +00:00
arcum42 e0e6060414 cmake: Clear the link flags to get rid of -rdynamic, which was causing freezing issues. (Again, thanks go to gregory on this one.)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2950 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-05 11:17:08 +00:00
arcum42 546ead475b Tweak zzogl-pg's C::B file a bit. Slap a quick patch on pcsx2 so it compiles. (Jake will probably want to fix that properly...)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2949 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-05 09:10:22 +00:00
sudonim1 298dbbd201 There are 1000 ms in one second.
I hate how VS defaults to modifying the active configuration only.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2948 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-04 22:38:19 +00:00
Jake.Stine 34b118738f Minor fixes to iso and cdvd source changing.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2947 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-04 22:12:25 +00:00
arcum42 dfb301c1ba Fix the cmake build of zlib, and force use of the internal copies of a few of the libraries for the moment. (If the cmake build starts working properly, I'll probably reverse that, but for the moment I want them as similar as possible.)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2946 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-04 20:28:34 +00:00
sudonim1 af13fec64a Nothing to see here.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2945 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-04 15:41:47 +00:00
sudonim1 b3a1397797 R3000A: rewrote module import table hooks for more extensive HLE in the near future.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2944 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-04 15:03:16 +00:00
arcum42 f77cc74708 Apply gregory's cmake patch to fix it to compile with recent revisions. (Note: still unsupported.)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2943 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-04 10:17:47 +00:00
arcum42 a87adb5f7b Zeropad: Apply the same patch as on onepad.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2942 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-04 09:45:57 +00:00
arcum42 2fed047080 Onepad: Fix PadKeyEvent so it doesn't hang new versions of pcsx2 when you hit a key.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2941 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-04 09:35:23 +00:00
sudonim1 9de7e8be6f Removed some playstation (1) BIOS code and started cleaning up high level implementations of iop module functions.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2940 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-05-04 01:15:36 +00:00