Commit Graph

182 Commits

Author SHA1 Message Date
Henrik Rydgård
868a3d6dd5 Load unknown.png for ELFs masquerading as PBP 2013-12-11 14:22:25 +01:00
Henrik Rydgård
4b605045ea Merge pull request #4767 from unknownbrackets/moduleinfo
Return much more correct values for module info
2013-12-09 01:02:59 -08:00
Unknown W. Brackets
1f32720d8f Return much more correct values for module info.
sceKernelQueryModuleInfo() was just completely wrong before.
2013-12-09 00:45:54 -08:00
Unknown W. Brackets
2b10fbae1e Small tweaks to rel2 logging. 2013-12-08 22:34:36 -08:00
Unknown W. Brackets
0636a65ad9 Use ReadEntireFile() a few more places.
This fixes one or two minor memory leaks.
2013-12-08 12:02:37 -08:00
Henrik Rydgard
32f479b0a6 Assorted log spam reductions.
Also let Java know of some important events. Not used for anything yet.
2013-12-04 17:43:00 +01:00
Unknown W. Brackets
eac8b1a84d Scan for functions even without a .text section.
It's possible this may be wrong, but every game I've seen loads the funcs
in this area.  Sometimes there's data after the funcs before the stubs,
but it's better than no funcs.
2013-12-01 19:43:40 -08:00
Kingcom
5844d0107b Rewrite SymbolTable 2013-11-27 13:33:30 +01:00
Unknown W. Brackets
33d6ee77cb Add a some more defines for ELF values.
Mostly flags and stuff.
2013-11-17 02:14:35 -08:00
Henrik Rydgard
6be534ca18 Merge branch 'warnings' of https://github.com/unknownbrackets/ppsspp into unknownbrackets-warnings
Conflicts:
	Core/ELF/ElfReader.cpp
2013-11-15 19:11:51 +01:00
Henrik Rydgard
77ef79892e Remove wrong alignment check on relocations. Add a comment. 2013-11-15 18:47:27 +01:00
Unknown W. Brackets
b9feae3b62 Don't require 32-bit relocs to be aligned.
Also, report these situations more, who knows what games they could break.
2013-11-15 08:19:29 -08:00
Henrik Rydgard
5e3fd4f1fa Turn down reloc logging a bit more 2013-11-14 23:07:22 +01:00
Henrik Rydgard
003cb41db5 Oops, that was too much logging on startup. 2013-11-14 12:32:59 +01:00
Henrik Rydgard
9d4ece0f58 Robustify the ELF loader a little - it didn't like unaligned addresses.. 2013-11-14 11:44:14 +01: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
Kingcom
7f1fca8e74 Check e_ident of elf header 2013-10-05 10:05:55 +02:00
Unknown W. Brackets
8ccd3773d9 Open files using wide functions on win32.
Fixes #3432.
2013-08-27 00:28:46 -07:00
adrian17
06a015983a Fixed some doubled semicolons 2013-08-25 19:43:18 +02:00
Unknown W. Brackets
109ad17ac6 Use a typesafe struct for opcodes.
Also, correctly read delayslots using Read_Instruction on ARM.
2013-08-24 15:36:24 -07:00
Unknown W. Brackets
083fa71c1a Fix 26-bit reloc truncation (was 30 bit...)
Hopefully didn't affect anything?
2013-08-22 23:21:54 -07:00
Unknown W. Brackets
a217cefa11 Tone down some less needed reporting. 2013-08-21 08:40:29 -07:00
Unknown W. Brackets
c8716d9a02 Fix a few minor typos + small reporting change. 2013-08-12 23:02:39 -07:00
Henrik Rydgard
0dac2b4783 Update native, minor UI stuff and cleanups 2013-08-10 23:04:23 +02:00
Henrik Rydgård
49a3b71f60 Merge pull request #3006 from Ced2911/prx_endian
fix prx decryption
2013-07-30 11:22:07 -07:00
Ced2911
ae358d2898 fix prx decryption 2013-07-30 19:36:07 +02:00
Henrik Rydgard
30e18e9344 Log level changes 2013-07-30 01:09:12 +02:00
Unknown W. Brackets
0b5bdeb1d3 Fix some compile failures under big endian. 2013-07-28 21:04:17 -07:00
Unknown W. Brackets
d9d66c46e9 Avoid a possibly uninitialized var. 2013-07-26 22:50:56 -07:00
Unknown W. Brackets
ae5851a393 Use _le typedefs in elf reading. 2013-07-25 08:04:35 -07:00
tpunix
94ef18025f bugfix of LoadRelocations2 2013-07-16 18:17:12 +08:00
tpunix
aae16cd732 improve of prsDecrypt2. support decrypt type 6. 2013-07-08 12:41:08 +08:00
Henrik Rydgard
604ad0181b Merge branch 'new-ui'. Still incomplete. Enable by setting NewUI=True in ppsspp.ini
Conflicts:
	UI/MenuScreens.cpp
2013-06-27 16:28:38 +02:00
Henrik Rydgard
645e8a7705 More NewUI, bugfix in ParamSFO where strings were created to include the trailing zero. 2013-06-09 12:41:12 +02: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
cc647ed910 Add logging of more relocation errors. 2013-06-01 09:29:38 -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
tpu
cf8309b783 add relocate type 0x700000a1 support 2013-05-31 18:34:47 +08: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
Unknown W. Brackets
12f4bf3664 Buildfix for Linux. 2013-04-09 00:05:05 -07:00
Unknown W. Brackets
f5642f11af Buildfix. 2013-04-08 23:01:54 -07:00
Henrik Rydgard
8b6eea7df4 Load icon and bg from PBP files. 2013-04-08 21:46:54 +02:00
Henrik Rydgard
7425532e99 Move non-Android specific stuff from android/jni to /UI.
Move source_assets one level up, too.
Also, start prototyping GameInfoCache, you'll see what it's for soon...
2013-03-30 15:46:26 +01:00
Henrik Rydgard
60189663db ELF relocation: check that sectionToModify >= 0. 2013-03-23 13:26:55 +01:00
Unknown W. Brackets
363d1dbe19 Fix some misc. warnings. 2013-02-18 08:44:59 -08:00
Xele02
aa01751589 Save encryption. Load/Save encrypted/decrypted save
RE of Chnnlsv lib
Correct size bug in kirk
2013-01-29 00:11:02 +01:00
Unknown W. Brackets
140fd171ef Fix some 64-bit type conversion warnings. 2013-01-19 13:48:20 -08:00
Henrik Rydgard
8277d901e2 Smash some memory leaks 2013-01-13 16:46:45 +01:00
Arthur Blot
062b2320a2 Load ELFs at the correct place 2013-01-04 20:10:41 +01:00
Henrik Rydgard
a842c46208 Some operations were doing things in 16-byte blocks. Adjust some buffer sizes to allow for this. Also remove a global. 2013-01-03 22:54:40 +01:00
Henrik Rydgard
98fd202730 Constify a couple of globals 2013-01-03 12:05:16 +01:00
Henrik Rydgard
883f61e3dd Savestates: Add quicksave/quickload. Add Android UI for savestates. All single slot for now. 2013-01-02 21:05:02 +01:00
Arthur Blot
e4ce0592c1 Make previous code cleaner 2013-01-02 19:42:15 +01:00
Arthur Blot
1519600441 Implemented sceKernelLoadModuleByID, better logs 2013-01-02 19:42:15 +01:00
Unknown W. Brackets
5d892e005d Let ParamSFO always own its pointers. 2013-01-02 01:37:03 -08:00
Unknown W. Brackets
f36a4b3a12 Fix a crash when SAVEDATA_FILE_LIST is invalid.
I think that's what caused this anyway.
2013-01-01 19:46:53 -08:00
Xele02
a23ca01f16 Mode 8 Correction
Modif for save encryption in Param.sfo and export save filename and
encode key in a file
2012-12-28 11:39:52 +01:00
Arthur Blot
8ed8f57a7f Hopefully fix all the ELF loading issues 2012-12-28 01:07:19 +01:00
Arthur Blot
a7af13b523 Implemented classic segment relocations 2012-12-27 21:32:12 +01:00
Henrik Rydgård
875f3569ee Don't let DecryptPRX1 scramble the keys in-place (!), make a copy
instead. Could now make all the keys const, as they should be.
2012-12-25 09:02:02 +01:00
raven02
49e9a5738c Put back byte array to stack and increase buffer size 2012-12-25 09:06:27 +08:00
Xele02
ab71c3d1d0 Save unencrypted PARAM.SFO 2012-12-14 20:55:57 +01:00
Henrik Rydgard
4393dc02a6 Buildfix 2012-12-01 12:36:52 +01:00
Henrik Rydgard
ab4482a0a4 Respect param len in PARAM.SFO parser 2012-12-01 10:33:05 +01:00
Henrik Rydgard
1189da826c Also get TITLE from PARAM.SFO 2012-11-30 22:34:08 +01:00
Henrik Rydgard
a5e35ad6d9 Parse PARAM.SFO to get the disc ID, show in title bar on Windows 2012-11-30 22:32:51 +01:00
Henrik Rydgard
7720dc3f60 Various warning, logging, jit fixes 2012-11-17 19:56:28 +01:00
Henrik Rydgard
3e207a1490 Fake netconf dialog, etc 2012-11-06 19:22:14 +01:00
Henrik Rydgard
91eeed6408 Hack to prevent stack checker from alerting 2012-11-06 15:46:00 +01:00
Arthur Blot
6a1af73b37 Better module blacklisting, export fix 2012-11-05 18:03:02 +01:00
Arthur Blot
d0542e3531 Fixed a few issues related to encrypted PRXes 2012-11-05 16:56:40 +01:00
Henrik Rydgard
ac910d7e75 Fix Windows and Android builds. 2012-11-05 15:42:21 +01:00
Arthur Blot
5b5618d32d Added ~PSP decryption system using kirk-engine 2012-11-05 14:59:38 +01:00
Henrik Rydgard
57026bee37 Attempt to fix bogus size calculation in elf loader 2012-11-05 13:35:29 +01:00
Henrik Rydgard
b214a1a1da Revert "Better wrapper system, and fixed warnings"
This reverts commit a00b1855cb.

Conflicts:

	Core/HLE/FunctionWrappers.h
	Core/HLE/sceCtrl.cpp
	Core/HLE/sceKernelModule.cpp
2012-11-05 10:05:09 +01:00
Henrik Rydgard
6bed1afb72 Merge branch 'master' of https://github.com/artart78/ppsspp into artart78-master 2012-11-04 23:59:26 +01:00
Henrik Rydgard
64cc573703 Switch to "GPL 2.0 or later" for various reasons. I wrote most of the code I imported from Dolphin (which is GPL2-but-not-later), so it should be OK. 2012-11-04 23:24:00 +01:00
Arthur Blot
9be8be6b7f Implemented sceKernelLoadModule()
Note that it wasn't tested because all the games I tested had other problems (already implemented modules, encrypted modules, using different functions etc).
But code looks good so it'd probably need few (no?) fixes.
2012-11-04 19:01:20 +01:00
Arthur Blot
a00b1855cb Better wrapper system, and fixed warnings 2012-11-04 15:08:23 +01:00
Henrik Rydgard
4f7ad15758 Add snapshot of the whole source code. 2012-11-01 16:19:01 +01:00