Commit Graph

4420 Commits

Author SHA1 Message Date
shenweip
dbb16517d2 Forget DoState. 2013-09-27 23:10:31 +08:00
shenweip
a883fbd155 Add some comments. 2013-09-27 23:01:27 +08:00
shenweip
7bb798edb6 Implemented sceUtilityGamedataInstallUpdate. 2013-09-27 22:52:25 +08:00
Henrik Rydgård
a757457ec2 Merge pull request #3933 from mgaver/patch-7
Update PSPOskDialog.cpp
2013-09-27 02:47:38 -07:00
Henrik Rydgard
6143cfabd9 Fix encoding of PSPOskDialog so it works on the build bot. Oh no, not another of these... 2013-09-26 17:39:36 +02:00
mgaver
a475691171 Update PSPOskDialog.cpp 2013-09-27 00:29:04 +09:00
Henrik Rydgård
9088027a29 sceMp3: Add back "wrong name" comments 2013-09-26 17:20:50 +02:00
raven02
deaf86a433 Align OSK button bit better 2013-09-26 21:26:19 +08:00
raven02
ecec358d06 Delay as sas core for p3da 2013-09-26 18:44:52 +08:00
Henrik Rydgard
b10e2bce3c Add FXAA antialiasing on non-mobile. Works best when render resolution = window size. 2013-09-26 12:41:59 +02:00
raven02
86c7b728f7 Add few arguments for sceDmacTryMemcpy() 2013-09-26 12:04:31 +02:00
raven02
f84047675e Add ERROR_LOG_REPORT for sceDmacTryMemcpy() 2013-09-26 17:25:56 +08:00
Henrik Rydgård
3f1b87c85e Merge pull request #3923 from thedax/fixBuilds
Fix headless.
2013-09-26 02:19:19 -07:00
raven02
380cc61aff Add ERROR_LOG_REPORT for two unknown sceMp3 calls 2013-09-26 17:09:32 +08:00
raven02
0219ab2e93 Implement sceMp3ResetPlayPosition2() 2013-09-26 17:06:08 +08:00
The Dax
a15ba1322d Move GetLangValuesMapping out of MiscScreens.cpp so it can be used globally. 2013-09-25 21:06:58 -04:00
The Dax
3cc07ec1af Let LTRIGGER cycle languages backward. 2013-09-25 17:33:22 -04:00
The Dax
a7a416fa88 Pull language names from langregion.ini. 2013-09-25 17:17:17 -04:00
The Dax
546a506c62 Be consistent with braces. 2013-09-25 16:52:18 -04:00
The Dax
17d52ce07c Adjust some of the text to look better. 2013-09-25 16:25:26 -04:00
The Dax
7b6414e78d Overhaul the OSK. Select now acts as a shift button(swaps between upper/lower case; in the case of Korean, it does nothing. In the case of Japanese, it swaps Katakana/Hiragana). R Trigger now acts as a language selector, cycling through the 5 keyboard languages(English, English full-width, Japanese, Korean, Russian). 2013-09-25 16:18:07 -04:00
The Dax
1061d6193c Remove some unused stuff. 2013-09-25 13:52:41 -04:00
The Dax
90c21a370c Add Full-width Latin keyboard(upper and lower cases), and allow OSK to input characters as long as it's <= FieldMaxLength. This should allow Valkyria Chronicles II to have correct password entry on all platforms. 2013-09-25 13:50:50 -04:00
raven02
3d210b9e85 Add comment "priority = -1 is valid" 2013-09-25 22:19:43 +08:00
raven02
99d1bfbe89 Add ERROR_LOG for Illegal Priority 2013-09-25 21:52:16 +08:00
shenweip
43654e2a61 Use a separate latch for osk dialog. 2013-09-25 16:32:07 +08:00
raven02
6141514160 Support load a savestate created with a previous git build 2013-09-25 14:37:27 +08:00
raven02
368e4d93f9 Implement sceMp3GetSumDecodedSample() 2013-09-25 11:50:38 +08:00
raven02
ac95819ec1 Return SCE_KERNEL_ERROR_ILLEGAL_PRIORITY when priority < 0 2013-09-24 21:51:05 +08:00
Henrik Rydgard
2b66a850be More spline/bezier optimization. Enable real splines. Add option "Low quality spline/bezier curves". 2013-09-24 11:14:49 +02:00
Henrik Rydgard
f69632a316 Fix one more PSPPointer function. Fixes #3897 2013-09-23 22:06:50 +02:00
Henrik Rydgard
854da44fba Buildfix 2013-09-23 21:51:34 +02:00
Henrik Rydgard
fa3e63d46b On 32-bit platforms, PSPPointer must mask off the cache bit etc from pointers. 2013-09-23 21:46:45 +02:00
Henrik Rydgard
250678fa63 Add missing sceAac NID 2013-09-23 15:55:53 +02:00
Henrik Rydgård
2a16b9d3bb Merge pull request #3889 from unknownbrackets/debugger
Initially usable GE debugger
2013-09-23 02:07:40 -07:00
Henrik Rydgård
c01fb845aa Merge pull request #3890 from unknownbrackets/io-minor
Improve error handling in sceIoLseek*()
2013-09-23 00:02:52 -07:00
Unknown W. Brackets
197b4a34f4 Improve error handling in sceIoLseek*(). 2013-09-22 23:37:51 -07:00
Unknown W. Brackets
a1713e620b Initialize some psmf values.
This was causing glitches when loading game A and then game B.
2013-09-22 21:19:59 -07:00
Henrik Rydgard
806e482545 Add the sceAac NIDs (function list), no implementation. 2013-09-23 00:28:36 +02:00
Unknown W. Brackets
eabd8b5302 Add GPU debugging hooks to Host, not yet in use. 2013-09-22 08:14:55 -07:00
raven02
aa38dc238d Merge remote-tracking branch 'upstream/master' into patch-21
Conflicts:
	GPU/GLES/GLES_GPU.cpp
2013-09-22 16:08:44 +08:00
Henrik Rydgård
c69852444b Merge pull request #3873 from unknownbrackets/ge-minor
Improve sceGeBreak and offsetAddr handling
2013-09-22 00:18:59 -07:00
Unknown W. Brackets
881cefbc83 A paused list will allow a context save.
Just not stall, drawing, etc.
2013-09-21 21:01:41 -07:00
Unknown W. Brackets
db1f2f2535 Oops, fix return of sceGeBreak(0).
Needs to match dlist ids.
2013-09-21 21:01:41 -07:00
Unknown W. Brackets
e10ae1530b Error and reporting for sceGeBreak's second param. 2013-09-21 21:01:40 -07:00
raven02
e5305f655d Chane to ATRAC_ERROR_NO_LOOP_INFORMATION 2013-09-22 11:41:58 +08:00
Unknown W. Brackets
8fb2cb5bf6 Check log level from ffmpeg, use levels. 2013-09-21 17:19:57 -07:00
Unknown W. Brackets
36fd5df53f Typo. 2013-09-21 17:04:05 -07:00
Unknown W. Brackets
d305d1faa2 Check enqueue as well, should be safer.
Also, make sure not to eat a bunch more cycles when forcing a check.
2013-09-21 17:00:52 -07:00
Unknown W. Brackets
18a493f316 Don't use Advance() in syscalls, it's unsafe.
Eats some cycles in enqueue and still checks ASAP, FF Type-0 seems happy
with this also.
2013-09-21 15:03:30 -07:00
Unknown W. Brackets
927f292230 Return a similar dlist id range to the PSP.
At least this top part seems to match, the other bits seem randomish.
But, there may be some game out there thinking that if the top bits aren't
set it's invalid or something.
2013-09-21 15:03:29 -07:00
Henrik Rydgard
c733f7a7ab Curious about what games use morph, so let's report. 2013-09-21 21:22:13 +02:00
Unknown W. Brackets
7ca64374ea Return 24-bit floats in sceGeGetMtx(). 2013-09-21 10:32:09 -07:00
Unknown W. Brackets
ecd5869b88 Validate sceGeGetCmd and Mtx. 2013-09-21 10:23:41 -07:00
Unknown W. Brackets
863eb83e4c Add support for sceGeGetStack() for debugging. 2013-09-21 10:04:31 -07:00
Henrik Rydgard
5bdb9e976b Track copies of framebuffers in ram created through sceDmacMemcpy, so that we can display them.
Fixes MotoGP while also, in effect, committing #3859.
Removes the horrifying ramDisplayFramebufferPtr hack.
2013-09-21 18:53:55 +02:00
kaienfr
69d6852141 fix cwcheat Memcpy command 0x5 2013-09-21 17:12:34 +02:00
Henrik Rydgård
eaaa886b62 Merge pull request #3860 from raven02/patch-24
Fix missing intro CG in GTA series
2013-09-21 02:51:08 -07:00
Unknown W. Brackets
a7f60afecb Use a saved ctx not break/continue in PPGe. 2013-09-20 21:15:36 -07:00
raven02
e51a9b6dd6 Fix missing intro CG in GTA series 2013-09-21 12:03:54 +08:00
Unknown W. Brackets
17a4341bb3 Don't allow save/restore ctx while list running. 2013-09-20 09:51:44 -07:00
Unknown W. Brackets
4078dcd917 Support save/restore of context on list run/finish. 2013-09-20 09:51:44 -07:00
Henrik Rydgård
7d1117be34 Merge pull request #3848 from raven02/patch-20
Set default to false for option, FrameSkipUnthrottle
2013-09-20 08:14:09 -07:00
raven02
74c4b2bafb Add ifdef _WIN32 2013-09-20 20:51:46 +08:00
Unknown W. Brackets
7906de26f7 Try to match especially the size of ge contexts.
But also some of the actual data, most of it matches like this.
2013-09-20 00:33:32 -07:00
Unknown W. Brackets
3604c2285a Error checking in sceGeEdramSetAddrTranslation(). 2013-09-19 23:03:34 -07:00
raven02
9212b131ab Set default to false for option, FrameSkipUnthrottle 2013-09-20 13:57:46 +08:00
Henrik Rydgård
b7bb335495 Merge pull request #3835 from unknownbrackets/headless
A couple more optimizations
2013-09-19 12:41:53 -07:00
Unknown W. Brackets
2751da1cec Cut down on work in regcache init on x86.
Very tiny tiny optimization for games, but 8-10% optimization for tests.
2013-09-19 00:29:50 -07:00
Unknown W. Brackets
5c7c57dd3f Oops, typo. 2013-09-19 00:28:57 -07:00
The Dax
1788a56964 Fix Visual Studio 2013 build. 2013-09-18 12:02:49 -04:00
shenweip
4986bf735b Inactivating GamedataInstallDialog in sceUtilityGamedataInstallUpdate
dialog in sceUtilityGamedataInstallUpdate

Forget this before.
2013-09-18 21:34:28 +08:00
Henrik Rydgård
47735579df Merge pull request #3821 from shenweip/patch-1
Implemented sceMpegAvcConvertToYuv420 and sceJpegCsc,finally Monster Hunter 3rd'video works
2013-09-18 05:03:15 -07:00
shenweip
6bcf1705ec Typo 2013-09-18 18:19:08 +08:00
shenweip
d0c5a721b0 fix wrong var name 2013-09-18 16:21:18 +08:00
shenweip
440b6197d7 Change DEBUG_LOG_REPORT to DEBUG_LOG and change internal funcs name as @unknownbrackets 's advice 2013-09-18 16:19:05 +08:00
Henrik Rydgård
198434c6eb Merge pull request #3823 from unknownbrackets/headless
Fix headless on buildbot (command line length), speed up further
2013-09-18 00:48:17 -07:00
Unknown W. Brackets
d17df4a79a Don't zero initialize opcode.
This slows down JitBlockCache::Init() a lot, which impacts test speed more
than you'd expect.
2013-09-17 23:46:59 -07:00
Unknown W. Brackets
0735a9a679 Just disable PPGe during tests, should be okay. 2013-09-17 23:13:13 -07:00
shenweip
a794f1536e Add a DEBUG_LOG_REPORT in sceJpegCsc 2013-09-18 14:07:58 +08:00
shenweip
1badbe502c Implemented sceJpegCsc,finally Monster Hunter 3rd'video works. 2013-09-18 14:07:21 +08:00
shenweip
a62e9f15e9 Implemented sceMpegAvcConvertToYuv420. 2013-09-18 14:05:09 +08:00
Henrik Rydgård
2de4db3e31 Merge pull request #3818 from unknownbrackets/headless
Headless - use auto compare, just build test list in test.py
2013-09-17 09:08:20 -07:00
Unknown W. Brackets
8e412234c9 Fix ctrl reinit problem. 2013-09-17 08:40:20 -07:00
Unknown W. Brackets
d1d9fb5bbf Start the kernel ids over on reset.
So that things aren't affected by wrapping over.  Although, maybe we
should handle that better if it causes incorrect behavior...
2013-09-17 08:11:51 -07:00
The Dax
d102baacd0 Prep PPSSPP for Visual Studio 2013. 2013-09-17 10:27:06 -04:00
Henrik Rydgård
db92f26e56 Merge pull request #3806 from thedax/win32UITranslation
Win32 UI: Rewrite most of the menu translation code to be cleaner and simpler.
2013-09-17 06:43:24 -07:00
danyalzia
036a180708 Update sceDisplay.cpp 2013-09-17 11:41:12 +05:00
danyalzia
5550d386d4 Update Config.cpp 2013-09-17 11:36:09 +05:00
danyalzia
8f55e145c0 Update variables 2013-09-17 11:33:32 +05:00
The Dax
e6d85cfb39 Rename Config::languageIni to Config::sLanguageIni for consistency. 2013-09-16 19:47:25 -04:00
The Dax
426e6630d9 Rewrite most of the translation stuff to be cleaner.
Also fix a bug where in-game only menu items become enabled after selecting a language when we're in various NewUI menus.
Rename Config::ilanguage to Config::iLanguage for consistency with other Config variables.
2013-09-16 18:45:09 -04:00
Unknown W. Brackets
0c6fbb461d Tweak ffmpeg logging in mp3/atrac as well. 2013-09-16 08:40:38 -07:00
Unknown W. Brackets
d13d8ad946 Avoid writing to stdout/stderr from ffmpeg.
This will log some errors in the log even in release.
2013-09-16 08:35:32 -07:00
Henrik Rydgard
83f39fdaa6 Report the combination of bezier/spline + morph/skinning to see if it happens 2013-09-16 09:01:20 +02:00
Unknown W. Brackets
4e86fc6266 Buildfix. 2013-09-15 16:02:05 -07:00
Henrik Rydgard
1bb6bbd07d Remove superfluous check in vrot 2013-09-16 00:24:28 +02:00
Henrik Rydgård
a4d040beff Merge pull request #3785 from thedax/moreCommandLineOptions
Win32: Add command-line arguments to allow different ppsspp/control ini files.
2013-09-15 15:21:45 -07:00
Henrik Rydgard
6aecfe3998 Trying the VROT disable experiment again, this time in the right file... 2013-09-16 00:14:05 +02:00
Henrik Rydgård
2ec10d5835 Merge pull request #3780 from unknownbrackets/savestates
Make it possible to add new sections optionally
2013-09-15 15:10:16 -07:00
Henrik Rydgård
06b2151939 Merge pull request #3784 from unknownbrackets/debugger
Enable the debug windows always, disable buttons
2013-09-15 15:07:13 -07:00
Henrik Rydgård
a83b5a849b Merge pull request #3790 from thedax/fixAndroidAudio
Swap order of ifdefs so Android's Atrac3+ works again.
2013-09-15 15:02:23 -07:00
The Dax
e49bdbb363 Swap order of ifdefs so Android's Atrac3+ works again. 2013-09-15 15:25:35 -04:00
Unknown W. Brackets
16b27ffb23 Disable x86 Comp_VRot on non-Windows.
This may fix x86 Android issues as well as Linux/etc.
2013-09-15 11:42:58 -07:00
Unknown W. Brackets
cfb50bf4d6 Add some more locking to prevent crash on reset. 2013-09-15 09:53:49 -07:00
The Dax
5cdfb6c4f9 Add command-line argument to allow a path to be specified for configuration files and control mapping files. Also fix a possible crash when loading ini files. 2013-09-15 12:50:42 -04:00
Unknown W. Brackets
8902e85f0a Enable the debug windows always, disable buttons.
This way you can close them/whatever, and hopefully should avoid crashes.

Only downside is you can't pause the game now and then hit stop in the
debugger.
2013-09-15 09:35:58 -07:00
Unknown W. Brackets
301884428f Buildfixes for Symbian and iOS/etc. 2013-09-15 08:18:20 -07:00
Unknown W. Brackets
887a61ae56 Make it possible to add new sections optionally. 2013-09-15 07:58:52 -07:00
Henrik Rydgård
82ee817647 Convert to new-style DoState 2013-09-15 09:53:24 +02:00
Henrik Rydgård
52e4a7cf5d Merge branch 'patch-1' of https://github.com/shenweip/ppsspp into shenweip-patch-1 2013-09-15 09:46:52 +02:00
Henrik Rydgård
966aa90f10 Merge pull request #3766 from kozec/master
AT3+ plugin detection on Linux
2013-09-15 00:26:52 -07:00
Henrik Rydgård
00f8ae5f2d Merge pull request #3772 from unknownbrackets/atrac-minor
Improve sceAtracGetBufferInfoForResetting()
2013-09-15 00:24:05 -07:00
Unknown W. Brackets
81c0a84322 Forgot a pointer check in atrac. 2013-09-14 21:22:02 -07:00
Unknown W. Brackets
418d6c1e83 Reset the game when loading a state fails.
This way it doesn't crash.
2013-09-14 21:19:10 -07:00
Unknown W. Brackets
2cca2568c7 Make sure the saved git ver is null terminated.
strncpy() is a tricky beast.
2013-09-14 20:29:01 -07:00
Unknown W. Brackets
50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Unknown W. Brackets
2ac5bcff1f Process savestates during single stepping.
This way we can handle them on the same thread, without weird delays.
2013-09-14 18:43:23 -07:00
Unknown W. Brackets
cf8a3e4df1 Improve sceAtracGetBufferInfoForResetting().
Fixes #2391.
2013-09-14 17:56:08 -07:00
kozec
1124ef91ea AT3+ plugin detection on Linux
Enables AT3+ plugin to be detected on linux, if placed on hardcoded or standard location - /usr/lib/libat3plusdecoder.so
2013-09-14 12:23:00 +02:00
Henrik Rydgård
3bc05a9941 Merge pull request #3764 from unknownbrackets/scheduling
Improve dispatch/interrupt handling in start/create thread
2013-09-14 02:57:09 -07:00
Henrik Rydgård
04b49dc42f Merge pull request #3760 from unknownbrackets/mips-minor
Fix fpu non-finite rounding on x86
2013-09-14 02:56:24 -07:00
Unknown W. Brackets
cff9a7b819 Don't allow thread start/create inside interrupts.
This fixes the volatile power test, and returns the right message even for
bad arguments.
2013-09-14 02:48:10 -07:00
Unknown W. Brackets
cbf1df9b01 Check for nan/inf in trunc.w.s in x86 jit.
Now x86 jit passes the fpu test too.
2013-09-13 22:32:25 -07:00
Unknown W. Brackets
7b71dc54dd Don't say nan is equal to anything.
I guess we were passing this because of fastmath?  Fixes interpreter
cpu/fpu/fpu test on Windows anyway.
2013-09-13 21:28:59 -07:00
Unknown W. Brackets
455431ba13 Integer round inf/nan to INT_MAX/INT_MIN.
Instead of 0x80000000 (the default "invalid" value.)
Improves the fpu test.
2013-09-13 21:27:31 -07:00
shenweip
d1cdf7538d fix wrong log message 2013-09-14 00:42:41 +08:00
shenweip
c018281509 fix style 2013-09-14 00:39:14 +08:00
shenweip
145a9b4e1d What a stupid 2013-09-13 23:57:31 +08:00
shenweip
82ad9ba853 Add GamedataInstallDialog to CMakeLists and Android.mk 2013-09-13 23:19:53 +08:00
shenweip
e286163690 Implemented some HLE functions for GamedataInstallDialog 2013-09-13 23:07:43 +08:00
shenweip
41dfea3150 Add PSPGamedataInstallDialog 2013-09-13 23:05:11 +08:00
The Dax
9dbf2b9d90 Add proper fullscreen and windowed launch arguments. Remove bFullScreenOnLaunch. 2013-09-12 16:56:18 -04:00
Unknown W. Brackets
ca6491ea22 Auto resume dispatch at thread start/create. 2013-09-12 08:02:43 -07:00
Ced2911
17b8d5d813 More recompiled instruction (fpu/alu) 2013-09-12 10:40:14 +02:00
Ced2911
23637db54c more recompiled fpu (not tested) 2013-09-12 10:34:10 +02:00
Ced2911
e90d9c035a more vfpu speed 2013-09-12 10:25:15 +02:00
Ced2911
bfe9018eb1 enable,fixe more vfpu 2013-09-12 10:25:15 +02:00
Ced2911
b90fde6c06 some fixes 2013-09-12 10:25:15 +02:00
Ced2911
e5024135a6 more on vfpu 2013-09-12 10:25:15 +02:00
Ced2911
a91d8bebe6 update ppc jit 2013-09-12 10:22:14 +02:00
Ced2911
7bf623d339 oops missed fpu reg cache 2013-09-12 10:22:01 +02:00
Ced2911
f8b5496bc8 some new recompiled instructions 2013-09-12 10:21:50 +02:00
Ced2911
dc41d0f0eb recompile Fpu ! 2013-09-12 10:21:39 +02:00
Ced2911
2ad39d3999 Almost all alu recompiled
Current issues:
	Comp_RType3(min/max): Can't select start in disgaea
	Comp_ShiftType(srl/srlv?): Crash ridge racer 2
2013-09-12 10:21:26 +02:00
Ced2911
fb24e0ed28 Add some badly tested instruction 2013-09-12 10:20:34 +02:00
Ced2911
47280f007f implement sltiu, slti is bad 2013-09-12 10:20:17 +02:00
Ced2911
d4acf0edd7 more jitted instructions 2013-09-12 10:20:02 +02:00
Ced2911
24576fd72f recompile shift left/right immediate 2013-09-12 10:19:47 +02:00
Ced2911
52f4cccfa4 fix Jit 2013-09-12 10:19:35 +02:00
Ced2911
3350061197 use _alloca 2013-09-12 10:19:23 +02:00
Ced2911
c98090e095 jit fixes 2013-09-12 10:19:11 +02:00
Ced2911
c94d9b62d0 Update ppc jit 2013-09-12 10:18:59 +02:00
Unknown W. Brackets
2c763365b4 Check size is within bounds in AllocAt(). 2013-09-11 22:52:22 -07:00
Henrik Rydgård
e8b8ed7d65 Merge pull request #3733 from thedax/simplifyOSKBypass
Win32: Simplify NativeKeyboard(OSK bypass), and speed up the char copy loop.
2013-09-11 13:23:49 -07:00
Henrik Rydgard
91f9161d76 Fix some bugs found in reports in the Android crash reporting console 2013-09-11 22:21:32 +02:00
The Dax
58aab2eeb8 Simplify NativeKeyboard, and only copy the amount of bytes of the output plus null terminator. 2013-09-11 15:42:32 -04:00
Unknown W. Brackets
db7496a37c Write only changed characters from OSK. 2013-09-11 08:04:01 -07:00
Unknown W. Brackets
a8c7421a0b Add some additional and mostly pointless accuracy. 2013-09-11 00:15:49 -07:00
Unknown W. Brackets
8e69b70bf5 Start sceRtc at now, not 1970. 2013-09-11 00:12:33 -07:00
Henrik Rydgård
e875e8597a Merge pull request #3728 from unknownbrackets/savedata-minor
Don't copy a negative size in savedata
2013-09-11 00:02:48 -07:00
Unknown W. Brackets
5352432d8f Don't copy a negative size in savedata.
Not sure what's correct here, Street Fighter Alpha 3 passes -1.
It seems to call it twice, so probably the first time is to get the size?

Fixes #3722, thanks @thedax.
2013-09-10 22:23:47 -07:00
Henrik Rydgard
2745744d99 Split the resolution setting into Window Size and Rendering Resolution (internal resolution).
Gets rid of our "antialiasing" (simply crank up internal resolution to 2x your window size).

Proper MSAA is coming later.
2013-09-11 00:19:34 +02:00
Henrik Rydgård
fb48defa75 Experiment: Disable VROT on x86 32-bit except on Windows where I know it works. 2013-09-10 18:17:00 +02:00
Henrik Rydgård
5a9bed50bf Merge pull request #3715 from unknownbrackets/savedata-minor
Fix custom save dialog dates
2013-09-10 02:12:48 -07:00
Unknown W. Brackets
e75ea49a66 Fix #3706, custom save dialog dates. 2013-09-10 02:09:18 -07:00
Henrik Rydgård
d20e7a93aa Merge pull request #3713 from unknownbrackets/thread-stack
Correct sceKernelGetThreadStackFreeSize()
2013-09-10 02:04:26 -07:00
Unknown W. Brackets
9fb64183e6 Don't write more than the savedata buffer.
Fixes Numblast when there's savedata, probably others.
Could use more testing.
2013-09-10 01:46:49 -07:00
Unknown W. Brackets
b898e397aa Correct sceKernelGetThreadStackFreeSize().
It was always returning 0.
2013-09-10 01:31:03 -07:00
Unknown W. Brackets
0f7ac377cd Offset the root thread's stack by arg size.
Otherwise it'll just overwrite, right?
2013-09-10 01:12:51 -07:00
Henrik Rydgård
ff0eb6eb62 Merge pull request #3712 from unknownbrackets/volatile-mem
Improve volatile mem locking w/ suspended intr
2013-09-09 23:57:26 -07:00
Henrik Rydgård
164d0972a7 Merge pull request #3711 from unknownbrackets/thread-minor
Fixes to various thread functions + heap corruption fix
2013-09-09 23:56:07 -07:00
Unknown W. Brackets
6d949f4d0b Improve volatile mem locking w/ suspended intr. 2013-09-09 23:49:06 -07:00
Unknown W. Brackets
15f66f2ff2 Log when syscalls fail due to intr/dispatch. 2013-09-09 23:14:40 -07:00
Unknown W. Brackets
19f517b042 Add a few new syscalls from reporting. 2013-09-09 22:38:29 -07:00
Unknown W. Brackets
ada492febe Fix really stupid heap corruption mistake. 2013-09-09 22:33:17 -07:00
Unknown W. Brackets
ccf021cef0 Return a negative error code in __KernelGetWaitID.
This way we can use 0 as a proper wait id.
2013-09-09 21:39:56 -07:00
Unknown W. Brackets
2577f65b80 Reset waits when terminating a thread.
Terminated threads can't be waiting.
2013-09-09 21:39:38 -07:00
Unknown W. Brackets
e19fdef0fd Reset thread priority on terminate. 2013-09-09 21:31:04 -07:00
Unknown W. Brackets
a3637a1cad Set the low mystery bits of the thread attr.
Tests on PSP show this, and I can't find a way to not have them set.
But I don't really know what they mean.

Anyway, since you can refer the status, you can see them, may improve
compatibility.
2013-09-09 20:51:52 -07:00
Unknown W. Brackets
0af3c50924 Eat cycles after creating a thread.
Improves things on some tests, should be more accurate.
Creating a thread sure takes a long time.
2013-09-09 20:49:30 -07:00
Unknown W. Brackets
1481bbdd3b Validate and report some thread attributes. 2013-09-09 20:48:23 -07:00
Unknown W. Brackets
ce4c0d85bb Support some thread stack attr options.
May improve memory management in some games.
2013-09-09 20:46:19 -07:00
Henrik Rydgard
b24ea4014a Simple tilt sensitivity setting 2013-09-09 23:48:11 +02:00
Unknown W. Brackets
65a1350f32 Oops, timegm() is supposed to modify its argument. 2013-09-09 08:50:49 -07:00
Unknown W. Brackets
281685fd43 Fix minor scheduling issues in the vpl test. 2013-09-09 01:05:38 -07:00
Unknown W. Brackets
478d007f96 I'm a typo machine. 2013-09-09 00:35:38 -07:00
Henrik Rydgård
628f77e2b0 Merge pull request #3700 from unknownbrackets/callbacks
Improve callbacks (still not rescheduling properly inside one)
2013-09-09 00:30:14 -07:00
Unknown W. Brackets
38e30e5a67 Fix bugs when memory size is 0x04C00000/etc.
Was experimenting with trying to match my non-phat's ram size.
2013-09-09 00:25:10 -07:00
Unknown W. Brackets
be468af52d Refactor waiting thread removal. 2013-09-09 00:22:00 -07:00
Unknown W. Brackets
4bd391b098 Refactor waiting thread cleanup. 2013-09-09 00:22:00 -07:00
Unknown W. Brackets
1040123a97 Delete callbacks when their thread is deleted. 2013-09-09 00:22:00 -07:00
Unknown W. Brackets
4bba276696 Run callbacks in creation order, not notify order. 2013-09-09 00:21:59 -07:00
Unknown W. Brackets
87bd8d59e2 Clean up umd bad callback id errors, oops. 2013-09-09 00:21:53 -07:00
Unknown W. Brackets
64b75ed3ff Decentralize callback registration.
Callbacks are always tied to THEIR thread, and the registration was all
based on the current thread which is just not the right way.
2013-09-09 00:21:15 -07:00
Unknown W. Brackets
94e88943d8 Keep a single list of pending callbacks.
Doing it per type only meant that we'd incorrectly call a callback twice
if it was notified by e.g. scePowerRegisterCallback() and
sceKernelNotifyThread(), which isn't what's supposed to happen.
2013-09-09 00:21:14 -07:00
Henrik Rydgård
74418c13bf Merge pull request #3646 from raven02/patch-17
Toggle option "Disable Stencil Test" & "Always Depth Write"
2013-09-09 00:06:00 -07:00
Unknown W. Brackets
d348b9d47a Add callback handlers for msgpipes. 2013-09-08 15:06:36 -07:00
Unknown W. Brackets
9a2beffea5 Refactor and add a way to remove msgpipe waits. 2013-09-08 15:06:35 -07:00
Unknown W. Brackets
411468dbac Adjust some helpers for msgpipes. 2013-09-08 15:06:35 -07:00
Unknown W. Brackets
f59d799a5b Reorganize msgpipes code a bit to prep. for cbs.
No real changes.
2013-09-08 15:06:34 -07:00
Unknown W. Brackets
136d0b5c50 Split msgpipe handling logic from wait/resched.
This way I can reuse it for the callback stuff.
2013-09-08 15:06:34 -07:00
Henrik Rydgård
1fde96a95a Merge pull request #3694 from unknownbrackets/atrac-minor
Improve sceAtrac error handling
2013-09-08 15:02:35 -07:00
Unknown W. Brackets
f1b62983b5 Add callback wait handlers for threadend as well. 2013-09-08 12:14:07 -07:00
Unknown W. Brackets
6d8213b0c5 Always specify retval when resuming a thread. 2013-09-08 12:02:18 -07:00
Unknown W. Brackets
4c828cd9a0 Remove __KernelTriggerWait(), no longer used. 2013-09-08 11:58:40 -07:00
Unknown W. Brackets
8ae6694e1d Use a waiting thread list in sceGe as well. 2013-09-08 11:57:44 -07:00
Unknown W. Brackets
5ec297c16c Properly cancel waits in sceUmd. 2013-09-08 11:24:21 -07:00
Unknown W. Brackets
3fb2c8f654 Use a waitingThreads list for threadend.
The timeout wasn't being correctly written before, actually.
2013-09-08 11:15:09 -07:00
Unknown W. Brackets
b03be16fa6 Refactor thread end/delete a bit. 2013-09-08 10:50:55 -07:00
Unknown W. Brackets
b7c845d40b Support a NULL out param for atrac3 decoding.
The PSP seems to silently accept it, maybe to skip data?
2013-09-08 09:56:38 -07:00
Unknown W. Brackets
f4bc5b1ec6 Return error in sceAtracDecodeData() on bad id.
Fixes #2428.
2013-09-08 09:56:16 -07:00
Unknown W. Brackets
b7a2a92ebe Improve sceAtracSetData() error handling. 2013-09-08 09:56:15 -07:00
Henrik Rydgård
430cfee9f3 Merge pull request #3684 from thedax/instantAntiAliasing
Win32: Let NewUI's Antialiasing option be instant so a game reboot isn't required.
2013-09-08 00:54:12 -07:00
Henrik Rydgård
2b2678beba Merge pull request #3686 from unknownbrackets/warnings
Warning fixes
2013-09-08 00:33:46 -07:00
Unknown W. Brackets
157b682344 Always use fastmem for sw/lw on SP. 2013-09-07 22:44:18 -07:00
Unknown W. Brackets
c3839a53e5 Fix some minor warnings. 2013-09-07 22:40:08 -07:00
Unknown W. Brackets
bbf714c361 Provide for GPU init failure, kill a warning. 2013-09-07 22:30:30 -07:00
The Dax
ac88cbd894 Let NewUI's Antialiasing option be instant so a game reboot isn't required. 2013-09-08 00:27:39 -04:00
Unknown W. Brackets
657f7f1a2d Improve DirectoryFileSystem's wide char handling. 2013-09-07 16:14:41 -07:00
Henrik Rydgård
203521678e Merge pull request #3679 from Kingcom/VirtDiscFix
Fix VirtualDiscFileSystem::GetDirListing
2013-09-07 15:26:25 -07:00
Kingcom
043c73f354 Fix linux version too 2013-09-08 00:22:30 +02:00
Kingcom
726297ea52 Fix VirtualDiscFileSystem::GetDirListing 2013-09-08 00:06:56 +02:00
Unknown W. Brackets
08b41df6a2 Change a few more log types. 2013-09-07 13:31:14 -07:00
Henrik Rydgard
8c88dff5a4 More log categories, use them (and existing ones). Improve log config. 2013-09-07 22:02:55 +02:00
Henrik Rydgard
324cde5a79 Let's actually use the log category mechanism. A first step. 2013-09-07 21:19:21 +02:00
Henrik Rydgard
c31ae0645f Add optional "DevMenu" in-game button for quick access to things like log settings 2013-09-07 20:54:51 +02:00
Unknown W. Brackets
1eb858602c Add io async wait callback handlers. 2013-09-07 11:22:48 -07:00
Unknown W. Brackets
d8d8d3b0ec Use a different wait type for async io. 2013-09-07 11:04:42 -07:00
Unknown W. Brackets
f35b164d11 Refactor wait verification a bit in kernel waits. 2013-09-07 10:54:00 -07:00
Unknown W. Brackets
46b52ca552 Wake up waiting threads on file delete. 2013-09-07 10:53:59 -07:00
Unknown W. Brackets
cddfd2f3b2 Allow separate threads to wait on async io. 2013-09-07 10:53:59 -07:00
Henrik Rydgård
8996bac23e Merge pull request #3631 from lioncash/master
Remove a redundant wcsncat call.
2013-09-07 08:45:49 -07:00
Henrik Rydgard
78d3ee3d6a Misc cleanup, mostly logging code 2013-09-07 13:01:19 +02:00
Henrik Rydgård
f24a7c83f5 Merge pull request #3636 from kaienfr/fix_recent_gamelist
Update recent games list & remove redundant recent games from ini file
2013-09-07 02:18:30 -07:00
Henrik Rydgard
7e37e183ed Wrap more adhoc functions 2013-09-07 11:06:28 +02:00
Henrik Rydgard
d21db0f852 Fix Xperia Play detection, hide touch controls on Ouya 2013-09-07 11:06:28 +02:00
Henrik Rydgard
3b323c4176 Add a bunch of empty adhoc functions 2013-09-07 01:53:51 +02:00
Henrik Rydgard
cc8e4cb8fe Split out sceNetAdhoc* into a separate file from sceNet. 2013-09-07 00:55:42 +02:00
Henrik Rydgård
3d198694dd Merge pull request #3616 from sum2012/patch-2
Fix Summon Night 5,when there is a save,make new game would crash
2013-09-06 08:05:40 -07:00
Unknown W. Brackets
a9a42b315c Fix a bad comparison, duh. 2013-09-06 01:13:55 -07:00
Unknown W. Brackets
c93268fdd3 Fix some minor warnings. 2013-09-06 01:13:45 -07:00
Unknown W. Brackets
0ff64ec7d6 Fix some initialization order warnings. 2013-09-06 01:13:27 -07:00
Unknown W. Brackets
dc05051696 Add more reporting for cpu instructions. 2013-09-05 23:27:51 -07:00
Unknown W. Brackets
efe92666fb Allow more cases in IsDelaySlotNiceVFPU(). 2013-09-05 23:24:31 -07:00
Unknown W. Brackets
96b4ef47e1 Add MIPS info flags for VFPU cc usage. 2013-09-05 23:19:17 -07:00
Unknown W. Brackets
9a048e9cf6 Don't assume GPRs can't be used with vfpu. 2013-09-05 23:12:14 -07:00
Unknown W. Brackets
e6f6564a32 Dumb typo. 2013-09-05 23:10:29 -07:00
kaienfr
701e1263f0 New update in code style & fix load function
The load function can not load all recent games list if the Key is skeeped as:
FileName0 = ...
FileName2 = ...
...

In this case, only FileName0 is loaded.
Now the function is fixed and load all list.
2013-09-05 18:45:41 +02:00
kaienfr
137df18a00 Update recent games list & remove redundant recent games from ini file 2013-09-05 18:23:28 +02:00