Commit Graph

96 Commits

Author SHA1 Message Date
Henrik Rydgård
ae06499a0c Change Copy, Rename to use Path. Remove std::string version of Exists().
Buildfixes

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
a2a0551a83 Buildfix, and more renaming while we're at it. 2021-04-25 22:25:29 +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
9e56431dc6 UI: Show CRC on game screen if calculated. 2021-02-16 19:29:37 -08: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
f01ba6dc84 Move NativeApp.h to Common/System, split into NativeApp.h and System.h
Buildfix
2020-10-04 11:42:16 +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
6f02844b5b Consolidate BackgroundAudio.cpp into a class 2020-08-03 10:43:26 +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
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
iota97
592d6f902e Show region on game selection screen 2020-02-23 12:00:26 +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
Unknown W. Brackets
ecf509c362 Config: Add game name to game-specific inis. 2019-07-14 15:07:03 -07:00
Silent
bb2ba8086b
Improved Show in Folder:
- Not spawning cmd.exe anymore, rather using the same way Chromium does to spawn a shell window with a file focused
- Hid a nonfunctional "Show In Folder" button for UWP builds
2019-05-23 19:59:08 +02:00
Henrik Rydgård
3d20ddecc5 VK: Fix sometimes-missing images in GameScreen. Can't load textures from update(). (should probably make that possible though.. later). 2018-11-22 23:53:58 +01:00
Unknown W. Brackets
048afb6d24 UI: Resolve symlinks when adding things to recent.
See #11131.  This also normalizes paths, captialization, etc. as
necessary.
2018-08-12 08:25:10 -07:00
Henrik Rydgård
4f59ebad05 sprintf->snprintf. Don't think any of these are likely overflows though. 2018-05-29 23:42:54 +02:00
Unknown W. Brackets
d00dcb4400 UI: Use atomic flags in game info cache.
Simpler, no need to lock the entire info when checking these.
2017-12-29 08:55:49 -08:00
LunaMoo
296f724ad1 Oops, missed this one:]. 2017-05-30 12:20:35 +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
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
6541413021 UI: Improve documentation on pop up use. 2017-04-02 10:56:41 -07:00
Unknown W. Brackets
55908588eb UI: Allow choosing game bgs for all UI. 2017-04-02 10:48:38 -07:00
Unknown W. Brackets
562288b09c UI: Refactor game icon/bg loading.
This also default-initializes the atomic flags, which seems to fix a race
condition I was sometimes experiencing with missing icons.
2017-03-26 00:00:57 -07:00
Unknown W. Brackets
1fdf7c5373 UI: Skip game bg lookup without game.
This avoids trying to identify a file without a name.
2017-03-24 22:15:22 -07:00
Unknown W. Brackets
073e056369 UI: Allow overriding dialog logic on finish.
This seems cleaner.
2017-03-19 17:43:03 -07:00
Unknown W. Brackets
9e390510df Remove legacy InputState. 2017-03-14 22:07:07 -07:00
Henrik Rydgard
fa80cfa4aa Additional UWP preparations 2017-02-25 09:57:14 +01:00
LunaMoo
b15e927807 Fix lag generated by getting savegames on update()
Also clear otherChoices_ vector, fixes crash when moving a window.
2017-02-01 05:14:54 +01:00
Henrik Rydgard
20d9e60a67 Just some renaming. Start moving away from the "thin3d" name 2017-01-30 14:38:31 +01:00
Henrik Rydgård
6a7d3a3910 Break out image file management from DrawContext (thin3d) 2017-01-24 20:58:59 +01:00
Henrik Rydgård
f86b9f7900 Guess what? More renaming 2016-12-27 11:59:06 +01:00
Henrik Rydgård
10393f5d4e Move Thin3D into the Draw namespace. 2016-12-27 11:58:03 +01:00
Florent Castelli
e0ff68b3f6 c++11: Remove compat header base/functional.h
We want a proper C++11, not tr1. We don't target those compilers anyway.
2016-10-12 11:32:45 +02:00
Unknown W. Brackets
49f96917c6 UI: Allow title, etc. to wrap on game info screen. 2016-08-07 16:35:58 -07:00
Unknown W. Brackets
838de5b5c0 UI: Asynchronously load the game info screen.
No reason to wait, just need to keep the buttons hidden.

Intentionally hiding even the buttons below the possibly added buttons, so
we don't accidentally play "button keep away" with the user.
2016-08-07 16:35:57 -07:00
LunaMoo
778c518a37 Cheat menu access from gameScreen + minor bugfix +
Invalidate JIT for 0xE/0xD checks
And big thanks to [Unknown] for help:3
2016-06-20 11:33:02 +02:00
Henrik Rydgard
da1a04be8d Make the workqueue slightly safer. Put g_gameInfoCache on the heap.
Cherry-picked from #8592
2016-02-28 12:39:47 +01:00
Unknown W. Brackets
862e6fffd5 UI: Keep focus on game after displaying details.
Fixes #8539.
2016-02-07 17:15:19 -08:00
Unknown W. Brackets
e6b5fbb40a Fix race conditions when reading game title.
Fixes #5030.
2015-12-24 13:18:46 -08:00
Henrik Rydgard
50d66f9a19 Workaround for #8020 2015-10-04 00:00:46 +02:00
Henrik Rydgard
8ab0a3cf7c Fix bug when deleting game configs from game screen - didn't mark as deleted 2015-10-03 22:57:07 +02:00
Henrik Rydgard
05c625ed06 Even less file I/O in menu screens, by caching "hasConfig" flag for game info. See #7807 2015-09-10 17:17:59 +02:00
vnctdj
d7eba2061e Consistently use *di for the Dialog i18n category 2015-07-01 23:26:55 +02:00
Henrik Rydgard
084aad74c3 Make GameInfoCache understand PSP savedata as a "game" type. Use it to create a basic savedata listing screen. 2015-06-11 20:22:16 +02:00
Andrey Bondrov
ba9d0b7665 Don't set focus for Play choice 2015-03-01 22:56:57 +10:00
Henrik Rydgard
c9e6938801 UI: Add "overscroll" when keyboard navigating, to show a bit of the next item. Add some shadows. 2015-02-15 11:22:24 +01:00