Commit Graph

370 Commits

Author SHA1 Message Date
Unknown W. Brackets bc84571f0f Windows: Detect Vulkan in separate process.
This should avoid crashes with broken AMD drivers that can't initialize
Vulkan properly.  Instead, Vulkan will show up as unavailable.

Disabled during debug to allow for debugging.
2019-02-16 10:14:54 -08:00
Henrik Rydgård f8ea364371 Cleanup: Split out the WASAPI code into its own file. 2018-09-30 20:29:39 -07: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
Henrik Rydgård 2c0c693956 OpenGL: Similar to NvOptimusEnablement, use AmdPowerXPressRequestHighPerformance. 2018-04-15 08:41:02 +02:00
aliaspider f94e9b1e74 set _WIN32_WINNT to 0x0601 in stdafx.h 2018-03-23 22:54:12 +01:00
Henrik Rydgård 081e15d1c8 Windows: Consistently shutdown the main thread after exiting the message loop. 2018-02-10 09:06:43 +01:00
Henrik Rydgård ae19c48138 Cleanup the Windows thread stuff to work like the other platforms. Not quite perfect yet. 2018-02-07 16:00:29 +01:00
Henrik Rydgård af6431986d OpenGL: Now run GL on a secondary thread. Sync issues remain. 2018-01-27 15:10:17 +01:00
Henrik Rydgård 42f2312030 Remove the old CPU threading remains, start redesigning interfaces. 2018-01-27 15:10:17 +01:00
Akira Miyakoda f8cd9c7e55 Windows: Use sufficient buffer for config file paths.
MAX_PATH bytes are insufficient when a very long path is converted into UTF-8.
2018-01-18 00:36:27 +09:00
Akira Miyakoda 3f73cfb835 Windows: Fix a small memory leak.
CommandLineToArgvW() allocates a memory block which must be freed by LocalFree().
2018-01-17 19:25:01 +09:00
Unknown W. Brackets d6da758ed3 GPU: Remove duplicate BACKEND constants. 2017-12-26 15:55:24 -08:00
Henrik Rydgård 6a1fa728d8 Remove Globals.h 2017-08-31 17:15:22 +02:00
Henrik Rydgård 8c1bfb876f Assorted cleanup of Vulkan init code. Show Vulkan extensions in system info. 2017-08-28 13:47:31 +02:00
Unknown W. Brackets cc88435b48 Windows: Support multi-display full screen.
For when you have an ultrawide monitor, or I guess even multiple.
2017-07-30 09:14:36 -07:00
Unknown W. Brackets 626102e84a Windows: Use system API to toggle fullscreen.
Instead of having a special Host API for Windows only.
2017-07-30 07:51:53 -07:00
Henrik Rydgard a1e3be445a Don't use partial-restart unless debugger is present.
Works around #9666 for most practical purposes.
2017-05-21 17:25:00 +02:00
Unknown W. Brackets 793178c106 Windows: Initialize WindowsHost in EmuThread.
This seems like a more appropriate place, and a more appropriate thread,
for it to be initialized on.
2017-05-05 06:53:48 -07:00
Henrik Rydgard d3ff35b2c0 Fix to partial restarts (when switching backends), plus misc. Helps #9666 2017-05-05 12:31:06 +02:00
Henrik Rydgard 9a1cd5a5e8 Add some paranoid checks around touch IDs that probably won't help #9647
Also adds LunaMoo to credits list.
2017-04-30 08:57:44 +02:00
Unknown W. Brackets 3b4103cb3b System: Use a separate API for bool props.
This simplifies defaulting, instead of -1 being "true".
2017-04-29 17:35:12 -07:00
Unknown W. Brackets 960ffd2e85 Core: Remove bRestartRequired config hack. 2017-04-15 16:34:25 -07:00
Unknown W. Brackets e8e65881b8 Windows: Avoid restarting completely on GPU change.
This retains the logger, avoids an annoying window open/close, and most
importantly for me: keeps the debugger attached.
2017-04-15 16:33:30 -07:00
Henrik Rydgard cf365bb257 Minor cleanup with GOLD define - only use it in System_GetPropertyInt 2017-04-05 16:21:08 +02:00
Unknown W. Brackets e59ebf8ad9 Windows: Add option to browse for bg image.
And also to clear the image.
2017-04-02 10:50:09 -07:00
Henrik Rydgård 22782b6439 UWP: Fix DPI calculations for touch. Implement back button support. 2017-03-23 10:02:29 +01:00
Henrik Rydgard 4ced81b1df UWP: Hook up basic touch/mouse input. Start work on loading from a StorageFile. Getting closer to starting to boot a game 2017-03-23 10:02:28 +01:00
Henrik Rydgård aefad893f8 Windows: Start at a sensible window size if high-DPI. Avoids the worst of #9437 but does not fix it. 2017-03-17 13:22:00 +01:00
Henrik Rydgard 525df21751 Unbreak version check on Windows 2017-03-12 17:24:46 +01:00
Henrik Rydgård cfe2621604 LogManager: Hook up save/load, remove "long names" 2017-03-06 11:44:35 +01:00
Henrik Rydgård a1941d8a81 It's enough to call net::Init/Shutdown in NativeInit/Shutdown. Remove other calls. 2017-03-06 10:51:28 +01:00
Henrik Rydgård 7b0a942905 Add app-android.cpp/h to the Windows project just for editing convenience (excluded from build) 2017-03-06 10:42:29 +01:00
LunaMoo 3297d15b4d Add new backends to windows commandline. 2017-02-16 11:30:58 +01:00
Henrik Rydgard cbf24a9d78 Get rid of "AutoInit", instead always keep the network initialized.
See #9305
2017-02-14 13:12:02 +01:00
Henrik Rydgard b5034c4e00 Hide the D3D11 backend if Windows version is older than Win8 2017-02-14 10:33:42 +01:00
Henrik Rydgård 8b5048be72 Fix high-DPI rendering/input on Windows 2017-01-16 20:53:41 +07:00
Henrik Rydgard f4b1152b00 Pick some safe changes from the android gradle branch (including windows CMake fixes) 2016-12-05 16:52:03 +01:00
helloimowen a53bd5c812 Changed possibly incorrect return value.
After Windows 8, Microsoft stopped supporting GetVersionEX and
VerifyVersionInfo.
MSFT added "VersionHelperFunctions," but they aren't usable/viable at
the moment.
Related bug: https://github.com/hrydgard/ppsspp/issues/7894
2016-04-21 23:03:08 -04:00
Henrik Rydgård 54a37f9bb8 Merge pull request #8591 from unknownbrackets/thin3d
Use thin3d for softgpu drawing (+thin3d improvements)
2016-03-20 18:06:53 +01: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 841267c083 d3d9: Allow software rendering selection in UI. 2016-02-13 14:01:57 -08:00
Henrik Rydgard 35b6c7341b Fix a bunch of memory leaks, after enabling file+line-number memory leak tracking for the MS Debug CRT.
Few of these were serious, most were on-exit, but good to have a cleaner memory report after running.
2016-02-10 15:36:10 +01:00
Unknown W. Brackets aa0055cea7 Track the running GPU backend separate from config.
This way we can change the config directly when we want to save a new
setting, rather than having hacks to use a temp var.
2016-01-05 22:37:28 -08:00
Henrik Rydgard 15de6e6b98 GraphicsContext: Abstract away things like swapbuffers etc before adding even more backends.
Needed to prevent clutter all over the codebase.

Does not go all the way yet, goal would be a common render loop between platforms but not there yet.
2016-01-01 14:40:16 +01:00
Henrik Rydgård d5121cd974 Merge pull request #8306 from unknownbrackets/lang-fuzzy
Fuzzy match lang when user locale doesn't exist + XP support
2015-12-28 19:44:32 +01:00
Unknown W. Brackets 6e48f907dd Support minimize and maximize state.
Fixes #6893.  Minimize is mostly useful for tooling, and maximize is a
more user-friendly way of specifying a fullscreen shortcut.
2015-12-25 19:18:32 -08:00
Unknown W. Brackets 3fd67f9199 Attempt to determine lang/country on XP.
This will sometimes give numbers, but it's closer than assuming en_US.
2015-12-25 19:14:05 -08:00
Unknown W. Brackets 4b66c2b4ec Re-enable FMA3 on MSVC2015+ builds. 2015-12-22 23:22:16 -08:00
Henrik Rydgard 732b1239e7 Add some permission infrastructure, add an ugly button that asks you to grant STORAGE permission if necessary. 2015-12-17 22:41:50 +01:00