Commit Graph

4468 Commits

Author SHA1 Message Date
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
Unknown W. Brackets
d43c56ea29 Small warning fix. 2013-10-13 12:12:53 -07:00
The Dax
7000b63082 When using a debug build, always show the debug log/enable logging on start. 2013-10-13 14:31:48 -04:00
The Dax
9c868351de Make Enable Debug Logging checkbox instant as it was intended to be. 2013-10-13 14:18:50 -04:00
The Dax
3d8b68e88e Make Fullscreen checkbox instant. 2013-10-13 13:34:55 -04:00
Unknown W. Brackets
479a9801d4 Shutdown issues: the legend continues.
If the gpu was slow (softgpu for example), it might still be accessing
memory.  Need to let it wake, and ignoring coreState too.
2013-10-13 09:35:02 -07:00
Unknown W. Brackets
8c022d56be Support non-pfat0 savestates, slightly hacky... 2013-10-13 09:34:20 -07:00
Henrik Rydgard
40ee00bf46 Add pfat0: as another synonym for ms0:
Might fix Fired Up save issues as reported in #1290.
2013-10-13 13:52:48 +02:00
Henrik Rydgard
3af5a759b4 Log some save state errors 2013-10-13 13:46:44 +02:00
Henrik Rydgård
cdba174ab7 Merge pull request #4148 from unknownbrackets/config-files
Allow config files and fonts to be on the memstick
2013-10-13 04:01:01 -07:00
Henrik Rydgård
2546f236ee Merge pull request #4151 from shenweip/patch-4
Add NetconfDialog and partly implemented for it.
2013-10-13 03:59:34 -07:00
Henrik Rydgård
29dd284372 Merge pull request #4156 from Kingcom/rotrfix
Fix rotrv (dis)assembly
2013-10-13 01:42:54 -07:00
Kingcom
480c766776 Fix rotrv (dis)assembly 2013-10-13 10:36:43 +02:00
Unknown W. Brackets
b54e557d19 Actually, let's not wait at all in Core_Stop().
It just triggers the action on the other thread.
2013-10-12 23:20:27 -07:00
shenweip
8a6d36dcb0 Fix 2013-10-13 11:56:47 +08:00
shenweip
326d751945 Partly implemented for NetconfDialog. 2013-10-13 10:43:49 +08:00
shenweip
ce50086c81 Add new files to cmake and Android.mk 2013-10-13 10:32:56 +08:00
shenweip
1ff4b9c8ce Add PSPNetconfDialog. 2013-10-13 10:26:51 +08:00
Unknown W. Brackets
49983fa1e4 Also respect Windows absolute paths. 2013-10-12 16:41:53 -07:00
Unknown W. Brackets
87781736c4 Use ms0:/PSP/flash0/font/ as an override for fonts.
This won't work for games that use flash0:/ directly, but if they just use
the default fonts (which is common), it will work fine.
2013-10-12 16:13:11 -07:00
Unknown W. Brackets
af2ccbb9da Rename flashDirectory to flash0Directory. 2013-10-12 16:08:39 -07:00
Unknown W. Brackets
c0e3f1523e Respect ini file path on reset settings.
This is the easiest way to force settings to the memstick, but it means
erasing the existing ones.
2013-10-12 16:05:00 -07:00
Unknown W. Brackets
79143b56d2 Allow config files to be placed under the memstick.
This way, they can be configured more easily on Android, etc.
2013-10-12 16:02:03 -07:00
Unknown W. Brackets
a79b168acc Make sure the cpu thread ends on Core_Stop().
Sometimes it didn't, which was just a bit confusing.
2013-10-12 10:55:31 -07:00
Unknown W. Brackets
585f86c805 Make sure the io thread doesn't revive itself.
Stupid zombies.  Stay dead.
2013-10-12 10:54:57 -07:00
Unknown W. Brackets
bfa4a87e2c Don't run the ingame loop while in the pause menu. 2013-10-12 10:16:28 -07:00
Unknown W. Brackets
d6f1320dfd Allow tab to be used in the assembler.
This way we can assemble our disassembly.  Makes it easier.
2013-10-12 10:03:28 -07:00
Unknown W. Brackets
ba69eba53c Just log and continue when EI_CLASS is wrong.
Users with emulator-only patches or etc. shouldn't necessarily have to
not be able to play the game anymore, as long as the problem is surfaced.
2013-10-12 10:03:27 -07:00
Unknown W. Brackets
90c49befd4 Fix a possible race on shutdown. 2013-10-12 02:08:00 -07:00
Unknown W. Brackets
b0072cd38b Refactor a bit, curly style. 2013-10-12 01:44:12 -07:00
Unknown W. Brackets
21f522746f Cleanup shutdown on Windows to avoid races.
Was still getting crashes sometimes.
2013-10-12 01:40:33 -07:00
Sacha
d49b4fad9a Miscellaneous changes for Blackberry. 2013-10-12 17:19:02 +10:00
Henrik Rydgard
e0b19decca Add generic "PostShader" functionality, replacing FXAA (it's one of them).
Replaces #4018, sorry DanyalZia :)
2013-10-12 02:05:55 +02:00
szdarkhack
b98a073b26 Merge remote-tracking branch 'ppssppUpstream/master' into focus_pause
Conflicts:
	Windows/resource.h
2013-10-11 17:47:43 +03:00
szdarkhack
1116b59910 Implemented a "Pause When Not Focused" menu option (default false). Pause toggle overrides this. 2013-10-11 14:53:25 +03:00
Henrik Rydgård
5721836d44 Add basic haptic feedback to on-screen touch buttons. 2013-10-10 16:44:57 +02:00
Henrik Rydgård
db568e4553 Minor CwCheat bugfix contributed by dlanor in issue #4103 2013-10-10 15:58:09 +02:00
Henrik Rydgård
996e468562 Merge pull request #4079 from unknownbrackets/thread-funcs
Fix crash deleting a never started thread w/ clearstack
2013-10-09 00:47:11 -07:00
Unknown W. Brackets
132577a050 Ignore leading spaces on absolute paths.
Weird but true.  Not sure if it will help any game.
2013-10-08 23:55:51 -07:00
Unknown W. Brackets
73d5c42596 Don't allow a new async cmd while one is busy.
Fixes Valhalla Knights 1.  Also some logging tweaks.
2013-10-08 23:49:24 -07:00
Unknown W. Brackets
a194006aad Fix crash deleting a never started thread.
Fixes #4069.
2013-10-08 22:39:49 -07:00
Henrik Rydgard
4c2c015774 Expose the experimental "bPrescaleUV" as "Texture Coord Speedhack"
It's actually quite beneficial in some games, can substantially reduce
glUniform4fv calls.

Also throw in a second shot at glDrawRangeElements.
2013-10-08 22:59:40 +02:00
Henrik Rydgard
e08ac100ce Update native with workaround for #4078 and add some comments 2013-10-08 20:11:01 +02:00
Henrik Rydgård
ef2d188a68 Merge pull request #4035 from shenweip/patch-12
Implemented sceJpegDecodeMJpegYCbCr and sceJpegMJpegCsc.
2013-10-08 02:52:42 -07:00
Henrik Rydgård
0eee21dbc7 Merge pull request #4074 from tpunix/scePauth_support
add scePauth support
2013-10-08 01:32:27 -07:00
tpu
99913b1b08 add scePauth support 2013-10-08 15:54:28 +08:00
Henrik Rydgard
fc8aa7bd8f Crashfix dumping display lists that start at the start of VRAM (seems to hit this in GTA).
Add a couple of comments.
2013-10-07 22:58:46 +02:00
Henrik Rydgard
8f620c30ab x86 jit: Implement vs2i (similar to vh2f but simpler) 2013-10-07 21:59:33 +02:00
Henrik Rydgard
367a1e21b2 Revert "Merge pull request #4021 from bollu/master"
This reverts commit c84a9daa40, reversing
changes made to da5b52ce1f.
2013-10-07 20:26:10 +02:00
Henrik Rydgard
f938b95925 Revert "Merge pull request #4068 from bollu/AudioArtefactFix"
This reverts commit e4c6ba9b01, reversing
changes made to 061efd35db.
2013-10-07 20:25:35 +02:00
Henrik Rydgård
e4c6ba9b01 Merge pull request #4068 from bollu/AudioArtefactFix
Audio artefact fix
2013-10-07 10:05:59 -07:00
Siddharth
f5ab5b77f3 silly mistakes 2013-10-07 22:07:10 +05:30
Siddharth
e6ae3ef9b1 forgot to add this 2013-10-07 22:06:16 +05:30
Siddharth
1708febac1 sets audio samples to 0 if audio was not mixed. 2013-10-07 22:03:14 +05:30
Unknown W. Brackets
0c8cc25eb4 Always register the cheat event, for savestates.
This way, if you savestate with cheats on or off, it'll load fine.
2013-10-07 07:46:18 -07:00
Unknown W. Brackets
ff2012d37b Minor warning. 2013-10-06 22:10:38 -07:00
Unknown W. Brackets
d3e566935a Avoid load state crash if kernel objects fail. 2013-10-06 22:09:50 -07:00
Henrik Rydgård
ed5ae855e9 Merge pull request #4057 from shenweip/patch-13
Use sfo file to set the date in list savedata mode.
2013-10-06 12:50:53 -07:00
Unknown W. Brackets
5be30fb857 Add support for the clear stack thread attr. 2013-10-06 12:16:58 -07:00