Commit Graph
14343 Commits
Author SHA1 Message Date
Henrik Rydgård bbdc997913 If we are reporting a small memstick size, but data is bigger, lie.
Should fix #13829
2020-12-29 13:23:15 +01:00
Henrik Rydgård c5d90a7e50 Merge pull request #13831 from unknownbrackets/debugger
Debugger: Tweaks to memory read/write APIs
2020-12-29 10:51:02 +01:00
Unknown W. Brackets 06f8ab5a49 SaveState: Make event restoring more obvious.
We still must restore all events, but everything can be taken care of
during the save state load.
2020-12-28 13:29:19 -08:00
Unknown W. Brackets 3325a27811 Debugger: Cleanup some syntax. 2020-12-28 11:13:54 -08:00
Unknown W. Brackets b5a6693019 Debugger: Add helper to read strings.
This is common, so let's expose as an API.
2020-12-28 11:13:26 -08:00
Unknown W. Brackets 7e5052bc9e Debugger: Add API to read/write chunks of memory.
Using base64 at this point to keep JSON.
2020-12-28 10:30:58 -08:00
Unknown W. Brackets f19d957c42 Debugger: Cleanup memory.read/write validation.
Required parameters fail automatically, better to keep the error
consistent.  This was sending two errors.

Additionally, don't allow it when no game is started yet.
2020-12-28 09:31:30 -08:00
Unknown W. Brackets 589d83d4da http: Prevent assert on bad websocket data. 2020-12-28 09:30:36 -08:00
AdamN 8d2fdfc739 Merge pull request #13826 from ANR2ME/adhoc
Using MSG_TRUNC along with MSG_PEEK as a precaution of a possible buffer overflow when peeking recv buffer
2020-12-28 21:11:37 +07:00
shenweip a174390c95 Corrects the calculation of the return value when the callback of RingbufferPut returns a negative value. 2020-12-28 10:38:27 +08:00
ANR2ME a2a164b228 Using MSG_TRUNC along with MSG_PEEK as a precaution of a possible buffer overflow when peeking recv buffer. 2020-12-28 04:30:32 +07:00
Jan Beich 901c3c53de Instance: add missing headers more POSIX systems
Core/Instance.cpp:90:56: error: use of undeclared identifier 'PROT_READ'
        InstanceInfo *buf = (InstanceInfo *)mmap(0, BUF_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, hIDMapFile, 0);
                                                              ^
Core/Instance.cpp:90:68: error: use of undeclared identifier 'PROT_WRITE'
        InstanceInfo *buf = (InstanceInfo *)mmap(0, BUF_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, hIDMapFile, 0);
                                                                          ^
Core/Instance.cpp:90:80: error: use of undeclared identifier 'MAP_SHARED'
        InstanceInfo *buf = (InstanceInfo *)mmap(0, BUF_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, hIDMapFile, 0);
                                                                                      ^
Core/Instance.cpp:91:13: error: use of undeclared identifier 'MAP_FAILED'
        if (buf == MAP_FAILED) {
                   ^
Core/Instance.cpp:147:37: error: use of undeclared identifier 'O_CREAT'
        hIDMapFile = shm_open(ID_SHM_NAME, O_CREAT | O_RDWR, 0);
                                           ^
Core/Instance.cpp:147:47: error: use of undeclared identifier 'O_RDWR'
        hIDMapFile = shm_open(ID_SHM_NAME, O_CREAT | O_RDWR, 0);
                                                     ^
Core/Instance.cpp:185:3: error: use of undeclared identifier 'shm_unlink'
                shm_unlink(ID_SHM_NAME);     // If program exited or crashed before unlinked the shared memory object and it's contents will persist.
                ^
2020-12-27 05:25:05 +00:00
Jan Beich 7c5b6fc320 FileSystems: add missing header
Core/FileSystems/FileSystem.h:102:5: error: field has incomplete type 'tm'
        tm atime{};
           ^
/usr/include/wchar.h:111:8: note: forward declaration of 'tm'
struct tm;
       ^
2020-12-27 05:25:05 +00:00
Henrik Rydgård 1ba290a454 Merge pull request #13817 from hrydgard/range-culling-compat
Split the DepthRangeHack compat setting into itself and DisableRangeCulling
2020-12-26 21:30:27 +01:00
Henrik Rydgård 16f629df3e Split the DepthRangeHack compat setting into itself and DisableRangeCulling
Most of our uses of DepthRangeHack was just to get DisableRangeCulling anyway -
and we don't want that on when not needed.

Also disables range culling for Splinter Cell Essentials (see #13035)

We really need to understand range culling better. This is a "ship hack" for 1.11.
2020-12-26 19:56:49 +01:00
Henrik Rydgård 990c9650da Merge pull request #13802 from sum2012/mpeg_warmup
Mpeg: Add warm up staff
2020-12-26 17:44:55 +01:00
Henrik Rydgård a13b4f751a Merge pull request #13814 from unknownbrackets/http-minor
http: Treat buffer full flush correctly
2020-12-26 15:10:22 +01:00
Unknown W. Brackets fd1807b4b9 http: Wait less time for IPv6 if IPv4 succeeds.
Should really make these requests asynchronous...
2020-12-25 22:24:51 -08:00
ANR2ME b10797db95 Fixed an issue where sometimes a player unable to join a host on Warriors Orochi 2 (should also fix similar issue on other games that use PDP/UDP on Windows) 2020-12-25 00:27:35 +07:00
ANR2ME a20567222a Close the port immediately when closing a socket. 2020-12-25 00:23:44 +07:00
Henrik Rydgård 98e82c5c63 Merge pull request #13764 from shenweip/savedata-date
Savedata:Fixes incorrect date of savedata.
2020-12-23 21:01:27 +01:00
Henrik Rydgård 35ca3714e3 Revert "Cleaner exit on Windows. Will hopefully help #13325"
This reverts commit 92e648b73d.

Fixes #13796
2020-12-23 14:33:10 +01:00
sum2012 a5bd77061b Typo
Thanks @shenweip
2020-12-23 19:52:37 +08:00
sum2012 0572423e2b Fix Grand Theft Auto - Vice City Stories 2020-12-23 06:22:30 +08:00
sum2012 d56e23ec24 Mpeg: Add warm up staff
fix #13527
2020-12-22 23:39:41 +08:00
Henrik Rydgård 52c6169a59 Merge pull request #13241 from ANR2ME/openpsid
Added some missing OpenPSID nids and some stub functions
2020-12-20 14:18:13 +01:00
Henrik Rydgård bdf36a4141 Temporary workaround for Wipeout Pure lens flare flicker.
See #13344.

Will try to figure out something better after the next release...
2020-12-20 13:04:28 +01:00
Henrik Rydgård 45c7d4cd84 Merge pull request #13776 from sum2012/mpg_psmf_minor
Add stack value in scempeg and scepsmf from jpcsp
2020-12-20 12:54:05 +01:00
Henrik Rydgård e0aa187161 UWP: Fix dialog rendering (PPGe). 2020-12-20 12:11:02 +01:00
sum2012 d60bc6f32f Forget this one HLE_KERNEL_SYSCALL 2020-12-20 18:17:00 +08:00
sum2012 c8d92ca09d Add some ThreadManForKernel nis
Find in #13797
2020-12-20 18:14:38 +08:00
Henrik Rydgård 6e6f1693d9 UWP buildfix 2020-12-19 23:19:42 +01:00
Henrik Rydgård 92e648b73d Cleaner exit on Windows. Will hopefully help #13325 2020-12-19 20:31:58 +01:00
Henrik Rydgård 6c8ee35826 Crash screen: Add a very dangerous and inaccurate "Resume" function.
Not sure if there's much point really but maybe..
2020-12-19 20:27:39 +01: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
sum2012 f7a864981c Add stack value in scempeg and scepsmf from jpcsp
Might help video corruption issue
2020-12-16 22:33:55 +08:00
Henrik Rydgård ed9c54b93a Add an iOS-only utility in devtools to copy savestates to memstick root.
Makes it easier to access the files on iOS over USB from MacOS.
2020-12-16 14:52:34 +01:00
Henrik Rydgård 226a8be1cc Minor refactor in sceUtility.cpp, making future changes easier. 2020-12-13 19:55:37 +01:00
Henrik Rydgård 292fecd535 Android: Enable fullscreen ("Immersive mode") by default.
Fixes #12806
2020-12-13 19:28:21 +01:00
shenweip 20df3d2c8a Minor comment. 2020-12-14 00:42:09 +08:00
shenweip eeb51f2d59 Don't display data info as new data when saving done. 2020-12-14 00:37:57 +08:00
shenweip 721696b9bc Fixes incorrect date of savedata.
Updates the date to the latest.
2020-12-14 00:27:23 +08:00
Halo-Michael 277b00dfa0 Bundle libMoltenVK 2020-12-08 13:46:14 +08:00
Dylan Smit b8ccd7fae7 Fixed a PlayStation typo (#13729) 2020-11-30 23:58:43 +01:00
Henrik Rydgård d5fe6154b5 Enable color reinterpret for Ultimate Ghosts & Goblins
The game uses it by accident probably, but whatever - it's a clean fix.

Fixes, but only for "modern" APIs, #13717.
2020-11-27 23:52:33 +01:00
Henrik Rydgård 6bf9f20f5f Merge pull request #13711 from shenweip/microphone
Microphone:Improves the support of microphone.
2020-11-24 23:43:48 +01:00
shenweip 07685d5e0f Correctly handle stuffing data of pack header. 2020-11-25 00:13:31 +08:00
shenweip 6afeed877c Build fixes 2020-11-24 21:36:17 +08:00
shenweip be0449d16d Fixes state. 2020-11-24 17:28:31 +08:00
shenweip 9a85ab2c43 Writes target buffer address in multiple times.
Would be better to calculate read data length.
2020-11-24 17:15:26 +08:00