Commit Graph
120 Commits
Author SHA1 Message Date
Unknown W. Brackets 933c8abb55 Check kernel object types when looking up ids.
Some games misuse it, need to return an error.
2013-06-18 23:54:29 -07:00
Unknown W. Brackets 2d769384e4 sceKernelLoadExec(.../BOOT.BIN) loads EBOOT.BIN.
Fixes #2289, crash when pressing R+L+Start+Select in Final Fantasy 3.
2013-06-15 21:30:48 -07:00
Unknown W. Brackets 2ab16f13b1 If __KernelLoadExec() fails, halt emulation.
Otherwise, we have no current thread, nothing can work.
2013-06-15 21:22:28 -07:00
Henrik Rydgard 96a15b893c Workaroud for homebrew loading modules from flash0:/kd/ 2013-06-11 11:48:45 +02:00
Henrik Rydgard 2afbc94734 Turn off RTTI, simulate it where needed. 2013-06-09 13:02:16 +02:00
Henrik Rydgard 2e7b971895 Check magic number to reject SFO files specifically from being loaded as modules. Should fix the strange Soul Calibur issue in issue #2063. 2013-06-05 19:59:16 +02:00
Unknown W. Brackets 3468d7ddd9 Fix reporting typo. 2013-06-02 10:27:16 -07:00
Sacha b39a572043 Buildfixes.
Fix C++11 usage.
Remove redundancy.
Fix st_*time re-usage.
2013-06-02 13:26:39 +10:00
Unknown W. Brackets bae5f9654f Don't forget to mark a module as started w/o entry. 2013-06-01 09:39:15 -07:00
Unknown W. Brackets cc647ed910 Add logging of more relocation errors. 2013-06-01 09:29:38 -07:00
Unknown W. Brackets a42f80ed55 Add some logging for duplicate HI16/LO16 relocs. 2013-06-01 09:12:31 -07:00
Henrik Rydgård 6db586e12f Merge pull request #2015 from tpunix/master
Module load bug fix
2013-06-01 08:25:08 -07:00
tpu 934196109e WriteVarSymbol bug fix 2013-06-01 22:43:23 +08:00
Unknown W. Brackets 06c19622d5 Fix some init/type warnings. 2013-05-31 23:14:29 -07:00
Henrik Rydgård e5e2636d1d Merge branch 'patch-6' of https://github.com/sum2012/ppsspp into sum2012-patch-6 2013-05-31 18:36:50 +02:00
sum2012 c44e4de7e6 Fix sceKernelModule
Fix Army Of Two 40th Day
https://github.com/hrydgard/ppsspp/issues/1919
Thanks unknownbrackets , JPCSP r3181
2013-05-31 07:36:06 +08:00
tpu 40926e5d5b make sceKernelLoadModuleNpDrm works. sprx can be load now. 2013-05-29 10:39:28 +08:00
Unknown W. Brackets 1beb19f827 Clear the debug symbol map on shutdown.
Instead of polluting the next game.
2013-05-26 16:29:21 -07:00
Unknown W. Brackets 71cd80b64d Remove comment. 2013-05-26 11:45:49 -07:00
Unknown W. Brackets 0b2a112212 Initial implementation of sceKernelStopModule().
Not perfect but should be functional.
2013-05-26 11:30:22 -07:00
Unknown W. Brackets 0d828554bc Add a wait type for modules to handle return right. 2013-05-26 10:54:11 -07:00
Unknown W. Brackets 727b3b4127 Get rid of the "root" return hack. 2013-05-26 10:36:18 -07:00
Unknown W. Brackets c34854ead3 Use a custom RA for module funcs. Not used yet.
But it will be.
2013-05-26 10:28:08 -07:00
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