Commit Graph

2384 Commits

Author SHA1 Message Date
Henrik Rydgård
2c4a42a695 UWP: Make the home button say "Home" instead of "Browse...". 2020-12-20 01:47:49 +01:00
shenweip
aac4cbb1dc Changes the way of reading microphone data.
Feeds the microphone buffer continuously(Windows) and overwrites old data with new data when the buffer has no remaining space.
2020-11-22 01:17:25 +08:00
Henrik Rydgård
207b76da6e Show an error on screen if a shader fails to compile.
Part of #1 investigation of #13541
2020-11-05 08:27:13 +01:00
Henrik Rydgård
0292d1719d GEDebugger: Use utf-8 internally. 2020-11-02 10:02:52 +01:00
Henrik Rydgård
32eb882bc6 Clarify some logic, improve framebuffer names 2020-11-02 10:02:49 +01:00
Henrik Rydgård
5ee9cfef0d Remove support for D3D11_level_9 (previously only really used for Windows Phone, probably).
Can always fall back to D3D9, which is not going away anytime soon and
still needs to be there. One less HLSL variant to care about.
2020-10-29 00:52:19 +01:00
shenweip
a0fe0e38c1 SwicthUMD:Only update Switch UMD item of Windows menu instead of entire UI. 2020-10-22 17:45:29 +08:00
Henrik Rydgård
6cc8c2ebc1
Merge pull request #13328 from hrydgard/libretro-fixes
Fix libretro with Vulkan
2020-10-14 22:08:11 +02:00
Henrik Rydgård
495fd9a13c Fix OpenGL crash introduced in #13536 2020-10-11 22:34:37 +02:00
Henrik Rydgård
61567796a2 libretro: Fix screen size problem in Vulkan.
(Still something is slightly off, there are duplicated lines on screen.
Can't figure out what)
2020-10-11 20:26:39 +02:00
Henrik Rydgård
e97baa503a Avoid a division in time_now_d(). Minor optimizations. 2020-10-10 19:05:46 +02: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
dfb5cd37d9 Fix a recent bug in XinputDevice.h 2020-10-08 23:49:14 +02:00
Henrik Rydgård
886a8b1ac6 Remove Timer.cpp/h. Move various collections into Common/Data/Collections. 2020-10-05 21:05:23 +02:00
Henrik Rydgård
4310e35714 Windows: Remove the native project. 2020-10-05 06:56:10 +02:00
Henrik Rydgård
b236691548 Complete the eradication of D3DX9 compiler loader 2020-10-05 00:13:29 +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
342ed97291 Move input utilities from native to Common/Input. 2020-10-01 09:42:32 +02:00
Henrik Rydgård
15382d5f94 Move threading utils from native to Common 2020-10-01 09:27:25 +02:00
Unknown W. Brackets
f8391103a9 Windows: Correct some stdafx.h paths. 2020-09-29 23:25:22 -07:00
Henrik Rydgård
65617889dd Merge ext/native/ext/... directly into ext. 2020-09-30 00:30:42 +02:00
Henrik Rydgård
11ab77b995 Remove some TLS. 2020-09-29 15:51:51 +02:00
Henrik Rydgård
3162f30158 Merge base/basictypes.h into Common/Common.h (mostly). 2020-09-29 15:51:51 +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
054acf768c Don't cache time in a variable.
A little weirdness in the code that has stuck around for a long, long
time. It's really not necessary and mostly just confusing.
2020-09-24 23:52:43 +02:00
Henrik Rydgård
84b36d6e61 Speed up game start under Windows by not filling the symbol listbox until the disasm window is opened. 2020-09-24 00:32:52 +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
4ccde48485
Merge pull request #12924 from iota97/user-chain
Postprocessing: User chain support
2020-09-22 09:20:51 +02:00
iota97
fe86f257b5 Cache 60 FPS requirement 2020-09-15 07:49:01 +02:00
iota97
0c885db052 User chain support 2020-09-13 21:48:00 +02:00
Henrik Rydgård
cea35007ae Always use a linear filter for video, unless forcing NEAREST filtering. 2020-09-13 16:40:37 +02:00
Henrik Rydgård
a6084f6fee
Merge pull request #13420 from hrydgard/framebuffer-simplify
Framebuffer manager refactor: Don't cache framebuffer information in TexCacheEntry
2020-09-13 16:40:17 +02:00
shenweip
fbea8f438d Update symbol list of disassembly window when loadexec. 2020-09-12 19:45:25 +08:00
Henrik Rydgård
a24e2e6946 Minor cleanups in CaptureDevice 2020-09-12 12:30:44 +02:00
Unknown W. Brackets
b92fab88b6 Debugger: Add formats to breakpoint logging. 2020-09-06 13:56:18 -07:00
Unknown W. Brackets
6b8f7294b3 Global: Remove ARM64 define.
Was barely used anymore, and some users are specifying it when it's not
the case, so better to detect consistently.
2020-08-29 08:45:50 -07: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
b0ca635414 Windows: Show instance counter only with peers. 2020-08-18 06:59:49 -07:00
Henrik Rydgård
60801e066f Improve JPEG file detection (mainly for background image use) 2020-08-18 15:31:16 +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
06ab2159e9 Windows: Auto-enable GL validation (debug messages) in debug builds 2020-08-18 09:18:50 +02:00
Henrik Rydgård
5d64fc5ff1 Switch to PPSSPP's assert functions (don't use the system's) 2020-08-16 10:01:10 +02:00
Henrik Rydgård
80aa527f1a
Merge pull request #13288 from hrydgard/move-timeutil
Move timeutil to Common. (Experiment to see how much work it is to move these).
2020-08-15 23:44:23 +02:00
Henrik Rydgård
761ea58fb8 Merge branch 'cmake' of https://github.com/Kingcom/ppsspp into Kingcom-cmake 2020-08-15 21:35:46 +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
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
Henrik Rydgård
c41f875df4 Remove base/logging.h in a whole lot more places. 2020-08-15 19:09:00 +02:00
Henrik Rydgård
b43698a13d Remove most instances of base/logging.h from Common, Core, GPU, more 2020-08-15 19:08:44 +02:00
sorgts
a8a1c67df0 Fix build with clang-cl 2020-08-13 16:48:48 +02:00
sorgts
60d249a909 Fix Windows/CMake build with Visual Studio 2020-08-13 16:47:22 +02:00
Unknown W. Brackets
a0f8e788f3 Global: Move string number parse to text/parsers.
It's not used as much as the other string utils.
2020-08-10 07:05:23 -07: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
e6dfb55d3d Optimize value conversion in (unused) depth readback.
This also exposes factors we can feed into shaders to do the conversion
on the GPU.
2020-08-09 10:47:01 +02:00
Henrik Rydgård
d57edfbdac Rename FramebufferCommon.cpp/h to FramebufferManagerCommon.cpp/h for consistency 2020-08-03 23:17:22 +02:00
Henrik Rydgård
45b05b386b
Merge pull request #13229 from shenweip/UsbMic
Add basic Microphone support on Windows.
2020-08-01 19:26:35 +02:00
shenweip
5de721bb4c minor fix 2020-08-01 19:50:23 +08:00
shenweip
94aaf21ef2 Use UTF-8 code page to get the device names. 2020-07-31 10:25:26 +08:00
shenweip
c7e2eba231 Add basic Microphone support on Windows. 2020-07-31 10:24:17 +08:00
Henrik Rydgård
73166def93 Android: Reduce asserts during startup. 2020-07-28 19:06:29 +02:00
Henrik Rydgård
aebbff55f1 Some renaming and cleanup in the Android audio code 2020-07-28 14:24:40 +02:00
ANR2ME
33d3ac28de Added UPnP Support
Fix i18n type
2020-07-21 23:02:58 +02:00
Henrik Rydgård
3c29545014 Windows: Add command to load up a new identical instance of PPSSPP.
Useful for debugging adhoc multiplayer locally with the new multi-instance support.
2020-07-20 23:27:17 +02:00
Henrik Rydgård
fa0b9dc1bc Make the instance counter global and initialized at startup.
Turn off config saving for secondary instances.
2020-07-20 11:40:54 +02:00
Henrik Rydgård
47a3bf1dd7 Step 2 of removing PanicAlert 2020-07-19 20:34:02 +02:00
Henrik Rydgård
c5e0b799d9 Remove category from _assert_msg_ functions. We don't filter these by category anyway.
Fixes the inconsistency where we _assert_ didn't take a category but
_assert_msg_ did.
2020-07-19 20:33:25 +02:00
Henrik Rydgård
21f99259f3 Eliminate an unnecessary global g_Vulkan. 2020-07-18 22:50:26 +02:00
Henrik Rydgård
05ba88d20c Windows/Vulkan: Don't destroy the surface during resize, no need. 2020-07-18 21:43:27 +02:00
Henrik Rydgård
1897eed9b4 More buildfixes 2020-07-18 21:43:13 +02:00
Henrik Rydgård
e48cb916dd Buildfix 2020-07-18 20:43:47 +02:00
Henrik Rydgård
697c3b8b36 Cleanup log output on swapchain/surface recreation. 2020-07-18 20:35:39 +02:00
Henrik Rydgård
82bc6f6cc5 Windows ARM fix, cleanup 2020-07-14 13:47:25 +02: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
Henrik Rydgård
b58ca8af12
Merge pull request #12945 from unknownbrackets/io-timing
Make file open timing a bit more accurate
2020-07-13 13:37:53 +02:00
Henrik Rydgård
efc3f4f5e4 Split CORE_ERROR into CORE_BOOT_ERROR and CORE_RUNTIME_ERROR 2020-07-12 15:25:20 +02:00
Henrik Rydgård
cd1d73436d Vulkan: Recreate the swapchain if we get too many "out of date" frames.
Should help an issue on my Linux laptop with Intel GPU.
2020-06-22 00:45:05 +02:00
Henrik Rydgård
fbc4fa5bca Move the responsibility to register the debugutils callback to the VulkanContext. We only use one anyway. 2020-06-21 23:04:51 +02:00
Henrik Rydgård
6532c345c8 Simplify the validation interface code, bugfixes 2020-06-21 23:04:51 +02:00
Henrik Rydgård
1793b65ec1 Vulkan: Remove support for the old VK_EXT_debug_report extension 2020-06-21 23:04:51 +02:00
Henrik Rydgård
4e7944a353 Fix some bugs and style for #12994 2020-06-06 14:29:39 +02:00
Nikita Filippov
021e783b4a rudimentary serch function added for the memory dialog
fixed the memory addressing bug in search

the search box almost works

search now works, however the strings in search window neeed a fix

fixed the address display in search results

search works

fixed review comments, except .rc

preadjust the button placement

fixed rc
2020-06-06 14:23:26 +02:00
Unknown W. Brackets
1b6b0c1649 UWP: Buildfix for controller vibration. 2020-05-25 09:44:05 -07:00
Henrik Rydgård
104bf3915e
Merge pull request #12956 from unknownbrackets/project
Cleanup MSVC project a little and move git-version-gen
2020-05-24 11:03:26 +02:00
Unknown W. Brackets
bf11829836 Windows: Avoid calling git describe 3 times.
We only need to call it once per build, which should save a little build
time.  Of course, cl.exe takes longer, but still...
2020-05-23 16:56:27 -07:00
Unknown W. Brackets
9064bbcad1 Windows: Move git-version update to build event.
Doing it on each project made it possible for two to overwrite each other.
It's rare, but this could corrupt git-version.cpp.

This makes it run when Core is resolved, and also on Windows/Headless only.
It may still require two compiles to update, but that's not a new problem.
2020-05-23 13:34:41 -07:00
Unknown W. Brackets
2a2584ec23 Global: Add more other platforms to MSVC project.
To facilitate refactoring/searching files better.
2020-05-23 13:09:52 -07:00
Unknown W. Brackets
4c29697120 Debugger: Avoid symbol map if deleted.
This isn't perfectly safe, but if the game quits very quickly, it's
possible for the symbol map to get deleted.
2020-05-23 10:26:47 -07:00
Unknown W. Brackets
0f1f3507f6 Windows: Ask for a specific device on failure.
In case the new rules make things fail unexpectedly.
2020-05-22 00:19:59 -07:00
Unknown W. Brackets
9d1e31f6a0 Windows: Avoid WASAPI init for a bad format. 2020-05-21 23:39:29 -07:00
Unknown W. Brackets
cd90fb4d69 Windows: Avoid crash for a mono output format.
Let's just assume we're only going to get stereo formats.
2020-05-21 23:37:27 -07:00
Unknown W. Brackets
49abe9ed6c Io: Open sce_lbn references and whole ISO faster. 2020-05-21 18:58:24 -07:00
Unknown W. Brackets
477e988a68 GPU: Allow postshaders to have parents. 2020-05-16 12:33:35 -07:00
Henrik Rydgård
5e7a837ff9 Display the savestate slot number when saving and loading state through shortcuts. 2020-05-16 15:20:22 +02:00
Unknown W. Brackets
b6b0f11f6c UI: Allow postshaders on D3D9.
Since they work now - at least, some of the shaders do.
2020-05-13 18:10:09 -07: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
dddaa57392 Windows: Fix GL reinit on backend switch. 2020-05-09 12:20: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
b3b86bc2c2 Windows: Add safety checks to WASAPI code.
Seems to be crashing for some users.
2020-05-08 00:55:21 -07:00
Henrik Rydgård
134c9cfcb2
Merge pull request #12837 from Florin9doi/vs_pr
Update VS projects
2020-04-21 00:29:04 +02:00
Henrik Rydgård
5fbe369fd0
Merge pull request #12836 from unknownbrackets/d3d-depth
D3D11: Always use accurate depth
2020-04-19 14:02:50 +02:00
Florin9doi
7c92b1abda update VS projects 2020-04-19 09:19:13 +03:00
Unknown W. Brackets
4c5ed9f6aa Windows: Send resize when adjusting render mode.
If we flip this because of frameskip, we need to actually process.
2020-04-18 22:32:48 -07:00
TotalCaesar659
bbc6337263 Add "Switch UMD" menu point to Linux version 2020-04-18 21:08:20 +03:00
LunaMoo
e999444b23 Implement PPSSPP specific cheats:
0xA0 vibration cheat(Xinput)
Syntax is: 0xA0NNLLLL 0x00MMRRRR
where NN/MM is time vibration lasts LLLL/RRRR is the vibration power

0xA1 read value for the vibration(Xinput) from game memory
Syntax is: 0xA1000000 0xNNNNNNNN
where NNNNNNNN is the address that stores following values at offset:
0xNNNNNNNN + 0x0 Left Vibration power,
0xNNNNNNNN + 0x2 Right Vibration Power
0xNNNNNNNN + 0x4 Left Vibration time
0xNNNNNNNN + 0x6 Right Vibration time

Left some room for other PPSSPP specific cheats(0xA2-0xAF)
2020-04-16 23:00:29 +02:00
Unknown W. Brackets
fd0bf21215 Windows: Prevent applying -1 as inset space. 2020-04-05 17:06:36 -07:00
Unknown W. Brackets
84981631ea Windows: Ensure we resize after hw transform swap. 2020-04-05 15:23:46 -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
Henrik Rydgård
310e1e4f18 Fix capitalization of mfreadwrite.h include 2020-03-10 15:20:13 +01: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
Henrik Rydgård
3e6050beac Minor cleanups 2020-03-08 14:35:25 +01:00
Henrik Rydgård
8f2a52ccab Merge branch 'rechat' of https://github.com/ANR2ME/ppsspp into ANR2ME-rechat 2020-03-08 14:28:10 +01:00
Unknown W. Brackets
051a84e9bd GPU: Restart when changing inflight frames setting.
We need to keep the push and pull in step, so changing at runtime is
messy.
2020-03-02 19:21:15 -08:00
ANR2ME
142e60974c Merge branch 'rechat' of https://github.com/adenovan/amultios-ppsspp into rechat 2020-03-02 22:25:18 +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
Henrik Rydgård
2ec82951a0
Merge pull request #12659 from unknownbrackets/vsync
Support vsync in all hardware backends, support runtime update
2020-03-01 09:52:14 +01:00
Unknown W. Brackets
bc90faebf7 D3D9: Allow vsync change at runtime. 2020-02-29 22:48:58 -08:00
Unknown W. Brackets
6f86b6fdbe D3D11: Respect vsync setting.
Fixes #12493.
2020-02-29 22:48:58 -08:00
Unknown W. Brackets
2a3fd05651 Vulkan: Present using FIFO for vsync.
This allows the setting to be changed at runtime in Vulkan too.

Should help #10105.
2020-02-29 22:48:59 -08:00
Henrik Rydgård
aea3cf74f0 Remove support for "lowmem" UI atlas. Had to regenerate unfortunately. 2020-02-29 19:00:52 +01:00
Henrik Rydgård
d35fd5040d Delete unused support for ETC1 texture compression 2020-02-29 17:50:35 +01:00
Henrik Rydgård
e4cf97557a Recreate the VS projects in 2017 2020-02-29 16:56:28 +01:00
Henrik Rydgård
2bf92c5d97 Atlastool/zimtool: Make it easy to build these on Windows (prebuilt submodule) 2020-02-29 12:19:08 +01: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
shenweip
3f585782f1 Don't shut down camera when exiting games,also re-enumerating devices if
received WM_DEVICECHANGE.
2020-01-24 16:05:28 +08:00
Henrik Rydgård
97c81ac5a2 Partial workaround for #12588. Cameras are now gone from settings though after playing one game... 2020-01-21 20:57:26 +01:00
Florin9doi
09e32223c2 Add camera support for linux (V4L2) 2020-01-16 23:25:34 +02:00
Henrik Rydgård
96e7281b20
Merge pull request #12572 from shenweip/Capture_Win
Add camera support for windows.
2020-01-15 20:03:10 +01:00
shenweip
d1e354ce04 Improve compatibility.
Don't implemente on vista and UWP,they don't have a full support for this.
2020-01-14 17:15:11 +08:00
shenweip
5c4a1e00fc BuildFix 2020-01-14 08:19:44 +08:00
shenweip
034a257baf Add camera support for windows. 2020-01-13 15:06:02 +08:00
Tamás
91f491a0a8
Upload new Gold icon for Windows
Includes 256x256 size.
2020-01-12 10:11:41 +01:00
Unknown W. Brackets
9b745d4730 Windows: Mark PPSSPP as long path aware.
Fixes #12503, but must be enabled.
2020-01-04 11:15:34 -08:00
Unknown W. Brackets
5b5ded058c Windows: Support long My Documents paths. 2020-01-04 10:57:23 -08:00
Unknown W. Brackets
9ff95edb89 Windows: Allow longer paths in browse for folder. 2020-01-04 10:33:19 -08:00
Unknown W. Brackets
6706fef58a Windows: Make memory dump long path friendly. 2020-01-04 10:32:48 -08:00
Unknown W. Brackets
c222ff0bf7 Windows: Allow read only files in load dialog. 2020-01-04 09:35:00 -08:00
Unknown W. Brackets
97ac18ceee Windows: Make open/save dialogs long path aware.
At least, in most cases.  If the filename is super long, it'll open twice,
but we try to avoid.
2020-01-04 09:34:20 -08:00
Unknown W. Brackets
46464d2722 Windows: Resolve module/full paths for long paths. 2020-01-04 09:02:10 -08:00
Henrik Rydgård
4f7c23fe79 DarkStalkers: Fix display on OpenGL ES. 2019-10-27 20:54:36 +01:00
Henrik Rydgård
767b1e45b2 Fix the build - there's a Vec3 name collision, fixed it using a namespace. 2019-10-22 22:58:10 +02:00
Henrik Rydgård
cb463b569a WASAPI: Discovered by chance that pwstrDeviceId can be null. Treating it as a new device. 2019-10-11 14:29:02 +02:00
Unknown W. Brackets
2eee84b5ce Switch: Add basic defines for checks/reporting. 2019-09-28 09:00:20 -07:00
Henrik Rydgård
f57b8b19d2 Windows: Kill the mouse wheel release timer after it's used to prevent spamming keyup events. 2019-09-03 00:02:03 +02:00
Henrik Rydgård
7610220b30 Vulkan: Prepare for adding a second init path for VulkanContext.
Will eventually be used for libretro.
2019-09-01 22:21:19 +02:00
Henrik Rydgård
c619a20a65 Fix display of memory view window on high-DPI displays. Fixes #11913. 2019-08-23 16:01:27 +02:00
Henrik Rydgård
3bc3f3e969 WASAPI: Add some missing error checks. May help #12081? (but will result in silence) 2019-08-09 10:04:09 +02:00
LunaMoo
6a37389b5e Move WM_MOUSEWHEEL back to WndProc to fix wheel events not working in Win 7. 2019-07-31 13:04:26 +02:00
LunaMoo
1f64e81f9e Update all values for mouse axis. 2019-07-15 02:45:08 +02: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
Silent
0b5458f759
Remove KeyboardDevice which was essentially useless
Refactor InputDevice to simplify it
2019-07-02 19:17:52 +02:00
Silent
1acaec2494
Support falling back to xinput9_1_0.dll if neither xinput1_4.dll or xinput1_3.dll are present. This can happen on a Windows XP, Vista or 7 PC without DirectX End-User Runtimes installed.
Clean up XinputDevice.cpp from unused imports
2019-07-02 19:17:52 +02:00
Silent
71ab845564
Windows: Fix an exit crash by not destroying the window in CGEDebugger destructor - this window (and displayList) have already been destroyed and freed at that point 2019-07-02 19:17:44 +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
Henrik Rydgård
e8aad38e77
Merge pull request #12139 from unknownbrackets/win-minor
Windows: Fix leak on folder browse
2019-06-27 09:19:12 +02:00
Unknown W. Brackets
ceb59c4649 Windows: Fix leak on folder browse. 2019-06-26 22:19:38 -07:00
Henrik Rydgård
aff429ee09 For the non-vulkan backends, zero display rotation settings just to be sure. 2019-06-24 10:30:32 +02:00
Henrik Rydgård
068ec3059b
Merge pull request #12118 from unknownbrackets/gpu-config
Add a hidden ini setting to disable graphics backends
2019-06-22 22:46:06 +02: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
LunaMoo
b53e80c5aa Fix mouse scroll by releasing with a delay using timer(16ms)
Also moved WM_MOUSEWHEEL to DisplayProc where it works fine now.
2019-06-18 02:15:00 +02:00
LunaMoo
da031ebbdb Fix avi dump via render buffer instead,
with an option to use output buffer since recording with
post process effects will often be desirable.
2019-06-04 07:54:17 +02:00
LunaMoo
57bd3c63f4 Block savestates OSM when video frames are dumped.
Also make the dump messages shorter,
especially dump start since it will be recorded.
2019-05-27 23:43:39 +02: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
f7a2fc963d Vain attempt to make the Windows buildbot happy, after LunaMoo's comment in #12052 2019-05-20 10:57:37 +02:00
Henrik Rydgård
7218bda9a5 Oops, this was left for debugging. 2019-05-19 16:03:18 +02:00
Henrik Rydgård
efa1406d8f VS2017: Add hack to automatically select the newest installed Windows 10 SDK. VS2019 already does this by default if you specify 10.0.
Should hopefully fix the buildbot.
2019-05-19 15:23:25 +02:00
Henrik Rydgård
33c53eebe9 D3D11 init: Release pFactory at the appropriate place. 2019-05-16 00:37:06 +02:00
Henrik Rydgård
6117e37a14 D3D11: Also properly check for the no-adapters case. 2019-05-15 22:58:45 +02:00
Henrik Rydgård
0320b4961b Add a missing error check to the D3D11 device creation. May help #12039? 2019-05-15 22:55:24 +02:00
Henrik Rydgård
ff7a85cc2f
Merge pull request #12032 from driver1998/d3dcompiler
POC: D3DCompiler on D3D9
2019-05-14 22:54:30 +02:00
driver1998
cdaa8d2609 fix git-version-gen on normal commits (without tag) 2019-05-13 19:05:57 +08:00
LunaMoo
2da9de9fe7 Fix typo which disabled GEDebugger 2019-05-12 17:50:25 +02:00
driver1998
21d2008676 Use D3DCompiler_47.dll for D3D9 context. 2019-05-12 11:17:10 +08:00
Henrik Rydgård
ff65b813d9 Assorted warning fixes 2019-05-10 23:26:34 +02:00
Henrik Rydgård
2f26297062 Clean up some more ifdefs 2019-05-10 23:25:57 +02:00
Henrik Rydgård
20d666ff55 Remove DbgNew.h forced include in ARM debug builds, doesn't work for some reason. 2019-05-10 23:18:31 +02:00
Henrik Rydgård
1f40aa4828 Add WindowsSDKDesktopARM64Support to vcxproj files 2019-05-10 22:44:12 +02:00
Henrik Rydgård
c3fab33354 Revert "Remove default SDK version from project files"
Seems to have been the wrong thing to do, see:
https://developercommunity.visualstudio.com/content/problem/140294/windowstargetplatformversion-makes-it-impossible-t.html

Though due to the bug described there, there's no perfect solution, just
some ugly ones (which I might try later). Anyway, I guess most people
will move on to VS 2019 anyway..

This reverts commit 056494522e.
2019-05-09 23:58:23 +02:00
driver1998
7b7dede420 Fix D3D11 context on Windows ARM Debug
debug layers are not available on ARM32/ARM64 (D3D*SDKLayers.dll not available), so disable it.
2019-05-05 01:19:16 +08:00
driver1998
e3213b14ee Remove unnecessary ifdefs 2019-05-05 01:15:32 +08:00
driver1998
87f43d51ef Fix UnixTests and HeadlessHost on ARM 2019-05-04 23:56:55 +08:00
driver1998
0aa33d53c0 Disable features not available on Windows ARM32/ARM64
ARM32: OpenGL & DirectInput
ARM64: OpenGL
2019-05-04 22:45:16 +08:00
driver1998
763b85d723 Update Visual Studio project files for Windows ARM32/ARM64 2019-05-04 22:45:15 +08:00
LunaMoo
056494522e Remove default SDK version from project files 2019-04-27 23:01:41 +02:00
LunaMoo
280f7fec39 Fix VS2019 builds and remove _xp dependency
(drops Win XP support, allows latest SDK etc.)
2019-04-25 23:56:55 +02:00
Henrik Rydgård
8f4bafea9c
Merge pull request #11932 from unknownbrackets/funchash
Debugger: Prevent saving a -1 sized func
2019-03-24 21:19:43 +01:00
Unknown W. Brackets
f53ea7e44f Debugger: Prevent saving a -1 sized func. 2019-03-24 13:00:05 -07:00
Henrik Rydgård
8adb0dfd61 Vulkan validation: INFO level has gotten too spammy, turn it off. 2019-03-24 11:56:51 +01:00
Henrik Rydgård
4d5af330a7 Windows: Change FP model to Precise. See #11384 2019-03-14 10:59:35 +01:00
Henrik Rydgård
c77af182af
Merge pull request #11867 from unknownbrackets/ui-menu
Fix Windows help menu
2019-03-04 08:11:52 +01:00
Unknown W. Brackets
f2206158b2 UI: Update more browser links to https://. 2019-03-03 21:39:21 -08:00
Unknown W. Brackets
c821ad1d51 Windows: Link to https://. 2019-03-03 21:35:05 -08:00
Unknown W. Brackets
7428216063 Windows: Clear help menu correctly. 2019-03-03 21:34:32 -08:00
Henrik Rydgård
e74be9c492 DPI fixes in the old Win32 debugger. Fixes #11856.
Also some general cleanup of it but decided it wasn't worth it to continue.
2019-03-03 09:19:44 +01:00
Henrik Rydgård
0cd3ac06d0 Avoid trying to create a FileLoader for empty filenames
Assorted cleanup
2019-02-25 21:35:51 +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
4d8f3c48ad
Merge pull request #11809 from unknownbrackets/ui-minor
Windows: Hide accelerators when they are disabled
2019-02-17 22:58:55 +01:00
Unknown W. Brackets
6bc596d3a7 Windows: Hide accelerators when they are disabled.
Currently, mapping something to load state / save state / etc. causes the
default accelerators to become disabled.  In this case, it can be
confusing when the menu still shows them.

Fixes #11395.
2019-02-17 12:17:41 -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
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
23dd47ab77 Make "Show FPS Counter" in the Windows menu actually show fps, not just speed 2019-02-09 11:23:14 +01:00
Henrik Rydgård
d15e71915a Add missing break statement fixing bizarre language menu issue from #7929 2019-02-06 19:57:44 +01:00
Henrik Rydgard
478b0b4278 Further improve VK extension loading. Switch to VK_EXT_debug_utils (but fallback to VK_EXT_debug_report if only that is available). 2019-02-05 21:31:38 +01:00
Henrik Rydgard
8e1a5ef3d6 Minor refactor of physical device property/feature detection, to allow for more extension use. 2019-02-05 18:07:17 +01:00
Henrik Rydgard
f339a0c15b VK: Minor cleanup, turn off unfinished and probably wrong use of dedicated allocation feature 2019-01-31 14:09:21 +01:00
Cody Tilkins
cb9a946f1e
Merge pull request #2 from tilkinsc/patch-2
Update build-x64.cmd
2019-01-16 11:43:35 -05:00
Cody Tilkins
05f53a0fe3
Update build-x64.cmd 2019-01-16 11:41:01 -05:00
Cody Tilkins
1771cea5a3
Added " guards to if not exists
The reason why I added this is a just-in-case due to the nature that cmd explodes when something isn't set properly... it can start executing code that shouldn't be obtained.

I also fixed a minor formatting error
2019-01-16 11:39:34 -05:00
Unknown W. Brackets
adeca2c3ba GLES: Move some vendor bug checks to Draw. 2018-12-23 20:27:22 -08:00
xebra
4b2c18bb23 GE Debugger: Minor fix step count dialog. 2018-12-24 04:23:03 +09:00
Unknown W. Brackets
00051fd628
Merge pull request #11641 from xebra/improve_stepcount
GE Debugger: Add step count dialog.
2018-12-20 19:26:44 -08:00
xebra
f64156c8e7 GE Debugger: Improve step count dialog. 2018-12-18 00:27:02 +09:00
Henrik Rydgård
60a81a6144
Merge pull request #11658 from unknownbrackets/ui-minor
Windows: Hide Vulkan/D3D11 if not available
2018-12-11 12:13:00 +01:00
Unknown W. Brackets
02d2aa4069 Windows: Hide Vulkan/D3D11 if not available.
We only were doing this in the settings screen before.  Fixes #11657.
2018-12-10 23:05:15 -08:00
xebra
070e29d921 Disable "Edit & Continue" with VS debug mode. 2018-12-07 13:01:16 +09:00
xebra
21bdc2b4c9 GE Debugger: Add step count dialog. 2018-12-06 18:16:54 +09:00
Unknown W. Brackets
f88dc9e821 GE Debugger: Allow relative prim counts. 2018-12-01 15:50:20 -08:00
Unknown W. Brackets
e029168be2 GE Debugger: Allow jumping to a specific prim.
This will make the most sense when frames are relatively stable, and works
great for GE dumps.
2018-12-01 06:40:27 -08:00
Unknown W. Brackets
4d5c8fcff4 GE Debugger: Track a counter of prims. 2018-12-01 06:26:35 -08:00
Unknown W. Brackets
db7cdce27c Windows: Define menu item text in menu only.
Except Run/Stop which changes, let's not use this parameter.
2018-11-28 22:06:47 -08:00
Unknown W. Brackets
46063961a8 Windows: Translate all items by id, not position.
Fixes #11571.
2018-11-28 21:46:55 -08:00
Henrik Rydgård
c1e1076c68
Merge pull request #11577 from unknownbrackets/lighting
Correct provoking vertex for lighting when flat shading
2018-11-23 09:32:16 +01:00
Unknown W. Brackets
529efded1c GE Debugger: Fix display of raw normals. 2018-11-22 17:53:36 -08:00
Henrik Rydgård
429a1fce01 Assert even in release mode if preset shaders fail to compile. This is just to help track down a Play crash. 2018-11-21 18:14:26 +01:00
Unknown W. Brackets
184ae2f93c GE Debugger: Fix type conversion warning. 2018-11-17 08:57:59 -08:00
Henrik Rydgård
7561af3735
Merge pull request #11523 from mrfixit2001/master
Add frameskip setting by percent of current FPS
2018-11-04 19:35:03 +01:00
Henrik Rydgård
22c066515e
Merge pull request #11425 from xebra/refactor_spline_bezier
[Refactoring] Improve spline/bezier.
2018-11-04 17:04:29 +01:00
root
42c50a0ab0 Fixes for Unknown 2018-11-04 01:59:37 +00:00
root
c19d3fe06a MRFIXIT2001: This patch adds a second frameskip setting, one for setting the # of frames to skip, one for setting the % of frames to skip based off fps 2018-11-03 01:33:41 +00:00
Henrik Rydgård
e7ac302384
Merge pull request #11488 from dl471/memview-show-offsets
Windows: Option to show offset scale in memory view
2018-11-02 11:30:33 +01:00
Henrik Rydgård
f74f6083a7
Merge pull request #11509 from unknownbrackets/desktop-gles
GLES: Add disabled code to run GLES on desktop
2018-11-02 11:09:46 +01:00
Unknown W. Brackets
d30d75ab38 Windows: Check for devices on Windows events only.
A user reported stuttering after the periodic checks, and devices failing
until unplug/replug.  Presumably, this is caused by poor drivers reacting
badly to periodic DirectInput queries, so less queries should help.
2018-11-01 21:42:12 -07:00
Unknown W. Brackets
dc54ed6855 GLES: Add disabled code to run GLES on desktop.
Helps when testing certain extensions, etc.
2018-10-28 14:29:44 -07:00
dl471
f68fed7da5 Fix whitespace 2018-10-24 00:15:51 +01:00
dl471
7f3aaaa0f7 Readability improvements
-Change variable names related to offsets for consistency

-Add a few comments
2018-10-22 15:56:37 +01:00
dl471
b25adc7ba8 Implement drawing of offset scale
-Add function to draw offset

-Add checkbox to allow toggling of offset writing

-Set writeOffsets default value to Off

-Ensure the drawing and user input is not affected by the offset
2018-10-22 03:31:10 +01:00
dl471
c11cfe37f8 Implement saner making space for offsets
-Adjust the y coordinates of the rows as they are drawn

-Adjust visible rows

-Adjust clicks
2018-10-22 03:31:02 +01:00
dl471
f52b888186 Make space for offsets (dirty implementation) 2018-10-22 03:30:30 +01:00
Henrik Rydgård
0ad166d204 Make sure to save the config while changing backends using the menu bar. Should help #11465 2018-10-10 21:55:10 +02:00
Unknown W. Brackets
52e2e0763a Windows: Detect DirectInput devices after launch. 2018-10-08 21:21:37 -07:00
xebra
5f9022ae14 [spline/bezier]minor fix 2018-10-07 23:54:29 +09:00