Commit Graph

4797 Commits

Author SHA1 Message Date
Peter Tissen
d8b4ec6680 added disasm debugger features to remove and add functions 2013-10-30 16:13:18 +01:00
Unknown W. Brackets
8d3ba58936 Cap the buffer size in sceAtracSetDataAndGetID().
Not sure if this should be done in the others or not...
2013-10-30 07:55:47 -07:00
Unknown W. Brackets
696aa0f974 Initialize atrac context values per PSP tests. 2013-10-30 07:48:50 -07:00
Unknown W. Brackets
14cff41a9a Fix state value in atrac context with no buffer.
Unlikely games use this, but they could.
2013-10-30 07:48:50 -07:00
Unknown W. Brackets
31112d1fa1 Report and return errors for bad atrac data.
The PSP returns errors for invalid data, so we should too.
2013-10-30 07:48:49 -07:00
Unknown W. Brackets
8dcc384dba Adjust some atrac reporting/logging. 2013-10-30 07:48:49 -07:00
Unknown W. Brackets
3e0c37bb62 Return an error when no data set yet.
Specifically this happens if you sceAtracGetAtracID, but don't set any
data yet.  Games might check for it to load in data.
2013-10-30 07:48:48 -07:00
Unknown W. Brackets
b7bd107956 When using a bad atrac ID, return proper errors.
Tested each func with invalid ids.
2013-10-30 07:48:48 -07:00
Unknown W. Brackets
ee57498b16 Add a setting to skip 0xDEADBEEF reg filling.
For debugging purposes.  Can't think of a better way.
2013-10-30 07:28:52 -07:00
Unknown W. Brackets
9ebaf7b68b Fill registers with 0xDEADBEEF after most syscalls.
Some, like sceMpegRingbufferPut(), we don't, since... it's complicated.
But most we do, like a real PSP does.
2013-10-30 00:47:04 -07:00
Unknown W. Brackets
04ec987448 Initialize thread regs with 0xDEADBEEF.
Also initialize the float regs to NaN.
2013-10-29 21:39:24 -07:00
Unknown W. Brackets
b71255e7b0 Optimize the case where volume is 0x8000.
When left and right volume are both 0x8000, which is the most common, we
can just do a memory copy which is faster.

Also, we can use pushPointers on big endian, probably still faster.
2013-10-29 08:24:55 -07:00
Henrik Rydgård
105fde7cb0 Merge branch 'stdthread-removal' of https://github.com/xsacha/ppsspp into xsacha-stdthread-removal 2013-10-29 11:39:03 +01:00
Henrik Rydgård
997c7dc374 Simplify some UI code, fix enabled-ness of Tilt analog settings 2013-10-29 10:22:09 +01:00
Sacha
e411968dc9 Remove duplicate thread library (StdThread) 2013-10-29 11:50:29 +10:00
Henrik Rydgård
64c7736f6a Merge pull request #4357 from shenweip/patch-16
Fix for savedata.
2013-10-28 17:09:48 -07:00
shenweip
80db1e00cc Update comment. 2013-10-29 02:14:39 +08:00
shenweip
1abcf8765d Quick fix for savedata. 2013-10-29 01:41:48 +08:00
Henrik Rydgård
0e54e24b24 Revert "Use swap code from native instead. Remove all other versions of it."
Broke movie playback.

This reverts commit 9fcb08a326.

Conflicts:
	native
2013-10-28 17:24:03 +01:00
Sacha
72fd653a31 sceAudio: ARM optimisation. 2013-10-29 00:16:37 +10:00
Henrik Rydgård
9c546b5d36 Merge pull request #4340 from bollu/analogStickTiltControl
full tilt based analog controls
2013-10-28 05:20:46 -07:00
Siddharth
5daaaa3aad made deadzones configurable 2013-10-28 16:43:42 +05:30
Henrik Rydgård
5683b1def3 Merge pull request #4334 from shenweip/patch-13
Add support for saveNameListData "<>".
2013-10-28 03:17:03 -07:00
Henrik Rydgård
562c90de5d Merge pull request #4342 from unknownbrackets/debugger
Ingore the uncached flag for memchecks, minor tweaks
2013-10-28 02:21:09 -07:00
Sacha
d616cc72a2 Add Blackberry statistics overlay option. 2013-10-28 14:19:27 +10:00
Unknown W. Brackets
da20bda729 Make memchecks ignore cached/uncached memory.
You usually want both.
2013-10-27 13:15:12 -07:00
Unknown W. Brackets
6b510c1c2f Allow step/run when two breakpoints trip.
If a memcheck and breakpoint were triggered on the same line, you wouldn't
be able to pass it, which is probably not what you'd expect.
2013-10-27 12:50:32 -07:00
Siddharth
ec0e0d7047 implemented full tilt based D-pad controls 2013-10-27 23:28:47 +05:30
Sacha
ecfe43c149 CityHash is not used anymore, so we won't compile it. 2013-10-28 03:26:00 +10:00
Sacha
9fcb08a326 Use swap code from native instead. Remove all other versions of it. 2013-10-28 03:07:32 +10:00
shenweip
f4b60f22b0 Add a check to avoid the same savedatas are set into SaveDataList. 2013-10-28 00:07:32 +08:00
shenweip
e699eb95b2 Add support for saveNameListData "<>". 2013-10-27 19:03:14 +08:00
Henrik Rydgård
ea05c934d8 Merge pull request #4320 from raven02/patch-3
Apply offset by 1px for our provided fonts
2013-10-27 00:58:17 -07:00
Henrik Rydgård
7b982c05fc Merge pull request #4331 from unknownbrackets/perf
Always compile xxhash with optimizations (debug only)
2013-10-27 00:56:22 -07:00
Henrik Rydgård
2132668af8 Merge pull request #4330 from unknownbrackets/volume-fix
Respect the bgm vol setting for at3, mp3, video
2013-10-27 00:55:25 -07:00
Unknown W. Brackets
18e109493f Always compile xxhash with optimizations.
Makes the debug build faster.
2013-10-26 19:51:50 -07:00
Unknown W. Brackets
ad8c4af936 Respect the bgm vol setting for at3, mp3, video. 2013-10-26 19:33:25 -07:00
raven02
92042e6b55 Apply offset by 1px to our provided PSP fonts 2013-10-27 10:02:13 +08:00
Unknown W. Brackets
81823d0d74 Fix a small type comparison warning. 2013-10-26 18:52:56 -07:00
Unknown W. Brackets
e3834d5833 Avoid some unlikely uninitialized values. 2013-10-26 18:31:14 -07:00
Unknown W. Brackets
95c68ae1e7 Assert some unlikely buffer overflows. 2013-10-26 18:30:55 -07:00
The Dax
105894fdc0 Remove useless ffmpeg Librarian dependencies from Core. 2013-10-26 16:10:58 -04:00
Henrik Rydgård
4cc6171cf9 Merge pull request #4316 from shenweip/patch-12
Fallback to default path if current directory doesn't exist.
2013-10-25 14:38:33 -07:00
shenweip
6a149200b6 Fallback to default path if current directory doesn't exist. 2013-10-26 00:44:19 +08:00
Sacha
4c52346063 Use Blackberry/UNIX time functions instead of fallbacks. 2013-10-25 21:52:50 +10:00
Henrik Rydgård
f73aec2570 Only disable buffered rendering by default on Galaxy Y instead of all
Armv6 devices.

Would have like to use gpu feature flags but GL isn't necessarily initialized
when we load the config. Will need to find a different solution.

Also a buildfix for headless non-windows.
2013-10-25 11:47:44 +02:00
Unknown W. Brackets
0b64c5e014 Savestate and shutdown sceMp3 properly.
It wasn't even being saved before.
2013-10-24 20:07:07 -07:00
Unknown W. Brackets
100c188df6 Fix savestate backwards compat.
Broken since 80702109f5.
2013-10-24 20:01:14 -07:00
Unknown W. Brackets
453628946f Free mp3 contexts more carefully. 2013-10-24 19:18:36 -07:00
Unknown W. Brackets
9eda1fc578 Remove code to use last mp3 handle on error.
It was copied from mpeg, where it was added for safety, and it shouldn't
be hit anyway.
2013-10-24 19:07:24 -07:00
Henrik Rydgård
badf33a872 Merge pull request #4286 from unknownbrackets/vtimers
Fix a bunch of issues in vtimers
2013-10-24 11:32:13 -07:00
Unknown W. Brackets
e8091dce44 Speed up FPURegCache::Start() on x86.
This cuts that func by 97% when running the automated tests, and it was 8%
of the total time.  Won't really affect games.
2013-10-24 08:27:42 -07:00
Unknown W. Brackets
4803dfdce1 Use CoreTiming::GetGlobalTimeUs() for vtimers. 2013-10-24 01:10:46 -07:00
Unknown W. Brackets
9c874c754e Use the us based time for rtc/etc.
Instead of incorrect conversions from ticks based on current mhz.
2013-10-24 01:10:09 -07:00
Unknown W. Brackets
e16d1a926b Keep more careful track of microsecond time. 2013-10-24 01:09:35 -07:00
Henrik Rydgard
f0e47838c6 Just break out some functions in SasAudio 2013-10-24 01:19:08 +02:00
Henrik Rydgard
a790c0a723 SasAudio: Add some comments about reverb, and add the reverb type list 2013-10-23 22:59:42 +02:00
adrian17
0a086915f5 We don't need to reset the counter as it's already done in Reset() 2013-10-23 19:05:08 +02:00
Henrik Rydgård
2b278d4c13 Buildfix 2013-10-23 17:00:10 +02:00
Henrik Rydgård
70738c1755 Automatically clear the JIT when exiting the Cheats dialog box.
Plus some simple cleanup.
2013-10-23 16:10:58 +02:00
Sacha
9e20e1a297 Fix time compares in save focus. Was breaking platforms (like QNX) where time is stored as a 64-bit unsigned value (nanoseconds). 2013-10-23 23:25:25 +10:00
Sacha
1af2f99959 Initialise everything in the SaveFileInfo to 0.
We were getting std::tm initialised to random values which non-existent files become the preferred save.
2013-10-23 23:19:50 +10:00
Sacha
07e8d475b3 Use name count instead of data count for grabbing focus. 2013-10-23 23:16:49 +10:00
Unknown W. Brackets
05f2f53358 The vtimer return value is treated as u32. 2013-10-22 22:50:52 -07:00
Henrik Rydgard
1595ac3386 Log spam reduction - only WARN about non-zero bad handles, and sceAtracSetLoopNum gets demoted to DEBUG. 2013-10-22 19:56:05 +02:00
Unknown W. Brackets
580d4436a3 Fix vtimer uid param type, add algorithm include. 2013-10-22 07:46:33 -07:00
Unknown W. Brackets
47714d4b82 Don't change the vtimer schedule with no handler. 2013-10-22 07:45:53 -07:00
Unknown W. Brackets
0a373b08b7 Return better vtimer errors within interrupts. 2013-10-22 07:45:53 -07:00
Unknown W. Brackets
b7fd768ecc Correct vtimer scheduling. 2013-10-22 07:45:52 -07:00
Unknown W. Brackets
a47c88d658 Run missed handlers when setting vtimer time. 2013-10-22 07:45:52 -07:00
Unknown W. Brackets
856e3b7071 Fix error code on start vtimer with current. 2013-10-22 07:45:51 -07:00
Unknown W. Brackets
4a444776ab Sign extend sceKernelUSec2SysClock().
Wow, I guess this has been broken forever.
2013-10-22 07:45:51 -07:00
Unknown W. Brackets
002aed1080 Update current and limit bytes in vtimer refer. 2013-10-22 07:45:50 -07:00
Unknown W. Brackets
ea507388ea Return a special error for the running vtimer.
Also, ues 0 when none is running.  This explains the different error code.
2013-10-22 07:45:50 -07:00
Unknown W. Brackets
9bd988e376 Fix doubling of current on vtimer stop. 2013-10-22 07:45:49 -07:00
Unknown W. Brackets
167699ac9e Correct sceKernelGetVTimer*Wide() error value. 2013-10-22 07:45:49 -07:00
Unknown W. Brackets
67cd13702e Correct sceKernelSetVTimerTime*(). 2013-10-22 07:45:48 -07:00
Unknown W. Brackets
29d7d00b08 sceKernelCancelVTimerHandler() resets handler only. 2013-10-22 07:45:48 -07:00
Unknown W. Brackets
c9755d7886 Correct errors from sceKernelCancelVTimerHandler(). 2013-10-22 07:45:47 -07:00
Unknown W. Brackets
7edebd1c2f Put vtimer args on the stack, skip allocation.
This is roughly where they are on the PSP based on tests, and it avoids
having to manage memory or etc.
2013-10-22 07:45:47 -07:00
Henrik Rydgård
7fd6a7e06b Merge pull request #4288 from sum2012/log
Fix Naruto Shippuden Kizuna Drive (error module load failed)
2013-10-22 06:27:12 -07:00
Henrik Rydgard
614ec822e8 Let's only bother with symbol loading on the desktop. 2013-10-22 15:14:47 +02:00
sum2012
94694ded55 Add error log of SCE_KERNEL_ERROR_LIBRARY_NOTFOUND in sceUtilityLoadModule 2013-10-22 21:08:36 +08:00
sum2012
e130ec64a7 Fix DmacMemcpy and sceDmacTryMemcpy by @unknownbrackets
Fix Ikki Tousen - Eloquent Fist crash
2013-10-22 20:57:07 +08:00
sum2012
ab9f39851a correct last time commit
seem this should right
2013-10-22 20:29:25 +08:00
sum2012
940d819d00 Increase sceUtilityUnloadModule log level 2013-10-22 20:15:32 +08:00
Henrik Rydgard
bf59f3db73 Add ugly hack setting for PowerVR to disable alpha test
Causes glitches but the speedup is truly massive in some games so I relent :/

Please do not report graphics bugs when this is enabled...

Future: Maybe remove this setting except on PowerVR?
2013-10-22 13:00:19 +02:00
Henrik Rydgard
de39a81dce sceAtrac: Force mono when needed. (see #4248) 2013-10-22 11:01:46 +02:00
Henrik Rydgard
3d5a85f1a7 Restore accidental change to sceAtracGetInternalInfo, minor indentation reduction, demote a log message 2013-10-22 10:53:48 +02:00
Henrik Rydgard
bf89c01215 When atrac3+ decoding fails, stop decoding silently-ish instead of decoding garbage, spamming the log 2013-10-21 23:10:30 +02:00
Henrik Rydgard
f7feefcb03 Cleanup: Remove a check that will never be true 2013-10-21 23:02:37 +02:00
Henrik Rydgård
598e06faa8 Make Home in the game browser available on linux/mac/etc too.
Misc tweaks.
2013-10-21 12:21:22 +02:00
Henrik Rydgård
8556eaf59d sceAtrac: Report occurences of multiple packets in one. Update native
with minor UI fix.
2013-10-21 11:19:13 +02:00
The Dax
98c6e87c0f Make touch Dpad and Select show by default. 2013-10-20 12:02:19 -04:00
sum2012
fc3d3c9a78 fix maxim-at3plus crash
Thanks @unknownbrackets
https://github.com/hrydgard/ppsspp/issues/4248
Digimon Adventure Voice probrem can be fixed later
2013-10-20 20:57:24 +08:00
Henrik Rydgard
f5a63d7d41 Better fix for the UINT_64 define issue on android 2013-10-20 13:52:31 +02:00
Siddharth
55a664bd13 made buttons invisible in the layout screen if they are disabled 2013-10-20 17:17:32 +05:30
Henrik Rydgård
4b063228f6 Fix path bug by using the right quotes.. 2013-10-20 10:46:23 +02:00
Henrik Rydgård
be39646223 Merge pull request #4252 from thedax/touchControlVisibility
Add a screen to toggle onscreen touch control visibility.
2013-10-20 01:13:03 -07:00
Henrik Rydgård
9f9d7d961e Merge pull request #4249 from unknownbrackets/io-minor
Support \ paths within filenames (Linux/Android?/etc.)
2013-10-20 01:07:37 -07:00
Unknown W. Brackets
afb578a325 Use the newer interface for Qt's gpu debugging. 2013-10-20 00:14:39 -07:00
Sacha
40da2f7f5b Buildfix Symbian and Blackberry from the ffmpeg merge.
Fix a header issue on Blackberry.
Fix a UINT64_C define issue.
FFMPEG is no longer 'beta'.
2013-10-20 16:41:34 +10:00
The Dax
11a34746cf Default to true for all touch control visibility, and actually translate Control Visibility. 2013-10-20 00:01:29 -04:00
The Dax
d099692ed0 Make Toggle All actually function. 2013-10-19 23:24:38 -04:00
The Dax
a88a30fb1d Add a touch control visibility screen. All touch controls can now be toggled on or off, except for the Pause button on platforms that have it, as a safety precaution. 2013-10-19 23:24:09 -04:00
Unknown W. Brackets
3499ef341a Support \ paths within filenames. 2013-10-19 17:06:29 -07:00
Henrik Rydgard
f15e21c5f8 Remove the Enable Atrac3+ checkbox 2013-10-20 01:07:18 +02:00
Siddharth
38442c090e allow loading and unloading of onScreen control coordinates. Also, use sane (bottom left origin)coordinate system for all onScreen elements
can now reposition on screen controls

removed unnessecary files

fixed indenting issues

renamed RepositionOnScreenControlScree to TouchControlLayoutScreen
2013-10-20 00:39:38 +02:00
Unknown W. Brackets
edf3faf251 Clear the audio buffer on game reset.
Avoids blips.
2013-10-19 15:11:06 -07:00
Unknown W. Brackets
e99cc01976 Fix some switch/case warnings. 2013-10-19 14:57:45 -07:00
Unknown W. Brackets
e95f55a5fe Fix some enum type warnings. 2013-10-19 14:57:45 -07:00
Unknown W. Brackets
1283a93492 Avoid some minor warnings. 2013-10-19 14:57:45 -07:00
Henrik Rydgård
2f8a78dd7a Clean up SimpleAT3Dec, don't allocate new Frame objects all the time 2013-10-19 23:09:28 +02:00
Henrik Rydgård
2c5adc96cf Rip out the support for the Atrac3+ plugin. It is gone, to never return. 2013-10-19 23:09:26 +02:00
Henrik Rydgård
be40289d6c Use ffmpeg for Atrac3+ decoding during video playback as well. 2013-10-19 23:09:26 +02:00
Henrik Rydgard
3cefa1ad79 Things seem more stable after initializing the AVPacket.
More testing needed though.
2013-10-19 23:09:25 +02:00
Henrik Rydgard
f311901e5e Use ffmpeg for decoding Atrac3+ in sceAtrac. Thanks Maxim. 2013-10-19 23:09:25 +02:00
Henrik Rydgård
51196742ee Clear symbol map in AttemptLoadSymbolmap on non-windows 2013-10-18 18:23:17 +02:00
Henrik Rydgård
2d331cb8c4 Revert "Clear the symbol map in LoadExec. Fixes some hangs on switching games,"
This reverts commit 6c3f2155c7.
2013-10-18 18:08:18 +02:00
Henrik Rydgård
f85b4a4252 Buildfix 2013-10-18 15:07:04 +02:00
Henrik Rydgård
6c3f2155c7 Clear the symbol map in LoadExec. Fixes some hangs on switching games,
unclear why.
2013-10-18 14:40:58 +02:00
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
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
Unknown W. Brackets
f1bfbe6216 Oops, fix a logging typo. 2013-10-06 12:16:42 -07:00
shenweip
6812ddf8e4 Fallback to validDir if sfo file doesn't exist. 2013-10-07 02:32:03 +08:00
shenweip
561cbab5c5 Use sfo file to set savedata'date when mode is 11. 2013-10-06 22:17:05 +08:00
Lioncash
a7836af14c Move variable temp into the if statement in function Update in PSPGamedataInstallDialog.cpp. It's only used in this branch statement. 2013-10-05 18:30:00 -04:00
Lioncash
dc9f839583 Fix a null check in sceHeap.cpp 2013-10-05 18:22:13 -04:00
Lioncash
3c90b489fa Merge branch 'master' of https://github.com/hrydgard/ppsspp 2013-10-05 17:44:09 -04:00
Henrik Rydgård
4bde70f670 Merge pull request #4017 from shenweip/patch-10
Implemented some functions for sceHeap.
2013-10-05 13:34:00 -07:00
Henrik Rydgård
c84a9daa40 Merge pull request #4021 from bollu/master
Audio Processor now uses atomics rather than mutex
2013-10-05 13:33:11 -07:00
Henrik Rydgård
fec5110dfc Merge pull request #4045 from unknownbrackets/warnings
Warning fixes
2013-10-05 13:31:34 -07:00
Henrik Rydgård
41a85f0eae Merge pull request #4038 from sum2012/log
Fix Kamen Rider Climax Heroes OOO - ULJS00331 loading
2013-10-05 13:28:57 -07:00
Henrik Rydgård
99390b5a77 Merge pull request #4044 from raven02/patch-24
Wrap sceNetInit()
2013-10-05 13:28:23 -07:00
Henrik Rydgård
34cae99c6e Merge pull request #4041 from Kingcom/ElfReader
Check e_ident of elf header
2013-10-05 13:28:07 -07:00
Unknown W. Brackets
3a1b6fb269 Fix some sign comparison warnings. 2013-10-05 11:13:41 -07:00
Unknown W. Brackets
093255a895 Avoid an unlikely buffer overflow. 2013-10-05 11:13:40 -07:00
Unknown W. Brackets
1b1a8cef02 Fix a potential null pointer. 2013-10-05 11:13:40 -07:00
Unknown W. Brackets
49bd553238 Avoid some shadowing warnings. 2013-10-05 11:13:39 -07:00
Unknown W. Brackets
ade4f76ac1 Don't try to load bogus isos, carnage awaits. 2013-10-05 11:12:52 -07:00
sum2012
1a7da15491 Use better method to trace PSP_MODULE_NET_HTTP 2013-10-06 01:19:52 +08:00
raven02
b95901e56f Wrap sceNetInit() 2013-10-06 00:58:02 +08:00
sum2012
2815cb281a Fix Kamen Rider Climax Heroes OOO - ULJS00331 loading
thanks @unknownbrackets
2013-10-05 20:15:44 +08:00
bhavin192
d3733ddbfe Update CwCheat.cpp
Cleaned comment
Since cwcheat working in symbian now
2013-10-05 17:42:43 +05:30
Kingcom
7f1fca8e74 Check e_ident of elf header 2013-10-05 10:05:55 +02:00
shenweip
a9d7d84601 Return 0 if recevie a null name. 2013-10-05 08:59:53 +08:00
shenweip
4ac4ea38dd Rename __JpegDecodeMJpegYCbCr to __JpegConvertRGBToYCbCr. 2013-10-05 08:40:55 +08:00
sum2012
7213d27ea3 Increase log level in sceUtilityLoadModule
Some modules need return error as dissus  in
https://github.com/hrydgard/ppsspp/issues/860#issuecomment-25675539
2013-10-05 07:37:51 +08:00
shenweip
54492732b5 Rename u24 to u24_be. 2013-10-05 02:52:33 +08:00
shenweip
d8f1ddd6fa Implemented sceJpegMJpegCsc. 2013-10-05 01:18:13 +08:00
shenweip
a7f7d64f31 More work in sceJpegDecodeMJpegYCbCr. 2013-10-05 01:04:41 +08:00
shenweip
b1f81999fa Fix someting wrong. 2013-10-05 00:04:51 +08:00
Sacha
7c644bda2c Remove c++11 usage of vector. 2013-10-04 23:14:54 +10:00
Siddharth
eb1305120e now blocks to gain outAudioQueue access at __AudioDoState 2013-10-04 17:58:09 +05:30
Lioncash
ce806d8c05 Fixed a mismatched delete within PSPGamedataInstallDialog.cpp. Should be delete[]. 2013-10-02 19:05:21 -04:00
Siddharth
eb9c339c2e fully functional and uses atomic_flag 2013-10-02 20:20:32 +05:30
Siddharth
6c2a9972c1 using the new atomic_flag 2013-10-02 19:09:56 +05:30
Kingcom
d12d3058e7 Don't show ListBox if it was hidden before 2013-10-02 09:11:38 +02:00
Siddharth
a151b5beb6 using PPSSPP's locks 2013-10-02 11:01:59 +05:30
shenweip
7f92a5dffd Oops 2013-10-02 06:54:15 +08:00
shenweip
346d277042 Fix bugs and Clean up. 2013-10-02 06:07:02 +08:00
Siddharth
a6ec70fe90 Audio Processor now uses atomics rather than mutex 2013-10-02 01:54:55 +05:30
shenweip
9a7759c50c Move someting to correct position. 2013-10-02 00:32:22 +08:00
shenweip
efec08f7d6 Oops 2013-10-02 00:04:29 +08:00
shenweip
33f08852c1 Implemented sceHeapGetTotalFreeSize. 2013-10-01 23:38:49 +08:00
shenweip
8cd281223d Implemented some functions for sceHeap. 2013-10-01 23:38:01 +08:00
Unknown W. Brackets
a72340255f Support %X and %x in sceKernelPrintf(). 2013-10-01 08:00:08 -07:00
Henrik Rydgård
e94a67860d Merge pull request #4005 from Kingcom/Debugger
More debug UI tweaks
2013-10-01 01:10:19 -07:00
Henrik Rydgård
a358582440 Merge pull request #4002 from adrian17/master
Removed redundant includes
2013-10-01 01:09:42 -07:00
Unknown W. Brackets
10e446d225 Notify of shutdown *after* setting coreState. 2013-09-30 23:36:57 -07:00
Kingcom
2dfa63bb1c Add config setting 2013-09-30 21:42:05 +02:00
adrian17
7e3f35dfe3 Removed redundant includes 2013-09-30 19:05:04 +02:00
Henrik Rydgård
f8bc2f6c76 Merge pull request #3909 from raven02/patch-5
Return SCE_KERNEL_ERROR_ILLEGAL_PRIORITY when priority < 0
2013-09-30 03:27:33 -07:00
Henrik Rydgård
2f2e1460b8 Merge pull request #3929 from raven02/patch-10
Delay as sas core for sceP3daBridgeCore
2013-09-30 03:08:11 -07:00
Henrik Rydgård
0ea2360353 Merge pull request #3916 from shenweip/patch-6
Use a separate latch for osk dialog.
2013-09-30 02:04:22 -07:00
Henrik Rydgård
a95a1a914c Merge pull request #3992 from unknownbrackets/savestates
Add rewind functionality only (no UI)
2013-09-30 01:52:49 -07:00
Unknown W. Brackets
2da30d59d1 Fix reporting's net shutdown as well. 2013-09-30 01:25:40 -07:00
Unknown W. Brackets
b7fbf5942f Make save/load fail strings more consistent. 2013-09-29 20:24:23 -07:00
Unknown W. Brackets
5950c30e7b If loading state fails, rewind instead of reset. 2013-09-29 20:20:20 -07:00
Unknown W. Brackets
021e09f53b While unthrottled, checkpoint rewind less often. 2013-09-29 20:04:23 -07:00
Unknown W. Brackets
b3c6e6c012 Add basic support for rewinding (not enabled.) 2013-09-29 19:58:39 -07:00
Unknown W. Brackets
79abca9da4 Mostly implement sceDmacTryMemcpy(). 2013-09-29 16:56:11 -07:00
Unknown W. Brackets
74908f6b38 Add errors and rescheduling to sceDmac*.
The functionality seems pretty straight-forward.
2013-09-29 16:51:49 -07:00
Unknown W. Brackets
394d91371f Avoid clearing the jit cache on savestate.
Downside: saving state could "fix" some issues with games detecting jit,
which won't happen anymore.

However, it's now faster to savestate.
2013-09-29 14:26:13 -07:00
danyalzia
903d425fc8 Update Config.cpp 2013-09-30 00:45:06 +05:00
Henrik Rydgard
b661ae6c41 Add very simple jit viewer screen to dev menu. Add untested emitter for cvt.f32.f16 & c:o. 2013-09-29 13:41:56 +02:00
Henrik Rydgård
aaeb3f3fda Merge pull request #3974 from mgaver/patch-8
Update PSPOskDialog.cpp
2013-09-29 02:52:42 -07:00
shenweip
1cb59eb76a Fix savedata. 2013-09-29 17:30:17 +08:00
Henrik Rydgård
38fbbbb420 Merge pull request #3970 from unknownbrackets/gpu-thread
Fix MT locking, was not really right
2013-09-29 02:03:02 -07:00
shenweip
3e5b6e6200 Only use a separate btnmake. 2013-09-29 16:21:30 +08:00
mgaver
6be671b8ec Update PSPOskDialog.cpp 2013-09-29 17:12:45 +09:00
Unknown W. Brackets
b928f50353 Cleanup sceKernelRegisterExitCallback() per tests. 2013-09-29 01:10:07 -07:00
Unknown W. Brackets
a7ec139b5a Savestate the exit callback, reporting.
Seems like LoadExecForUser_362A956B() uses it, so we need to save it.
I have no confidence that function works correctly, so let's report it.
2013-09-29 00:19:54 -07:00
Unknown W. Brackets
91d73d0972 Fix one sceHeap func, add reporting. 2013-09-29 00:07:51 -07:00