Henrik Rydgård
e01ca5b057
Logging API change (refactor) ( #19324 )
...
* Rename LogType to Log
* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.
* Mac/ARM64 buildfix
* Do the same with the hle result log macros
* Rename the log names to mixed case while at it.
* iOS buildfix
* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Henrik Rydgård
533f8f06be
Unify DrawString between Windows, UWP and Android. More to come.
2024-05-31 17:27:59 +02:00
Henrik Rydgård
5999690af5
i18n: Remove our awkward ampersand-escape support, except in [DesktopUI]
2024-05-31 09:45:59 +02:00
Henrik Rydgård
ccbcf1369b
Convert DrawString* functions to use std::string_view
2024-05-24 22:52:51 +02:00
Henrik Rydgård
c5791764d8
Make the i18n T function use std::string_view
...
Buildfixes, crashfixes
One more
Android buildfix
Buildfix Qt
2024-02-12 18:44:39 +01:00
Henrik Rydgård
c7ed87b352
Assorted paranoia and improved checks
2024-01-31 10:22:03 +01:00
Herman Semenov
af41281761
[Core/Dialog/ELF/FileSystems/HLE/HW/Util] Added const reference for function params
2023-12-14 14:22:24 +03:00
Henrik Rydgård
1da6da446b
More std::string conversion
2023-11-13 23:43:57 +01:00
Henrik Rydgård
602407fcf2
Warning and comment fixes, logic precedence fixes in PPGeDraw
2023-09-21 16:41:42 +02:00
Henrik Rydgård
57edb9f78a
Gate the PPGE texture windowing trick behind the software rendering setting.
2023-09-11 14:18:58 +02:00
Unknown W. Brackets
3c7b05c3e8
PPGe: Use texture windows for atlas text.
...
This makes it software rendering, which correctly applies clamp/wrap
limits at 512x512, still has readable text. Other textures may still be
wrong.
2023-09-10 23:54:55 -07:00
Henrik Rydgård
d586ec0d5e
Don't create Host objects except in headless/unittest
2023-03-25 10:47:01 +01:00
Henrik Rydgård
5fae4f36db
Move SkipUI function
2023-03-21 13:39:02 +01:00
Henrik Rydgård
3b39e9e068
Turn the VFS into a class, to be able to reuse it for other purposes.
2023-03-06 16:42:47 +01:00
Henrik Rydgård
00c44ea799
Get rid of the bool, not worth it.
2023-01-10 10:23:29 +01:00
Unknown W. Brackets
dea9cac16c
Core: Add range checks to some helpers and similar.
2023-01-09 16:56:18 -08:00
Unknown W. Brackets
2e1e11f116
PPGe: Respect 512 texture limit.
...
If a message ends up rendering wider than 512 (which can happen because we
use higher quality fonts than 1x), draw in tiles to avoid accessing texels
outside 512.
Fixes an issue in Sakura Taisen in the software renderer.
2022-11-26 12:03:21 -08:00
Unknown W. Brackets
5bed35b293
Savedata: Skip and defer texture exist check.
...
We can skip if there's no UI.
2022-10-09 14:42:31 -07:00
Henrik Rydgård
65c016d154
Fix dialog rendering (PPGe). Fixes #15954
...
Was caused by 867eb99
, part of #15950 .
2022-09-04 00:42:14 +02:00
Unknown W. Brackets
867eb99505
PPGe: Cleanup memory writes for clarity.
...
Switch from WriteStruct to PSPPointer as well.
2022-09-03 07:25:03 -07:00
Henrik Rydgård
881cc23965
Delete some unused code.
2022-07-24 13:54:04 +02:00
Unknown W. Brackets
2479d52202
Global: Reduce includes of common headers.
...
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08:00
Unknown W. Brackets
c31f746896
PPGe: Disable dither in UI drawing.
...
We perform it in software, but it looks bad.
2022-01-01 16:40:01 -08:00
Unknown W. Brackets
34476a2b9d
PPGe: Prevent special ampersand handling.
2021-11-24 18:53:24 -08:00
Unknown W. Brackets
fe83f21df5
PPGe: Remove ENTR hack, fix string concat.
...
Sanitize first, then concatenate. This replicates the firmware behavior
nicely.
2021-03-29 00:21:26 -07:00
Unknown W. Brackets
5ef8762c32
PPGe: Interpret invalid UTF-8 sequences better.
...
This matches PSP firmware behavior per tests.
2021-03-28 14:26:14 -07:00
Unknown W. Brackets
7d085966f1
PPGe: Apply overlong handling to wrapped text too.
2021-03-28 13:45:01 -07:00
Henrik Rydgård
5802529daa
UTF-8 PPGe: Remove overlong encodings. Work around a weird issue in Ratchet & Clank. See issue #14297
2021-03-20 13:38:13 +01:00
Unknown W. Brackets
2ce77c6776
PPGe: Reload atlas on load state if different.
2021-03-01 21:04:35 -08: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
Henrik Rydgård
aec37e8bb4
Only consider the actual PPGe texture in kernel ram reliable.
...
It seems some Chinese patches like to allocate kernel space for
textures.
(On that note, we should probably allocate our texture elsewhere... in
case it takes up too much space).
2021-02-19 09:53:55 +01:00
Unknown W. Brackets
e7b968be73
Debugger: Notate Memcpys directly as well.
2021-02-15 15:01:23 -08:00
Unknown W. Brackets
88e2b9b740
Debugger: Notate memset tags directly.
2021-02-15 15:01:23 -08:00
Henrik Rydgård
1c3c384289
Merge pull request #14079 from unknownbrackets/ppge-aspect
...
Savedata: Show save icons with proper aspect ratio
2021-02-15 11:20:41 +01:00
Henrik Rydgård
b539ce8c2c
Merge pull request #14078 from unknownbrackets/ppge-alloc
...
PPGe: Decimate text images properly
2021-02-08 10:09:21 +01:00
Unknown W. Brackets
f7c17817fe
PPGe: Decimate early if kernel alloc fails.
2021-02-07 23:17:53 -08:00
Unknown W. Brackets
c87b53a9fe
PPGe: Decimate text images properly.
2021-02-07 23:06:35 -08:00
Unknown W. Brackets
839be8e636
PPGe: Clear text allocations on shutdown.
2021-02-06 14:23:35 -08:00
Unknown W. Brackets
47523a0557
PPGe: Fallback to atlas text on alloc fail.
2021-02-06 14:10:18 -08:00
Unknown W. Brackets
0b666d0dac
PPGe: Scale down by worst of window/internal res.
...
See #13958 .
2021-01-23 09:04:58 -08:00
Henrik Rydgård
71511adad6
Merge pull request #13868 from unknownbrackets/savedata
...
Savedata: Prevent garbage bleeding into save icons
2021-01-04 08:06:04 +01:00
Unknown W. Brackets
4573907098
Savedata: Prevent garbage bleeding into save icons.
...
This pads out the icon data and also fixes a potential buffer overflow
during image data copy.
2021-01-03 16:26:31 -08:00
Unknown W. Brackets
3c9ab13672
GPU: Remove NULL GPU.
...
We can use the software GPU without a backend now, and this is in every
way superior and will result in better tests/headless behavior.
2021-01-02 09:36:13 -08:00
Henrik Rydgård
e0aa187161
UWP: Fix dialog rendering (PPGe).
2020-12-20 12:11:02 +01:00
Henrik Rydgård
8761bf2bc9
Move text rendering to Common.
2020-10-05 00:05:28 +02:00
Henrik Rydgård
0e3a84b4a8
Move most GPU things to Common.
...
It works after the move, on Windows and Android at least.
Deletes the D3DX9 shader compiler loader, which was not used.
2020-10-04 23:39:02 +02: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
9e41fafd0d
Move math and some file and data conversion files out from native to Common.
...
Buildfixing
Move some file util files
Buildfix
Move KeyMap.cpp/h to Core where they belong better.
libretro buildfix attempt
Move ini_file
More buildfixes
2020-10-04 09:12:46 +02:00
Henrik Rydgård
ff8148dd92
Move native/util, native/data and native/i18 to Common/Data.
...
Also move colorutil.cpp/h
linking build fix experiment
Delete a bunch of unused CMakeLists.txt files
CMakeLists.txt linking fix
Don't include NativeApp.h from any headers.
Android.mk buildfix
Half of the UWP fix
Buildfix
Minor project file cleanup
Buildfixes
Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00
Henrik Rydgård
ed88761ecc
Merge ext/native/stringutil.cpp/h into Common/StringUtils.cpp/h.
2020-09-29 15:51:51 +02:00