Commit Graph

3274 Commits

Author SHA1 Message Date
Jake.Stine e90fa1af8d Creating wxSavestates branch! Planned goals:
* Fix Unicode support for savestate filenames by using the wxWidgets internal gzip interfaces.
 * Turn savestates into 'proper' zip files that can be opened and extracted by users using standard zip tools (allows for easy memory dumping of EE or IOP ram, for examination or modification).
 * Add screenshot to savestates for later use by a GUI savestate browser (which will be implemented later)


git-svn-id: http://pcsx2.googlecode.com/svn/branches/wxSavestates@4032 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-17 14:04:23 +00:00
Jake.Stine 55084dfc1a Repository maintenance: removed several obsolete and glitchy instances of svn:mergeinfo (some generated by buggy versions of tortoisesvn over a year ago). This should fix the sloppy merge diff logs when I do trunk syncs. :)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4031 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-17 06:06:14 +00:00
Jake.Stine 2ee6b7abc6 Merge newHostVM branch. Feature overview:
* PCSX2 uses significantly less memory when starting.
 * Overall memory use reduced (mildly for some games, significantly for most).
 * EE and IOP main memory are now fixed at 0x20000000 and 0x24000000 -- useful when using external cheat apps.
 * Properly implemented the 'Shutdown' menu option -- Shutdown now unloads the entire PS2 virtual machine and reduced PCSX2's memory footprint to bare minimums.
 * Some more meaningful errors for when memory is a problem (out of memory, low virtual memory, etc).
 * Bugfix for pxsFmt when formatting long/large strings (over 1k)


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4029 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-17 05:49:11 +00:00
Jake.Stine b10a6d5271 newHostVM: MSVC compilation fix.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@4028 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-17 04:58:35 +00:00
Jake.Stine a9d7f24884 Internal Iso: Only search for dual layer once.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4027 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-17 04:57:45 +00:00
Jake.Stine 0692ab1bc5 newHostVM: Linux fixes.
* Removed some missing / obsolete files from codeblocks projects.
 * Fixed a segfault on exit
 * Implemented a platform-consistent pointer value string formatter (%p has no defined standard)

git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@4026 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-17 03:18:36 +00:00
Jake.Stine 63b254c8bd newHostVM:
* Applied the new RecompiledCodeReserve to the VIF recompilers (saves another 4-8mb of memory, depending on game).
 * Fixed a bug in pxsFmt / FastFormatUnicode (string formatting).
 * Final round of error handling cleanups.

(branch is basically ready for re-integration -- needs some testin for obvious/show stopping bugs, thanks!)

git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@4025 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-16 15:58:42 +00:00
Jake.Stine 127ca00492 newHostVM: Sync with trunk (r4010-4019)
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@4024 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-16 12:02:38 +00:00
Jake.Stine 2ca8278c65 newHostVM: Some Linux compilation fixes, warning removals.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@4023 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-16 05:32:31 +00:00
Jake.Stine 9a0a89aa13 newHostVM: Cleanups, improved error messages.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@4022 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-16 04:53:52 +00:00
Jake.Stine 239c9f83d8 newHostVM: (Restored booting) -
* Added some bounds checking to debug builds for VTLB mappings.
 * Fixed a VU mapping bug that caused boot crashing
 * Fixed some startup, shutdown, and reset resource management.

git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@4021 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-16 00:22:18 +00:00
Jake.Stine be1a590464 newHostVM: (WIP, may not run!) -- Applied host virtual memory mapping to the EE/IOP/VU main and on-chip memory banks. Added a new OO-based system allocator object for handling said virtual memory resources. Plus many code cleanups, and some added mess that needs to be cleaned up.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@4020 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-15 14:05:02 +00:00
refraction 2b0f47260a Fixed the bug i made on my killzone commit, all games appear to work now that were broken, sorry about that!
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4019 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-14 12:25:02 +00:00
refraction d87d13e155 -Fix for killzone.
-Did same code for VIF0 just to standardize things a little.

If this breaks anything let me know, and make sure it is this revision please.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4013 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-11 21:48:55 +00:00
refraction 0bf97480b7 Fix/Bodge for Clock Tower 3 black screens. GT4 now boots again. Explanation for bodge in the edit :) I am still alive here, just :P
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4012 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-10 22:38:09 +00:00
Jake.Stine bd31411a4c Bugfix for CDVDiso memory corruption, which caused random problems when loading specific types of iso images (most commonly MDF types, but could have been a problem on others as well).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4010 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-09 13:36:12 +00:00
Jake.Stine f1024dad91 newHostVM: Fix for savestates!
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@4004 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-07 00:04:53 +00:00
Jake.Stine d6de2e3942 newHostVM: Made use of the new SpatialArrayReserve for the EE/R5900 recompiler. Reduces the recompiler's lookup tables from ~40mb to a mere 1-3mb.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@4003 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-06 16:25:40 +00:00
arcum42 7f51e8ee66 newHostVM: Linux compilation fixes.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3998 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-06 05:21:06 +00:00
Jake.Stine 3bdf62fa0e newHostVM: Sync with trunk (r3972-r3993)
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3995 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-05 01:39:25 +00:00
Jake.Stine a7726871dc newHostVM: More exception / error handling mess.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3994 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-05 01:33:01 +00:00
Jake.Stine 116f9ec193 Plugins (MSW only): Removed the Image Randomization flag from most plugins' projects. They now default to the value specified by the PCSX2 properties sheet, which enables image randomization by default.
Technical details: Image randomization is a feature on Vista/7 that loads DLLs at random(-ish) addresses, improving security and reducing the amount of DLL relocation work required.  This option has no effect on WinXP.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3993 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-04 12:12:11 +00:00
Jake.Stine dc7f00d05e newHostVM:
* Preliminary implementation for the SpatialArrayReserve class, which will be used for recompiler lookup tables (large portions of these tables are never used by many games).  Will put it to use and test it soon.
 * Finished implementation of TryResize method for reservations, which will be used by PCSX2 if the operating system runs low on ram.

git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3992 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-03 17:37:29 +00:00
Jake.Stine 5579350d22 newHostVM:
* Moved profiler management to the RecompiledCodeReserve class.
 * Improved error handling some more.
 * Numerous minor cleanups.

git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3991 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-11-03 14:18:30 +00:00
ramapcsx2 08623978b1 Hackfix the Mana Khemia 1 "off campus" problem.
No one is sure yet how it actually works on the real console though.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3982 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-29 16:11:02 +00:00
Jake.Stine 4eab3c5899 disc image support bugfix for games that have non-conforming SYSTEM.CNF contents (invalid or missing ISO filesystem version numbers, typically specified as ';1' after the filename).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3981 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-29 12:51:04 +00:00
Jake.Stine bd8127f75e newHostVM: More error/exception handling WIP stuff.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3980 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-29 02:49:01 +00:00
Jake.Stine b568256653 newHostVM: improving error handling and memory management (WIP)
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3979 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-28 13:14:18 +00:00
arcum42 a61e678a12 newHostVM: Fix linux/gcc crash on startup.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3978 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-28 10:49:45 +00:00
Jake.Stine 283224290d newHostVM: Fix linux/gcc compilation errors. PCSX2 doesn't work yet tho -- crashes on startup and I don't have a proper debug environment setup to trace and troubleshoot it.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3977 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-27 23:58:10 +00:00
Jake.Stine 4dec10976d newHostVM: Working on linux side now ... (WIP)
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3976 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-27 23:22:19 +00:00
Jake.Stine 4bee22a4cd newHostVM branch: Implemented VM reservation feature for all recompilers.
* SuperVU note: SuperVU recompiler now uses two separate 8mb caches for VU0 and VU1 (needed in order to simplify/saneify the reserve/alloc stages of pcsx2 app startup).
 * Added MemsetFast.inl, which houses SSE intrinsic versions of memset and memzero, for use on aligned data targets.

git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3975 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-27 19:18:46 +00:00
Jake.Stine 5e2724bdc3 * (Issue 734) Configuring plugins from the First Time Wizard should work better now (plugins options changes wouldn't stick)
* Security fix for Windows: Forced plugin filenames to be absolute paths, which resolves issues with windows' default path search order for DLLs, and hopefully avoids some errors for users who have installed Microsoft's Improved DLL Security patch.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3974 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-27 15:16:14 +00:00
ramapcsx2 ab08641dfd 10001 updates to the GameIndex file. Thanks to konajona, pgert and Lana :)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3972 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-26 12:28:59 +00:00
Jake.Stine bed33749b5 newHostVM branch: (now boots games!)
* EE and IOP recompilers are using the new RecompiledCodeReserve class.
 * PS2 main memory should typically be located at 0x20000000 (code still need some cleanups)

VU0/VU1 recompilers will be implemented soon.

git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3959 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-22 19:47:02 +00:00
Jake.Stine 01541f2c92 newHostVM branch: work-in-progress stuff...
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3958 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-22 16:23:52 +00:00
Jake.Stine 495e872e98 newHostVM branch created; implementation purposes:
* a mapped memory system for PS2 virtual machine areas (32mb main memory, 2mb IOP memory, etc) that will be constant across all builds of PCSX2 (should fix problems with 3rdparty cheat apps)
 * virtual reservation system for recompilers; reduces the emulator's overall memory usage while reducing the need for recompiler resets at the same time.
 * recompiler resets (if/when needed) should be much faster.

git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3956 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-22 15:05:56 +00:00
Jake.Stine bc02c83360 Merge wxIsoFile branch. Feature Summary:
* Better support for unicode/multilingual editions of Windows, and less hassle with UAC (user access control).
 * Allows use of iso images that are in use by other programs (such as daemon tools, etc)
 * Allows running multiple instances of PCSX2 concurrently on the same iso image (useful for branch testing/debugging).
 * Exception-safe and slightly better error handling.
 * Better drag&drop behavior (doesn't hang the explorer window for as long as it used to)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3955 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-22 14:22:11 +00:00
Jake.Stine aba50c4bf7 wxIsoFile: fixed support for dumpfiles.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/wxIsoFile@3954 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-21 15:06:57 +00:00
gregory.hainaut@gmail.com b878c5db6b cmake: * make FindGlew more robust & consistent
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3946 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-19 13:33:57 +00:00
Jake.Stine 5ba7b0650d wxIsoFile: final annoying compilation error fixed. Just needs a little linux-side testing now.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/wxIsoFile@3945 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-19 09:51:57 +00:00
Jake.Stine e30892cf34 wxIsoFile: ... and some more fixes.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/wxIsoFile@3944 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-19 09:25:44 +00:00
Jake.Stine ca9e250837 wxIsoFile: And a couple more compiler fixes.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/wxIsoFile@3942 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-18 16:09:00 +00:00
Jake.Stine d5bc947e8d wxIsoFile branch: fix missing includes and gcc compilation stuffs.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/wxIsoFile@3941 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-18 15:46:05 +00:00
ramapcsx2 2b068be3ab SPU-X:
- Changed defaults and ranges for the soundtouch timestretch parameters. This reduces added latency from timestretching.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3939 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-18 12:50:13 +00:00
ramapcsx2 921e865c8e SPU2-X:
- Prevent the mixer from clamping to the maximum possible range as some audio output modules hate that and start clipping. Notably portaudio is unaffected in tests but all the MS APIs not ;)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3938 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-18 12:27:31 +00:00
Jake.Stine 2b4d7cc384 wxIsoFile branch: (needs linux testing)
* Convert IsoFileFormats.cpp into a class.
 * Use wxFile and wxFileInputStream instead of windows/posix specific file functions.
 * Added new ScopedAlloc classes, which are very simple dependency-free templates for exception-safe allocations.
 * FastFormatString: Improved performance ad fixed an obscure bug.
 * Drag&Drop (UI) - Improved the friendliness and responsiveness, so that PCSX2 doesn't end up tying up an explorer window while it prompts the user or issues error messages.

git-svn-id: http://pcsx2.googlecode.com/svn/branches/wxIsoFile@3934 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-18 01:40:49 +00:00
Jake.Stine 4ee1781ce2 wxIsoFile (new branch): for introducing a heavily refactored built-in isoFile system -- rewritten to utilize wxWidgets input streams, improve exception safety, and fix a few minor bugs. Placing it into a branch awaiting Linux compilation testing; hopefully to be merged into trunk in a couple days.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/wxIsoFile@3933 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-18 01:31:45 +00:00
gregory.hainaut@gmail.com 8c58c8ee3c zzogl-pg:
* rework isdirty intrinsic. I miss swizzle stuff in first try :p


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3918 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-13 17:00:14 +00:00
arcum42 33214df091 spu2-x: Misc Alsa stuff. Added a few missing files into the pcsx2 codeblocks project.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3917 96395faa-99c1-11dd-bbfe-3dabce05a288
2010-10-13 09:15:54 +00:00