Commit Graph

55 Commits

Author SHA1 Message Date
Henrik Rydgård
11eb5fa0c2
Merge pull request #15002 from unknownbrackets/ui-open-memstick
UI: Add button to show memstick folder
2021-10-19 19:55:30 +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
450b59809b Qt: Allow opening game folder. 2021-10-19 10:01:27 -07:00
Henrik Rydgård
0328816870 Rename g_Config.externalDirectory to defaultCurrentDirectory - since that's what it was.
Also make currentDirectory a Path, and add support for Path config
parameters.

Buildfixes

More Qt buildfixes

Oops, didn't mean to change zstd ver
2021-05-30 00:49:47 +02:00
Henrik Rydgård
f4a6d291e1 Common: Capitalize setCurrentThreadName(). 2021-04-30 23:02:36 -07: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
8f452fee23 SDL: Init profiler on SDL/Qt. 2021-02-18 22:59:56 -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
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
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
Henrik Rydgård
32c9728c0c Some cleanups in GL feature and shader language detection.
Gets rid of many wrong or bad checks for IsCoreContext.
2020-12-14 19:46:11 +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
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
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
80e0f85332 Getting really close to getting rid of base/logging.h now.
Qt buildfix
2020-08-15 19:09:01 +02:00
Jan Beich
cad7603ccd Qt: unbreak build without SDL
Qt/QtMain.cpp:51:1: error: unknown type name 'SDL_AudioSpec'
SDL_AudioSpec g_retFmt;
^
1 error generated.
2020-06-27 18:48:16 +00:00
Henrik Rydgård
3f74ffbdf5 Reduce the SDL audio buffer size, 2048 is a bit excessive. Port the changes to the Qt SDL code. 2020-05-17 11:50:34 +02:00
Unknown W. Brackets
fd0bf21215 Windows: Prevent applying -1 as inset space. 2020-04-05 17:06:36 -07:00
iota97
ee0ebfe071 Mouse 4 as back in menu navigation 2020-04-02 18:26:31 +02: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
Florin9doi
58b04ef77b QT Api for Camera (Linux/macOS)
Allow the use of different resolutions (win/android/iOS)
2020-02-10 08:47:55 +02: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
李通洲
0a2aa2c3af
Qt/macOS: enable HiDPI ( retina display ) support 2020-02-04 09:20:34 +08:00
Florin9doi
c824fabd53 Update macOS system name 2020-01-25 16:54:45 +02:00
Unknown W. Brackets
c30bc4ee7d SDL: Add UI to reset audio device at runtime. 2019-10-07 20:16:19 -07:00
Unknown W. Brackets
8751316051 SDL: Use a configurable output device. 2019-10-07 20:15:25 -07:00
Unknown W. Brackets
141258c366 SDL: Use SDL2 audio API for output. 2019-10-07 20:15:25 -07:00
KentuckyCompass
5955861865 configure QT to get a higher version for opengl 2019-08-17 21:15:29 -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
Cameron Cawley
c648c790ac Qt: Implement clipboard support 2019-05-15 22:31:05 +01:00
Henrik Rydgård
d91f706206 Log why the config is being saved (we seem to do it a bit much at times) 2019-02-23 11:55:44 +01:00
Henrik Rydgård
24510b8187 SDL/Qt: At least quit properly when switching backends 2019-02-23 11:55:34 +01:00
Unknown W. Brackets
bba008f162 Qt: Cleanup indentation.
Also some NULL -> nullptr.  No actual code changes.
2019-02-18 05:00:28 -08:00
Unknown W. Brackets
8b40f1a814 Qt: Correct Browse... handling for multithreaded. 2019-02-17 07:48:32 -08:00
Unknown W. Brackets
67884d60b3 Qt: Re-enable Load button to browse for file. 2019-02-17 07:30:40 -08:00
Henrik Rydgård
5362e675c4 Address feedback 2019-01-07 00:28:57 +01:00
Henrik Rydgård
5a1fa60087 Try to support Qt keyboard input directly. Partially fixes #11653 (nickname crash on mac) 2019-01-07 00:07:25 +01:00
Unknown W. Brackets
b4496f1975 Core: Move config enums to separate file.
These are a bit strewn about and there are constants that aren't
consistently used, which just adds confusion.
2018-06-23 10:59:18 -07:00
Unknown W. Brackets
a448ef536b Qt: Toggle fullscreen like on all other platforms. 2018-06-09 16:36:41 -07:00
Unknown W. Brackets
82b6cda5ef Qt: Return correct refresh rate.
Although, should probably update it if the screen changes, meh.
2018-06-09 16:36:41 -07:00
vnctdj
9db485b98d Allow showing version only for Qt 2018-05-09 21:23:04 +02:00
Henrik Rydgård
ebb819b5cc Qt: Don't call SDL_PumpEvents from the emu thread. Fixes #10660 2018-03-01 08:46:22 +01:00
Unknown W. Brackets
cdf378d20c GLES: Prevent race condition on shutdown.
emuThreadState might become STOPPED before the last frame has been run,
which can cause WaitUntilQueueIdle to hang.

It's simpler just to wait until StopThread() is called, since it now is.
This will line up properly with run_.
2018-02-11 11:40:11 -08:00
Unknown W. Brackets
a85a88e112 SDL: Apply shutdown race condition fix. 2018-02-10 16:55:50 -08:00
Henrik Rydgård
20eb566665 Minor Qt cleanup, force OpenGL since we don't yet support Vulkan in Qt 2018-02-08 11:19:48 +01:00