Unknown W. Brackets
f6ad90fab8
Module: Correctly handle modules with -1 entry.
...
It should not try to run, options or not.
2021-03-14 16:52:48 -07:00
Henrik Rydgård
2f3bc2d373
Merge pull request #14056 from unknownbrackets/debugger-mem
...
Track memory allocations and writes for debug info
2021-02-21 10:18:11 +01:00
aliaspider
9a3e5879bb
Global: Correct many endian types and casts.
2021-02-18 22:25:24 -08:00
Unknown W. Brackets
9ead436069
Debugger: Specifically tag relocations.
...
This is useful info.
2021-02-15 15:01:23 -08:00
Unknown W. Brackets
ca7d127adc
Debugger: Notate more cases of memory clears.
2021-02-15 15:01:23 -08:00
Unknown W. Brackets
f7740edc6d
Debugger: Add more metadata for memory usage.
2021-02-15 15:01:21 -08:00
Unknown W. Brackets
1b00da2f3a
Common: Sign extend w/func not chained casts.
...
Should be clearer to read and easier to get right.
2021-01-31 01:25:52 -08:00
Henrik Rydgård
ac6715baa9
Improvements to crash screen.
...
Part of #13299
Use the new tests/cpu/crash tests in pspautotest to test this code
(manually).
2020-12-19 19:48:24 +01:00
shenweip
807de037bb
IMP sceKernelFindModuleByUID and sceKernelFindModuleByName.
2020-10-27 20:48:34 +08:00
Henrik Rydgård
4f43cff5ca
Move fileutil, net, image loaders, ui to Common. ( #13506 )
...
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing
Let's also move net while we're at it.
Move the ZIM/PNG loaders over to Common.
Move the UI framework into Common
iOS buildfix
* Buildfix
* Buildfixes
* Apple buildfix
* This typo again..
* UWP buildfix
* Fix build of PPSSPPQt, such as it is (it's not in good condition...)
* Guess what? Another buildfix.
2020-10-04 20:48:47 +02:00
Henrik Rydgård
989e353482
Common.h shouldn't include Log.h.
...
Buildfixes
More buildfixes. Move JSON code to common.
2020-10-04 11:42:14 +02:00
Henrik Rydgård
b0365bd6ee
GE dump loading: Try to use the correct GameID so compat.ini flags apply.
2020-08-30 11:48:58 +02:00
Henrik Rydgård
b652f62d19
SavedataParam: Be careful with const char* to string. Might help #13187
2020-08-26 22:17:42 +02:00
Henrik Rydgård
0586338d5e
Add some comments and const-correctness, and a pointer type fix, to the "semaphore" crypto stuff.
2020-08-01 23:11:48 +02:00
Henrik Rydgård
5f57d4775f
Add some excessive null checks to GameScreen::render(), might fix the crash seen in #13057
2020-06-29 22:47:34 +02:00
Henrik Rydgård
e2845363e9
Async I/O: Don't delay on close. Fixes #12549 (MGS:PW crash).
...
Also sneak in a small change in logging.
2020-01-12 18:42:28 +01:00
Davee Morgan
4c9e7b7424
PRX Decryption: add pauth decryption
2020-01-11 20:43:38 +00:00
Davee Morgan
1d7bbdd006
PRX Decryption: add support for type 0/1/2/5/6 decryption
2020-01-11 15:00:07 +00:00
Unknown W. Brackets
e21753bc93
Debugger: Add assembler to build.
2018-06-06 05:59:24 -07:00
Henrik Rydgård
eb73cc23cd
Some log level changes.
2018-02-26 10:48:29 +01:00
Unknown W. Brackets
0e2a586c1b
Global: Fix some type comparison/shadow warnings.
2018-02-11 07:03:23 -08:00
Unknown W. Brackets
30b2d05bac
Module: Correct detection of executable sections.
2018-01-02 21:53:13 -08:00
Henrik Rydgård
6a1fa728d8
Remove Globals.h
2017-08-31 17:15:22 +02:00
Henrik Rydgård
42bdf3e19b
ELF loading potential out-of-bounds fix
2017-06-07 00:22:37 +02:00
Henrik Rydgård
b1b3b7c9d7
Refuse to load truncated ~PSP files.
2017-06-06 23:41:23 +02:00
Unknown W. Brackets
41b485aa0a
Core: Refactor repeating disc id homebrew code.
2017-06-03 15:29:08 -07:00
LunaMoo
5e0f8141d2
Corrections, some %i->%d around other code as well.
2017-05-30 13:52:29 +02:00
LunaMoo
939b26475d
Fix a bunch of emu features for Homebrew by better identification.
2017-05-30 12:20:29 +02:00
Henrik Rydgård
9ce874d2cf
Typo fix, MOBILE_DEVICE
2017-05-25 00:31:00 +02:00
Henrik Rydgård
875e7f0372
Throw in a few more checks in ElfReader
2017-05-24 20:45:29 +02:00
Henrik Rydgård
e981139e71
Some constification in ElfReader, sanity checks in sceKernelMutex. Might help #9718 a little bit, though probably not the Elf issue (and if the workarea pointer is bad, it's not likely the game will limp along for much longer)
2017-05-24 10:52:19 +02:00
Henrik Rydgård
440e72d250
Clean up among the logs. Remove MASTER_LOG.
2017-03-06 13:10:23 +01:00
Florent Castelli
373db56a16
blackberry: Remove!
2016-10-11 17:40:32 +02:00
Henrik Rydgard
853ea02201
Minor cleanups in elfreader
2016-09-18 23:11:41 +02:00
Henrik Rydgard
4197148dc4
Add some paranoid checks hoping to fix crashes reported in Google Play developer console.
2016-04-09 18:27:35 +02:00
Unknown W. Brackets
9b91713308
Right, Symbian doesn't have vector.data().
2015-12-24 13:21:03 -08:00
Unknown W. Brackets
f3df6b307f
Use a FileLoader for PBPs.
...
Improves consistency, caching, etc.
2015-12-24 12:21:40 -08:00
Unknown W. Brackets
a53f0360f3
Use a less leak prone interface for PBP reading.
2015-12-24 10:20:27 -08:00
Unknown W. Brackets
d273deedeb
Use MEMSIZE SFO param to detect 64MB homebrew.
...
Now, use 32MB for normal games even in PSP-2000 mode, which is how real
firmware behaves.
2015-12-23 15:16:48 -08:00
Henrik Rydgard
b998131581
Move the symbol map to the heap, deallocate it when no game is running.
2015-10-31 23:01:19 +01:00
Henrik Rydgard
bb57aa69d1
Somewhat better check to prevent some homebrew from loading into kernel memory.
2015-07-02 23:07:07 +02:00
Henrik Rydgård
04ce8a63e5
Workaround issue where some homebrew (like moppi-flower) would erroneously load into kernel ram where it won't fit
2015-07-02 15:55:09 +02:00
Chin
22593cddcc
Use pre-increment instead of post-increment for iterators, and use auto for some iterators
2015-03-01 16:55:47 +01:00
Unknown W. Brackets
72f8f9addd
Check for errors carefully in PBP loading.
...
Just in case.
2015-01-19 08:31:41 -08:00
Unknown W. Brackets
8d68c055cc
Clear SFO data on game quit.
...
Saves the correct MENU after game exit. Seems more sane.
2014-12-20 08:29:56 -08:00
chinhodado
422764e077
Remove an unnecessary memcpy
2014-12-14 23:59:55 -05:00
Lioncash
f830d5dec7
Core: Mark some functions as const
2014-12-03 15:16:11 -05:00
Unknown W. Brackets
71e8c0f6e0
Sum all .bss* sections when counting bss size.
2014-08-17 14:25:58 -07:00
Unknown W. Brackets
3ccc0d1e47
Don't count strings as text in module info.
2014-08-17 14:25:57 -07:00
Unknown W. Brackets
892980ada1
Blackberry buildfix.
2014-08-17 14:25:56 -07:00
Unknown W. Brackets
337a8553aa
Add module name to ELF allocations.
...
Makes debugging it easier.
2014-08-17 14:25:56 -07:00
Unknown W. Brackets
7c37d64717
Load kernel modules into kernel memory.
...
This way they don't eat up user memory space.
2014-08-17 14:25:55 -07:00
Unknown W. Brackets
1d310ad8bb
Allocate module memory from top/bottom per request.
2014-08-17 14:25:54 -07:00
Unknown W. Brackets
4a94a30ba6
Calculate the module info data/text/bss size.
2014-07-13 19:53:00 -07:00
Unknown W. Brackets
1c7873e2f5
Fill the module info segment addresses and sizes.
2014-07-13 19:16:25 -07:00
ppsspp213
8e18d0ff94
Update PrxDecrypter.cpp
...
Unknown Key ADF305F0
2014-06-24 15:48:59 +01:00
Unknown W. Brackets
ec94498342
When scanning or relocating, check replacements.
...
Just to make sure we don't wrongly detect the length or unresolve a var
wrong etc.
2014-06-23 08:18:56 -07:00
Unknown W. Brackets
a6436d04f5
Support PIC0 in PBP files.
2014-06-21 18:29:54 -07:00
Unknown W. Brackets
4706876809
Add memchecks for ELF loading.
...
Helps in games that use modules.
2014-05-04 01:22:57 -07:00
lioncash
b9886942a7
Fix some vertical alignments in misc Core source files.
2014-03-03 11:16:53 -05:00
Unknown W. Brackets
ed2417731a
Improve error handling when PARAM.SFO can't read.
2014-02-15 10:34:39 -08:00
sum2012
8cd5720b0b
Remove report
2014-02-07 04:31:51 +08:00
sum2012
1c3adb42f2
Fix Diabolik: The Original Sin crash
...
This commit orignal want fix #3326 by @unknownbrackets
2014-02-06 20:40:18 +08:00
Unknown W. Brackets
e569bb6862
Missed one, try to fix Blackberry too.
2013-12-30 21:52:09 -08:00
Henrik Rydgård
e5e17fbc6e
More include cleanup. Hoping for very slightly faster compile times..
2013-12-30 10:49:05 +01:00
Henrik Rydgård
00c32ddadb
Mostly get rid of including "Globals.h"
2013-12-30 10:17:11 +01:00
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