Commit Graph

82 Commits

Author SHA1 Message Date
Henrik Rydgård
ec6d330ae4 Move AsyncImageFileView to Common, which required some more shuffling around of stuff. 2022-11-21 20:38:20 +01:00
Henrik Rydgård
9f3851678e Add tags to all our UI screens. Useful to debug UI problems. 2022-09-16 10:14:00 +02:00
Unknown W. Brackets
8e15f755e6 UI: Add a sysprop for if the device has a keyboard.
Still left some ifdefs because of System_InputBoxGetString(), but
hopefully we can move away from them.  Some devices (like SDL) may only
optionally have a keyboard, so it's a runtime check.
2021-10-19 10:01:52 -07:00
Unknown W. Brackets
0f83901838 UI: Keep buttons at bottom for savedata.
Also make them wider, looks like a layout mistake.
2021-10-05 23:55:51 -07:00
Unknown W. Brackets
e8a83269bb UI: Add scroll to savedata viewer for long descs. 2021-10-05 23:50:21 -07:00
Unknown W. Brackets
09ca16361c UI: Asynchronously update size and dates on sort.
This means items shift and jump into place, but it also means we don't
hang even for large savedata collections.
2021-09-23 22:31:43 -07:00
Unknown W. Brackets
8c937f45f7 UI: Cache save size on save buttons.
It was calculating the size and date for each permutation, which became
monstrously slow on Android with scoped storage.
2021-09-23 22:14:25 -07:00
Unknown W. Brackets
7513d92862 UI: Reduce IO in savedata manager sorting. 2021-09-23 22:00:16 -07:00
Henrik Rydgård
fcc0337576 Fix the Android recursive size computation and hook it up. 2021-09-11 18:12:30 +02:00
Henrik Rydgård
85ac0f8856 Fix a couple sort comparators for the savedata screen 2021-09-10 01:14:59 +02:00
Henrik Rydgård
43ba908225 Propagate errors from file identification upwards better. 2021-08-07 11:54:45 +02:00
Unknown W. Brackets
d376e67f87 Common: Cleanup some Path constructions. 2021-05-14 22:48:04 -07:00
Henrik Rydgård
4d344f556a Additional feedback. 2021-05-13 10:39:17 +02:00
Henrik Rydgård
2e16e83159 It never ends... 2021-05-13 10:39:16 +02:00
Henrik Rydgård
a40b1dec5f Use Path for fullName in dirlisting. Bugfixes.
Buildfixes

UWP: Buildfix.

headless: Buildfix.

Common: Buildfix.

iOS: Buildfixes.

libretro: Buildfix.

Qt: Buildfix.
2021-05-13 10:39:16 +02:00
Henrik Rydgård
025bcb1673 Introduce Path, start using it all over the place.
Still lots left to convert!

Convert GetSysDirectory to return Path.

More buildfixing

Remove unnecessary Path( constructors
2021-05-13 10:39:16 +02:00
Henrik Rydgård
e2e1c677cb GameInfoCache: Don't expose the workqueue.
Was unused anyway.
2021-04-30 23:04:24 -07:00
Henrik Rydgård
770f7f60e4 Delete unused function, rename two more. 2021-04-25 20:57:37 +02:00
Henrik Rydgård
08843673d9 Rename a couple of functions. 2021-04-25 20:39:32 +02:00
Henrik Rydgård
1b13badeb4 Move remaining FileUtil functions into the File namespace. 2021-04-25 20:38:22 +02:00
Unknown W. Brackets
14537e05a9 UI: Fix savedata screen sorting. 2021-04-01 21:29:16 -07:00
Unknown W. Brackets
b050a07c89 UI: Add search to savedata manager. 2021-03-03 00:08:03 -08:00
Unknown W. Brackets
7f036f8431 UI: Fix L/R tab navigation. 2021-03-03 00:07:11 -08:00
TotalCaesar659
e9a6707aae
Fix typo 2021-03-02 18:08:16 +03:00
Unknown W. Brackets
3360121b5c UI: Expose lists better in descriptions.
Explicitly marks several lists, which should make exposing text better.
2021-02-21 18:41:08 -08:00
Unknown W. Brackets
3c778f567c UI: Add text description for all views. 2021-02-21 16:38:02 -08:00
Unknown W. Brackets
cd6be61d98 Common: Correct some formatting type mismatches. 2021-01-01 15:43:13 -08:00
iota97
2c4eb82137 Use system time format on savedata aswell 2020-12-09 00:32:55 +01: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
7aacf3df37 Remove time_now() - time_now_d() is the replacement. Absolute time values can't be stored reliably in floats. 2020-08-16 09:37:18 +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
Unknown W. Brackets
e59951382a Global: Make stringutil includes more explicit. 2020-08-10 07:05:22 -07:00
Unknown W. Brackets
dbb19d169f UI: Prevent stretching game icons on detail.
Also, make them a bit bigger in the save data screen.
2020-03-23 17:43:58 -07:00
Henrik Rydgård
45d94c4877 Switch all images to dynamic lookup in the atlas by string ID.
SLN fix

It works, but with the wrong images and the wrong characters!

Fix another bug in atlastool's binary output

Get Android building again.

Oops, didn't mean to disable this permanently.

Error checking

Minor cleanup

Gotta tweak my git ignores...

Regenerate metadata
2020-03-01 12:06:47 +01:00
Unknown W. Brackets
5009698cc0 Core: Use a shared_ptr for i18n categories.
This does not make them thread safe, but it reduces the chances of a crash
a bit (see #12594.)
2020-02-09 07:35:16 -08:00
Henrik Rydgård
1f742fd07a UI: Better way of showing game/savedata images. Fixes #12408 2019-10-11 17:34:38 +02:00
LunaMoo
53daa0d844 Remove some unused code. 2019-04-28 13:17:08 +02:00
Unknown W. Brackets
a99549c451 UI: Avoid using game info cache in savedata sort.
It can change mid-sort causing the sorting results to be inconsistent,
which will crash many implementations of std::stable_sort.

Also, fix an issue where it kept resorting after it didn't need to and
make it strictly ordered for equal dates/sizes.

Fixes #11892.
2019-03-17 06:34:21 -07:00
Unknown W. Brackets
38461ed821 UI: Allow sorting saves by date too. 2018-11-25 08:21:31 -08:00
Unknown W. Brackets
d1c9da6a9a UI: Maintain aspect better on screenshots.
In case they are on a thin screen or something.
2018-09-21 23:27:28 -07:00
Unknown W. Brackets
f0be2d5f88 UI: Quit sorting when done.
This will prevent keeping the gameInfo objects alive unnecessarily.
2018-06-06 18:39:21 +02:00
Unknown W. Brackets
4fb606839c UI: Add option to sort saves by size.
It may be slow with many saves, but it's also very useful.  It doesn't
seem too bad as an option.
2018-06-06 18:39:21 +02:00
Henrik Rydgård
d160292f54 Include renderpass definition in Vulkan shader cache entries, should make it more effective again. 2018-03-29 14:36:04 +02:00
Henrik Rydgård
df6ce90c84 When what we need is a shared_ptr, we should just go ahead and use one.
One of the top crashes reported in the Play Console is a ManagedTexture crash, so seeing if this might help.
2017-05-18 13:28:56 +02:00
Unknown W. Brackets
0a73828042 UI: Use theme colors in more places.
Hopefully everywhere.
2017-03-26 08:57:04 -07:00