Commit Graph

370 Commits

Author SHA1 Message Date
Unknown W. Brackets 2558022afe Config: Move data path settings to Paths. 2021-05-15 11:11:37 -07: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 f4a6d291e1 Common: Capitalize setCurrentThreadName(). 2021-04-30 23:02:36 -07:00
Henrik Rydgård af5637ecc5 Merge pull request #14229 from unknownbrackets/windows-keys
Windows: Setting for standard/debugger shortcuts
2021-03-03 22:15:55 +01:00
Unknown W. Brackets 4178f09e57 Build: More consistently avoid _M_ defines.
We use PPSSPP_ARCH in several places already, this makes it more complete.
2021-03-02 21:49:21 -08:00
Unknown W. Brackets 595dfd144b Windows: Setting for standard/debugger shortcuts. 2021-02-27 14:40:02 -08:00
Henrik Rydgård bd7b283399 Add iOS version detection, turn off JIT on bootup if >= 14.3. 2021-02-22 09:16:51 +01:00
Unknown W. Brackets e97a0ec612 Windows: Run OSK/chat input box asynchronously.
This matches Android and should prevent hangs like seen in #14044.
2021-02-18 07:27:28 -08:00
Unknown W. Brackets f32f89dd90 Global: Remove some unused variables. 2021-02-15 11:59:45 -08:00
Henrik Rydgård 6d0315eaf9 Fix copy/paste typo causing crash getting tempdirs if an env var had no value 2021-01-10 20:33:17 +01:00
Henrik Rydgård 291f9fdd70 Merge pull request #13902 from unknownbrackets/ui-cleanup
UI: Cleanup Windows header in MainScreen.cpp
2021-01-10 00:24:13 +01:00
Unknown W. Brackets eee529c6c9 UI: Cleanup Windows header in MainScreen.cpp.
Better to have this come from System, probably.  It's mainly for Windows
anyway, to alert people their save data isn't permanent.
2021-01-09 14:45:49 -08:00
Unknown W. Brackets 43a13f7ec6 Windows: Handle fullscreen message consistently.
This handles it the same way as SDL, etc. so that the new button on the
main screen works again.
2021-01-09 14:17:41 -08:00
Henrik Rydgård 1c753e4a22 Use hacky methods to retrieve SD card directory if available.
This will disappear in future Android versions but can be useful for
older devices.

Fixes (or at least tries to) #10199, at least for some devices.

Might help #13827 ?

Tested on Pocophone F1.
2021-01-07 00:55:35 +01:00
Henrik Rydgård 2c4a42a695 UWP: Make the home button say "Home" instead of "Browse...". 2020-12-20 01:47:49 +01:00
iota97 cd42f8b3a6 Make --windowed available on all platform and make sure to trigger resize 2020-10-10 15:52:30 +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 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 b7edf75437 Move Display.cpp/h to Common. 2020-10-04 11:42:16 +02:00
Henrik Rydgård 821817e6d4 Move the profiler to Common 2020-10-04 11:42:16 +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 6ac9dfe6b5 Windows debugger: Clean out old remains of multi-cpu support 2020-09-24 00:32:52 +02:00
Henrik Rydgård 0752e7d158 Merge pull request #13302 from unknownbrackets/net-local
Net: Simplify local IP lookup and cleanup instance counter a bit
2020-08-18 21:29:29 +02:00
Unknown W. Brackets 495996e58b Windows: Make the instance counter go by 1, 2, 3. 2020-08-18 00:47:22 -07:00
Henrik Rydgård f0d2f24658 Finally delete base/logging.cpp/h. Carefully preserve behaviour on Android.
There's more cleanup to do ...
2020-08-15 19:09:09 +02:00
Henrik Rydgård 3c412ea21e Fix build of ZimTool/AtlasTool. Had to break the ugly backwards dependency from LogManager to g_Config. 2020-08-15 19:09:09 +02:00
Unknown W. Brackets e59951382a Global: Make stringutil includes more explicit. 2020-08-10 07:05:22 -07:00
Unknown W. Brackets 1dc5ee424b SaveState: Split out Do types to reduce headers. 2020-08-10 08:03:44 +00:00
Henrik Rydgård 92778675df Merge pull request #12879 from unknownbrackets/init-crash
Windows: Make init crash warnings more generic
2020-07-13 19:43:25 +02:00
Unknown W. Brackets 03fc86a147 UI: Return to game settings after restart.
This is more convenient.  Also restarts the game if needed.

Added a way to pass args to Android here as well, and fixed displaying an
error if the shortcut file doesn't exist on Android (like if you deleted
it after creating the shortcut.)
2020-05-09 13:53:42 -07:00
Unknown W. Brackets 9573e7216b Windows: Make init crash warnings more generic.
Let's not trap ourselves in the mindset that it MUST be graphics.
2020-05-08 23:24:19 -07:00
Unknown W. Brackets fd0bf21215 Windows: Prevent applying -1 as inset space. 2020-04-05 17:06:36 -07:00
Unknown W. Brackets de7aa5b64e Windows: Show a message when failing over backend.
Best that we make sure people know when this has happened, probably.

Also, fix the fallback to OpenGL, which was broken on Windows.
2020-03-28 06:19:11 -07:00
Unknown W. Brackets 998f95786a Android: Enable native keyboard for OSK.
And make Windows/Qt follow the same async behavior for input boxes.
2020-03-09 18:59:53 -07:00
Unknown W. Brackets efceb031ce UI: Make System_InputBox API asynchronous.
Doing this as a precursor to cleaning up the Android madness.
2020-03-08 18:59:17 -07: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
李通洲 55bb58e13e NativeApp: add System_GetPropertyFloat all the places 2020-02-04 09:20:34 +08:00
Unknown W. Brackets 5b5ded058c Windows: Support long My Documents paths. 2020-01-04 10:57:23 -08:00
Unknown W. Brackets 46464d2722 Windows: Resolve module/full paths for long paths. 2020-01-04 09:02:10 -08:00
Silent 0621dbb487 Simplify synchronization model in InputDevice.cpp - replaced volatile flags/mutex/condition variable with joining on thread and one atomic flag 2019-07-02 19:17:52 +02:00
Unknown W. Brackets 7588a9760e Windows: Fix Vulkan out of process check.
Oops, forgot to actually pass false after adding this argument...
2019-06-30 23:45:14 -07:00
Unknown W. Brackets 504acf15de Core: Allow for disabling graphics backends.
Mainly for Vulkan, since sometimes even mobile drivers crash when we ask.
This at least provides options.

Also centralizes support checks.
2019-06-22 12:49:01 -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 2f26297062 Clean up some more ifdefs 2019-05-10 23:25:57 +02:00
driver1998 0aa33d53c0 Disable features not available on Windows ARM32/ARM64
ARM32: OpenGL & DirectInput
ARM64: OpenGL
2019-05-04 22:45:16 +08:00
Unknown W. Brackets d19e59dde7 Windows: Browse for folder like Qt.
Better to separate out the platform specific stuff.
2019-02-17 08:03:10 -08:00