268 Commits

Author SHA1 Message Date
Henrik Rydgård
1405e28166 More buildfixes 2020-10-16 00:24:12 +02: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
15382d5f94 Move threading utils from native to Common 2020-10-01 09:27:25 +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
Henrik Rydgård
2d06730762 Fix regression where Gran Turismo ended up recreating the framebuffer on every frame in the menu.
Should help #13458 slightly (but there's more to fix).
2020-09-21 09:56:52 +02:00
Unknown W. Brackets
1371ef298b Net: Reduce PortManager log noise.
Shows up when running unit tests, etc.
2020-08-27 19:23:23 -07:00
Henrik Rydgård
5d64fc5ff1 Switch to PPSSPP's assert functions (don't use the system's) 2020-08-16 10:01:10 +02:00
Henrik Rydgård
ccc0331279 Move timeutil to Common. (Experiment to see how much work it is to move these). 2020-08-15 20:53:08 +02:00
Henrik Rydgård
5eb13378c6 Remove base/logging from a lot more files in native 2020-08-15 19:09:00 +02:00
Unknown W. Brackets
850df75c45 Merge remote branch remove-sstream-from-stringutil. 2020-08-10 07:18:49 -07:00
Henrik Rydgård
5ec2da0f2d Move Section out of IniFile so it can be forward declared. Unlocked further improvements to build speed. 2020-08-10 15:53:52 +02:00
Henrik Rydgård
62a8329c33 Remove sstream from stringutil.h. See #13267 2020-08-10 14:33:00 +02:00
Unknown W. Brackets
b8342fb8ec SaveState: Rename ChunkFile files to Serialize.
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets
667a8522cc Global: Cut down on file/string includes. 2020-08-10 08:03:44 +00:00
Unknown W. Brackets
4b4e3432cd SaveState: Split Do() into a separate header. 2020-08-10 08:03:41 +00:00
shenweip
77da51c418 Also correct the allocated size. 2020-08-05 19:01:00 +08:00
shenweip
acc952d839 Correct the alignment size when allocate memory at a position. 2020-08-05 18:43:45 +08:00
ANR2ME
bd36fdda0e Do UPnP stuff on it's own thread to prevent causing stutters/lags during multiplayer game due to blocking socket behavior on miniUPnP 2020-07-23 12:41:13 +02:00
ANR2ME
e21ea719e9 Fixed PortManager fallback Cleanup issue when exiting PPSSPP due to early WSACleanup 2020-07-22 23:13:41 +02:00
ANR2ME
68fa15784c Fixed UPnP port opened by PPSSPP detection, and Updated PortManager to be compliant to general purpose usage 2020-07-22 23:13:41 +02:00
ANR2ME
b9025b50bd Added a UPnP option to use original port for external port instead of using the shifted port by port offset, to be compatible with real PSP or other PSP emulators 2020-07-22 23:13:41 +02:00
ANR2ME
d12218e8da Attempt to fix compilation error on Linux 2020-07-22 20:41:47 +02:00
ANR2ME
d0045947f1 An attempt to fix socket's behavior inconsistencies across platforms.
Added an option to override minimum socket's timeout to prevent getting timeouts on high latency networks.
2020-07-22 16:46:34 +02:00
ANR2ME
088e489c91 Fix UPnP error detection
Fix Local IP detection on non-Windows system
2020-07-21 23:03:04 +02:00
ANR2ME
33d3ac28de Added UPnP Support
Fix i18n type
2020-07-21 23:02:58 +02:00
Henrik Rydgård
47a3bf1dd7 Step 2 of removing PanicAlert 2020-07-19 20:34:02 +02:00
Henrik Rydgård
79b3352b67 Merge branch 'ppge-scroll' of https://github.com/unknownbrackets/ppsspp into unknownbrackets-ppge-scroll 2020-07-19 14:09:24 +02:00
Henrik Rydgård
6f97c3d422 Various platform buildfixes 2020-07-14 09:25:59 +02:00
Henrik Rydgard
c988d42b04 ARM/ARM64 instruction analysis, hook up to handler 2020-07-14 09:25:45 +02:00
Unknown W. Brackets
b181a93e5e MsgDialog: Add scrollbar when message is long.
Some games hard wrap their messages, and PSP firmware also showed a
scrollbar.  Let's do the same.

One intentional difference: trying to ensure we always show part of a
hidden line to make it clear to the user that there's more text.
2020-07-13 18:24:05 -07:00
Unknown W. Brackets
3586128d8d PPGe: Draw nicer drop shadows.
Only when we have a text drawer for text, because it really adds up.
2020-07-13 18:24:05 -07:00
Unknown W. Brackets
143ba22097 PPGe: Handle text shadows more consistently.
Don't really want them wrapping differently or etc.  Let's handle
centrally so we can make them consistent and better.
2020-07-13 18:20:57 -07:00
Henrik Rydgård
63ead85c7f Some paranoid checks in PPGeDraw. Might help the crash seen in #13047. 2020-06-28 21:35:19 +02:00
Henrik Rydgård
4bcd8df079 Logging improvements and warning fixes.
(Had a super odd crash that I can't repro anymore in PPGe init...)
2020-06-22 22:46:03 +02:00
Unknown W. Brackets
4f586f9567 PPGe: Left align messages in dialogs.
It was previously left aligned, but the TextDrawer was being told to
center.  These are meant to just center the enclosing box of text, not the
individual lines within.

Makes Final Fantasy 3 look a lot better.
2020-05-23 19:59:56 -07:00
Unknown W. Brackets
e4abfd5408 PPGe: Remove half-pixel offset.
This made the background misaligned, causing a black border on the right
and bottom edges.
2020-04-22 21:19:34 -07:00
Unknown W. Brackets
41dfe05de2 Headless: Fix compile on Android. 2020-04-05 15:23:13 -07:00
Henrik Rydgård
620aa50cf1 PPGe: Slightly reduce the font size, might help #12764 2020-03-28 14:37:35 +01:00
Unknown W. Brackets
dbc78b437e PPGe: Fix dialog button positioning.
The measure was previously the line height, but always ultimately used
as the full text height.  This just makes it always full height.
2020-03-23 18:23:35 -07:00
Unknown W. Brackets
d2d07e253b PPGe: Avoid crash with missing metadata. 2020-03-22 07:12:16 -07:00
Unknown W. Brackets
da9158b34b UI: Allow startup without UI assets.
On platforms where we render fonts, it is at least somewhat usable without
assets.  A much better experience than a segfault.

On other platforms, it'll probably be mostly unusable, but you can already
get that with an old/wrong assets file.
2020-03-21 21:35:43 -07:00
Unknown W. Brackets
de81b706c4 PPGe: Clear unused parts of text image buffers.
Prevents artifacts when the RAM previously had other data in it.
2020-03-11 06:48:11 -07:00
Unknown W. Brackets
5f65c075e2 PPGe: Correct double spacing in some save text. 2020-03-11 06:37:18 -07:00
Unknown W. Brackets
9c9ace6e1a Android: Delay TextDrawer init in PPGe.
We need it to init on the correct thread.
2020-03-10 21:40:47 -07:00
Unknown W. Brackets
08a6047768 PPGe: Show ellipsis for overly long lines.
To match PPGE_LINE_USE_ELLIPSIS when using TextDrawer.
2020-03-10 21:30:53 -07:00
Unknown W. Brackets
6652fe261f PPGe: Use TextDrawer for save UI if available.
This should result in better spacing for non-Latin characters, and less
missing letters.  Basically the same benefits as for the UI.
2020-03-10 21:30:53 -07:00