Commit Graph
5276 Commits
Author SHA1 Message Date
Henrik Rydgård 07c818251c Some formatting cleanup.
Yeah, I said we shouldn't do big overhauls..
2013-10-18 14:39:04 +02:00
Unknown W. Brackets 9a707f6c00 Fix typo, ARM build. 2013-10-17 15:28:50 -07:00
Unknown W. Brackets 2e8ef3027f Write the retaddr to rd, not always ra, in jalr.
Thanks go entirely to @Kingcom for pointing this out.

Don't know of any games not using RA as the rd.
2013-10-17 07:39:33 -07:00
Henrik Rydgård 99fec75f06 Delete OMAConvert, entirely unused 2013-10-17 12:33:57 +02:00
Henrik Rydgård ac2334386a Move BufferQueue out of the at3 plugin header 2013-10-17 12:31:22 +02:00
Sacha fafe4fc4f2 Fix multi-threading crashes on shutdown with Linux and Blackberry. Fixes issue #3133 -- thanks @unknown 2013-10-17 17:39:04 +10:00
shenweip e7601b4399 Change some log level. 2013-10-17 11:57:55 +08:00
Henrik Rydgard aa3cf34fc1 Jit: Fix valgrind warnings.
The first time PrefixStart was entered with startDefaultPrefix = true, it would
call EatPrefix, which checks the so far entirely uninitialized prefixXFlags.
2013-10-16 22:33:48 +02:00
Henrik Rydgård 9caaa86a87 Merge pull request #4206 from bollu/AudioArtefactFix
optional atomic audio locks
2013-10-16 12:11:50 -07:00
Siddharth 06c13926ee made atomic lock optional
fixed an incorrect merge to nativeApp.cpp

made atomic locks init correctly

reintroduced atomic locks in audio as an optional setting

converted global pointers to global objects on stack

moved all mixing code into PSPMixer

internaized all code into __sceAudio.cpp

cleaned up rebase

cleaned up rebase
2013-10-16 23:42:47 +05:30
Henrik Rydgard 1ec0a977e4 Fix too-slow fade in/out of save dialogs and others in 30hz games. 2013-10-16 18:54:40 +02:00
Unknown W. Brackets f5e0d80ead Pass arguments to root threads same as regular.
Before it would have issues or crash if the args were > 256 bytes.
Fixes Ys 1 & 2 Chronicles.
2013-10-16 01:31:58 -07:00
Henrik Rydgard e88a049e79 Windows: Center window on first start 2013-10-15 13:10:25 +02:00
The Dax fec7dab628 Have CWCheats use it, too. It's useful pretty much anywhere one needs the real path instead of a virtual memory stick path. 2013-10-15 03:41:11 -04:00
The Dax 845a25e897 Whoops. Forgot to push this. 2013-10-15 03:41:11 -04:00
The Dax b549a4e6e5 Assume g_Config.memCardDirectory will have a trailing slash. Make InitSysDirectories for Win32 only. 2013-10-15 03:41:10 -04:00
The Dax 6efd5b33f7 We don't really need DIRECTORY_FLASH0 or DIRECTORY_MEMSTICK. 2013-10-15 03:41:10 -04:00
The Dax c7bdeb3084 Eliminate GetSysDirectories and instead provide a new function: GetSysDirectory.
On Win32, call InitSysDirectories before the emuthread starts just to be safe.
2013-10-15 03:41:10 -04:00
Unknown W. Brackets e06889069c Don't use the destructor to free thread stacks.
If we do, kernelObjects.clear() will trash perfectly good memory on
loading a state.  I guess it also makes shutdown slower.

Fixes #4186.
2013-10-14 22:09:16 -07:00
The Dax 22e7b64df3 Don't write files before creating the directory in the first place. 2013-10-14 17:28:27 -04:00
The Dax e83ad5feba Remove unused local variable to fix a warning. 2013-10-14 11:44:52 -04:00
Sacha 7927b889b3 Buildfix Qt Linux. 2013-10-15 00:40:46 +10:00
Sacha 18b7503dd5 Fix rounding errors in armjit. 2013-10-14 19:24:13 +10:00
Unknown W. Brackets e4f71ce6e4 Avoid a few expected asserts in headless mode. 2013-10-14 00:51:08 -07:00
Henrik Rydgård 86b312472c Merge pull request #4171 from unknownbrackets/heap
Improve accuracy of sceHeap functions
2013-10-13 23:55:45 -07:00
Henrik Rydgård c13cb78d97 Merge pull request #4172 from thedax/win32Portability
Support UTF-8 paths in installed.txt.
2013-10-13 23:54:41 -07:00
The Dax 45d6ab9d7b Support more than just UTF-8. 2013-10-14 02:46:05 -04:00
The Dax 702c355cb6 Use a C++ version. 2013-10-14 02:24:02 -04:00
The Dax 81e7f1204c Support unicode paths in installed.txt.
The only caveat is it has to be saved as a UTF-8 file or it won't work properly.
Also, make some variables const since they're not changed.
2013-10-14 00:12:17 -04:00
Unknown W. Brackets 9388dd092f Cleanup errors in sceHeapFreeHeapMemory(). 2013-10-13 19:20:04 -07:00
Unknown W. Brackets df285cec64 Fix aligned heap allocation semantics. 2013-10-13 19:14:42 -07:00
Unknown W. Brackets 1b5193b13d Cleanup error codes in sceHeapAlloc*(). 2013-10-13 19:08:23 -07:00
Unknown W. Brackets ba5dd0084b Implement sceHeapIsAllocatedHeapMemory(). 2013-10-13 19:01:16 -07:00
Unknown W. Brackets 8ffcc26f89 Don't create blank entries in heapList. 2013-10-13 18:57:59 -07:00
Unknown W. Brackets fbffb6fa7f Return an error when deleting a bad heap. 2013-10-13 18:45:49 -07:00
Unknown W. Brackets 134138618d Allocate heaps similar to hardware.
Could matter for alignment, since a game might intentionally request 0x108
bytes to get an aligned address or something.
2013-10-13 18:36:34 -07:00
Unknown W. Brackets 9a9c4cbea6 Allocate from heaps downward by default. 2013-10-13 18:27:53 -07:00
Unknown W. Brackets a466b5ba32 Also allow restartless cheats after loading state.
At least, an older state.
2013-10-13 18:03:23 -07:00
Unknown W. Brackets bbaacab315 Don't crash if the cheat file is inaccessible. 2013-10-13 17:57:43 -07:00
Unknown W. Brackets f3e3f2e6cd Let's just always use PSP/Cheats/, it's simpler.
No reason people on iOS won't want this.
2013-10-13 17:57:42 -07:00
Unknown W. Brackets 8cd64a9f8a Allow cheats to start and stop in game. 2013-10-13 17:57:42 -07:00
Unknown W. Brackets bbde56398f Create the cheats directory always.
Seems like things break otherwise?  Fixes #4169.
2013-10-13 17:57:35 -07:00
The Dax 54de8739f1 Fix critical bug with GetSysDirectories. 2013-10-13 19:30:07 -04:00
Henrik Rydgård 06b0ac9ccc Merge pull request #4070 from thedax/win32Portability
Win32: Make PPSSPP have a portable mode.
2013-10-13 16:11:47 -07:00
The Dax 823b6ee465 Clean up GetSysDirectories. File::GetExeDirectory is much cleaner. 2013-10-13 19:01:53 -04:00
The Dax 85f6d6bf0e If the custom directory or the current directory is read-only, fall back on the Documents directory.
After that point(if Documents is somehow read-only), we'd be screwed anyway, so there's no need to bother checking it..
2013-10-13 18:22:04 -04:00
Unknown W. Brackets 401400bb52 Fix uninitialized variable, oops. 2013-10-13 15:14:30 -07:00
The Dax d8a0adf50c If installed.txt has a path in it, use that instead of the detected Documents directory. 2013-10-13 17:43:01 -04:00
The Dax b3018eb37f Allow Win32 to store its saves, config files, etc., elsewhere.
If installed.txt exists(or the executable directory is read-only), use the user's My Documents(XP) or Documents(7/8/8.1) directory to search for everything. If it doesn't, or we can't determine the directory for some reason, use the old behaviour.
2013-10-13 16:45:59 -04:00
Unknown W. Brackets 5687fa481b Don't SyncThread while not running, wake more proactively.
Maybe the wait_for() is no longer needed there...
2013-10-13 12:13:11 -07:00