497 Commits

Author SHA1 Message Date
Unknown W. Brackets 2f69378bf6 Return the moduleId in sceKernelUnloadModule().
Final Fantasy 4 very clearly requires this.
2013-05-25 21:07:41 -07:00
Unknown W. Brackets 2304e9253e Make sure not to use invalid module start params.
If there's a 0, those parameters are not likely valid.
2013-05-25 15:15:29 -07:00
Henrik Rydgård b9c21d32f0 Merge pull request #1894 from CPkmn/kernel
Improve sceKernelStartModule handling
2013-05-24 07:16:12 -07:00
CPkmn b9a72b99e2 Update sceKernelModule.cpp 2013-05-24 08:06:31 -06:00
Unknown W. Brackets b4eec4dca7 Perform the actual variable relocations, hurray. 2013-05-24 01:45:08 -07:00
Unknown W. Brackets 8d71f33aae Keep track of imported/exported vars.
Not yet actually linked up, though.
2013-05-24 00:03:39 -07:00
Unknown W. Brackets fe4bd8f66c Add more logging to elf loading, cleanup. 2013-05-23 23:41:10 -07:00
CPkmn d051e25b70 Update sceKernelModule.cpp 2013-05-23 10:25:13 -06:00
CPkmn f83e19aa2d Update sceKernelModule.cpp 2013-05-23 01:36:23 -06:00
CPkmn 1150b794bf Improve sceKernelStartModule handling
Fixes 'bogus priority' errors (and maybe more).
Tested on God Eater Burst and fixed its "bogus priority". I haven't found any games this breaks.
2013-05-23 00:31:30 -07:00
Unknown W. Brackets 8580780194 Add more unknown syscalls from reporting. 2013-05-22 01:19:25 -07:00
Unknown W. Brackets d45104afb6 Separate the func import count from the var count.
Still doesn't actually load the variables imports, but at least it
won't skip a bunch of funcs and break even worse.
2013-05-21 23:34:28 -07:00
Unknown W. Brackets afc24a54e2 Ignore start module params that are 0.
Pretty sure this is why "bogus priority 0" is being logged.
2013-05-21 00:57:33 -07:00
Unknown W. Brackets 5fe38f525d Link dynamically sized exports correctly as well. 2013-05-20 23:39:43 -07:00
Unknown W. Brackets ed698692f7 Respect the entry size in ELF linking.
Hopefully fixes #1862.
2013-05-20 08:54:03 -07:00
Unknown W. Brackets 2d1acce701 Add reporting to module linking, something wrong. 2013-05-19 22:12:40 -07:00
Unknown W. Brackets 86ce95a658 Add some syscall entries from reporting. 2013-05-19 22:12:38 -07:00
Unknown W. Brackets ded3fb5e12 Add reporting to a bunch of unimpl functions.
Also some comment/logging fixes along the way.
2013-05-19 22:12:37 -07:00
mattweb28 1b87f5667f HLE needs to be reset after kernel shutdown 2013-05-14 20:37:20 +08:00
Henrik Rydgard cfc23f59de Show an error message instead of crashing on demos we don't have keys for 2013-05-09 13:14:19 +02:00
Henrik Rydgard b9f45e4530 Add stub framework for .pbp demos (nowhere near working). Fix an OSK crash. 2013-04-27 23:16:51 +02:00
Unknown W. Brackets 4efe58ad34 Oops, remove debugging line. 2013-04-11 00:52:37 -07:00
Unknown W. Brackets 5aceceecd3 Remove global module id var hacks.
Nothing needs them anymore.
2013-04-10 21:16:31 -07:00
Unknown W. Brackets acac847af2 Cleanup sceKernelGetModuleIdByAddress().
Actual firmware seems to accept any address in the range, and also
correct the error result.

Now people won't think this is broken anymore.
2013-04-10 21:03:43 -07:00
Henrik Rydgard 8b6eea7df4 Load icon and bg from PBP files. 2013-04-08 21:46:54 +02:00
Unknown W. Brackets 8f911a0ebe Add a setting to autosave the symbol map.
And move it into system, needs to be after the coreParameter too.
2013-03-30 22:28:55 -07:00
Unknown W. Brackets e4223dbcb0 Simplify adding report messages, add a bunch more. 2013-03-26 00:54:00 -07:00
Henrik Rydgard 46be32e41f Log the ret value on decryption fail 2013-03-25 00:18:10 +01:00
Henrik Rydgard e8215b1e10 Report corrupt elfs (if reporting enabled). Some stubs. 2013-03-25 00:08:46 +01:00
Henrik Rydgard 60d7ac3543 Stubs and error checks. Fix a bad NID in sceUmd. 2013-03-24 22:41:42 +01:00
Henrik Rydgard 3f935fd255 More elf loader crashfix 2013-03-24 22:21:49 +01:00
Henrik Rydgard 752d86b037 Crashfix in elf loader 2013-03-24 22:06:57 +01:00
Unknown W. Brackets d2be407223 Make HLE func delayed results more generic. 2013-03-09 11:42:15 -08:00
Unknown W. Brackets eb34f416d9 Reschedule/delay after sceKernelLoadModule() a bit.
Fixes Twin Brave demo, at least.
2013-03-07 23:18:33 -08:00
raven02 1fd2e5aadb Add optionAddr to sceKernelLoadModule 2013-03-07 19:43:17 +08:00
raven02 691bc2df3f Update sceKernelGetModuleIdByAddress 2013-03-07 19:29:49 +08:00
oioitff f27cc58f4b use module_start_func instead of entry_addr if entry_addr is 0
, this fixes Dissidia Final Fantasy 012. Maybe this is not a good fix.
2013-03-03 17:11:05 +08:00
Unknown W. Brackets 62ab4b7f51 More signed compare warnings. 2013-03-02 15:34:16 -08:00
Henrik Rydgard 7ea1926aa7 Blacklist the ssl library too 2013-02-04 00:54:50 +01:00
Henrik Rydgård 7d6c113a97 Merge pull request #582 from raven02/master
Add few new stubs seen from Dragon Ball Z Tenkaichi Tag Team
2013-02-03 13:15:32 -08:00
Henrik Rydgard 7fbf914821 Another bites the dust (blacklisted modules) 2013-02-03 22:13:42 +01:00
raven02 24c720892c Add few stubs seen from Dragon Ball Z Tenkaichi Tag Team 2013-02-04 03:19:55 +08:00
Unknown W. Brackets f3efa3225d Blacklist some network modules unlikely to work. 2013-02-02 23:40:44 -08:00
Unknown W. Brackets 9611e52c01 Don't follow -1 entry points, they're bad mojo. 2013-02-02 16:22:54 -08:00
Unknown W. Brackets 31eeb3d50b Make sceKernelStartModule() do something.
Doesn't work right, but gets somewhere?
2013-02-02 16:22:33 -08:00
Unknown W. Brackets ee17699e09 Fix a logic error in module load validation. 2013-01-31 00:02:52 -08:00
Unknown W. Brackets 72d4eb4d06 Blacklist the sceMpeg module, won't do good things... 2013-01-28 02:16:22 -08:00
Unknown W. Brackets 862c88d61a More warning fixes, switches and printfs, etc.
This time ones not reported by Visual Studio.
2013-01-19 18:32:37 -08:00
Unknown W. Brackets 140fd171ef Fix some 64-bit type conversion warnings. 2013-01-19 13:48:20 -08:00
YaPeL 9cde301f4d Wrap functions on HLETables 2013-01-12 15:17:35 -03:00