Commit graph

2836 commits

Author SHA1 Message Date
Connor McLaughlin 9d7f4523b0 Log: Close C file handles on free (win32)
Fixes toggling console not hiding the window.
2021-01-09 01:52:48 +10:00
Anderson_Cardoso 693b070889
Atualização Português do Brasil
Could you please make the following strings available for translation in Android? 

- Theme
- Downsampling
- Controller Mapping
- Use analog Sticks for D-Pad
- Disable All Enhancements 
- Threaded GPU Presentation
- Clear Bindings (in controller mapping options menu)
- Port 1 / Port 2 (in controller mapping options menu)
- Hotkeys (in controller mapping options menu)
2021-01-08 11:51:46 -03:00
Connor McLaughlin 9951921a6d Log: Enable virtual terminal processing on Win32
This way we don't need to set the registry value.
2021-01-09 00:39:32 +10:00
Connor McLaughlin b0398f5aa7 Qt: Add shutdown without saving menu option 2021-01-09 00:23:02 +10:00
Connor McLaughlin 6a04803502
Merge pull request #1394 from piepacker/msw_console_behavior
Console: Fix problems when using CLI from MSYS2/GitBash/ConEmu
2021-01-09 00:22:37 +10:00
Connor McLaughlin 5add87c8ad
Merge pull request #1410 from ggrtk/get-analog-input-bytes
Controller: Add method for reading analog input bytes
2021-01-09 00:19:38 +10:00
Connor McLaughlin c6da182232
Merge pull request #1412 from ggrtk/sdl-rumble-duration-fix
CommonHostInterface: Update rumble every frame regardless of change
2021-01-09 00:17:46 +10:00
Connor McLaughlin 8d56a3d186
Merge pull request #1414 from zkdpower/master
Update Simple-Chinese language file to latest
2021-01-09 00:17:18 +10:00
zkdpower bfd4273f2c
Update Simple-Chinese language file to latest
Update Simple-Chinese language file to latest
2021-01-08 21:56:09 +08:00
Albert Liu d860c14267 CommonHostInterface: Update rumble every frame regardless of change
Fixes SDL rumble cutting off early when a game sends the same motor
strength values every frame over a long duration.
2021-01-07 18:30:43 -08:00
Albert Liu 5ff3299384 Controller: Add method for reading analog input bytes 2021-01-07 15:04:23 -08:00
Connor McLaughlin 419726f4cc Remove libretro core - core will now be maintained by libretro
libretro have agreed to take over maintenance of the core.

Please see their fork at https://github.com/libretro/duckstation if you
wish to continue to use it.
2021-01-08 01:37:59 +10:00
Jake Stine f26b094cf7 Console: Use ANSI escape codes and remove entirely Win32's legacy WriteConsoleA code.
Also fixes android build failure (missing unistd.h)
2021-01-07 07:05:33 -08:00
Connor McLaughlin 24c373245e MemoryCard: Make formatting OSD message translatable 2021-01-07 12:15:57 +10:00
Connor McLaughlin d86fc03ecb
Merge pull request #1391 from andercard0/patch-60
Atualização Português do Brazil
2021-01-07 12:15:24 +10:00
Connor McLaughlin ee60c02e0a
Merge pull request #1402 from zkdpower/master
Update Simple-Chinese language file to latest
2021-01-07 12:15:16 +10:00
Connor McLaughlin 5eca471624
Merge pull request #1403 from RaydenX93/update_it_20210106
Italian Language Update
2021-01-07 12:15:01 +10:00
RaydenX93 3f11cb1de1 Update duckstation-qt_it.ts 2021-01-06 18:44:54 +01:00
zkdpower 7de3fafff6
Update Simple-Chinese language file to latest
Update Simple-Chinese language file to latest
2021-01-07 00:43:46 +08:00
Silent de075fffc3
Register more glyph ranges supported by Roboto
Adds support for Polish, makes Russian use a default font
2021-01-05 18:17:18 +01:00
Jake Stine c9b8dc13fd Console: Fix problems when using CLI from MSYS2/GitBash/ConEmu
- Fix issue where console output is lost when running from MSYS2/GitBash CLI
 - Fix issue where pipe redirections would be overridden and otuput would always go to the attached console (this affected windows cmd prompt as well as other shell CLIs)
 - Simplify some logic regarding registering of the standard output writer
2021-01-05 07:35:11 -08:00
Connor McLaughlin f832dca975 Bus: Don't force inline EXP1/EXP2 access 2021-01-06 01:02:30 +10:00
Connor McLaughlin f3cdfe97a7 Bus/EXP2: Support openbios putc address 2021-01-06 00:56:35 +10:00
Anderson_Cardoso 7f22dc4199
Atualização Português do Brazil
Android - Strings not available for translation as follows:

- Theme
- Down sampling
- Controller Mapping
- Use analog Sticks for D-Pad
- Disable All Enhancements 
- Threaded GPU Presentation
- Clear Bindings (in controller mapping options menu)
- Port 1 / Port 2 (in controller mapping options menu)
- Hotkeys (in controller mapping options menu)
2021-01-05 11:49:36 -03:00
Connor McLaughlin 845cd37835 DMA: Determine slice size based on whether pad is transmitting
Plenty of games seem to suffer from this issue where they have
a linked list DMA going while polling the controller. Using a
too-large slice size will result in the serial timing being off,
and the game thinking the controller is disconnected. So we
don't hurt performance too much for the general case, we reduce
this to equal CPU and DMA time when the controller is
transferring, but otherwise leave it at the higher size.
2021-01-06 00:15:42 +10:00
Connor McLaughlin 98a4e59f52 Qt: Fix some strings not being translatable 2021-01-06 00:15:42 +10:00
Bekon241 a5078d7e35
Zuzia pl language support (#1384)
* Update duckstation-qt_pl.ts
2021-01-05 18:01:28 +10:00
Connor McLaughlin 25b0b72566
Merge pull request #1383 from zkdpower/master
Update Simple-Chinese language file to latest
2021-01-05 18:00:25 +10:00
Connor McLaughlin a6e1b3c4ad
Merge pull request #1389 from ggrtk/ps3-bios-size
BIOS: Add check for older BIOS from PS3
2021-01-05 17:59:57 +10:00
Connor McLaughlin cdefcf7359 HostInterface: Log when all enhancements are disabled by config 2021-01-05 17:58:55 +10:00
Albert Liu 79012d5288 BIOS: Add check for older BIOS from PS3
Same revision number as newer PS3, but different file size and 512KB
hash.
2021-01-04 23:54:42 -08:00
Connor McLaughlin 0534f36b8d D3D11HostDisplay: Fix incorrect format support check
Was resulting in RGB565 textures trying to be created when unsupported.
2021-01-05 17:47:59 +10:00
Connor McLaughlin e3de44d127 D3D11/Texture: Log attributes when creation fails 2021-01-05 17:19:05 +10:00
Connor McLaughlin 8f5c20bdf5 BIOS: Improve robustness of BIOS searching
Always prefer a known BIOS image over an unknown image. Hopefully this
will stop people getting crashes on startup due to other files in the
BIOS directory confusing it.
2021-01-05 12:22:18 +10:00
Connor McLaughlin 5cd261a5b2 BIOS: Only match PS1 and PS2 BIOS images exactly 2021-01-05 12:22:13 +10:00
zkdpower c0dfc49db3
Update Simple-Chinese language file to latest
Update Simple-Chinese language file to latest
2021-01-05 03:36:07 +08:00
Connor McLaughlin c3b0a87029 CommonHostInterface: Move settings filename to start of class 2021-01-05 00:58:32 +10:00
Connor McLaughlin 9056db0a0f Qt: Add Polish translation by Zuzia and Seba 2021-01-05 00:46:41 +10:00
Connor McLaughlin 73f6521452 SPU: Check voice addresses on IRQ re-enable
NASCAR 2001 music depends on the IRQ firing multiple times, when the
voice address is still set to the IRQ address.
2021-01-05 00:46:41 +10:00
Connor McLaughlin e3262fc0a4 CPU: Compile fix for debug builds 2021-01-05 00:46:41 +10:00
johnnyruz f7b0c0f493
Add cli parameter to override default settings file (#1375)
* Add cli parameter to specify alternate settings file

* fix issue with error message string parameter
2021-01-05 00:46:16 +10:00
Connor McLaughlin 35fdae0d95
Merge pull request #1372 from ggrtk/analog-controller-refactor
AnalogController: Refactor data transfer implementation
2021-01-05 00:45:37 +10:00
Anderson_Cardoso 2898d27c53
Atualização Português do Brazil
Android - Strings not available for translation as follows:

- Theme
- Downsampling
- Controller Mapping
- Use analog Sticks for D-Pad
- Disable All Enhancements 
- Threaded GPU Presentation
- Clear Bindings (in controller mapping options menu)
- Port 1 / Port 2 (in controller mapping options menu)
- Hotkeys (in controller mapping options menu)
2021-01-03 16:08:42 -03:00
Connor McLaughlin affffca3da GPU/HW: Set max resolution scale to 32
The UI is intentionally left at 16x. Going too high **will** make you
run out VRAM and your system will start acting strangely. But for those
people who really want to do it, you can go 32x in Vulkan with the SDL
frontend, or by setting it in the ini.
2021-01-04 03:11:14 +10:00
Connor McLaughlin 9ff8130e40 fixup! CPU: Make trace-to-file toggleable at runtime and in release builds 2021-01-04 03:11:14 +10:00
PugsyMAME c9b75f7490 Updated DebuggerWindow Files for Tracer 2021-01-04 03:11:14 +10:00
Connor McLaughlin bf1d51b5d8 CPU: Make trace-to-file toggleable at runtime and in release builds 2021-01-04 03:11:14 +10:00
PugsyMAME 4b7820d1e5 Icon For Tracer 2021-01-04 03:11:14 +10:00
Connor McLaughlin f369e3c476 HostDisplay: Fix vram pixels bleeding into edges of display with linear filtering 2021-01-04 03:11:14 +10:00
Albert Liu 04884257d6 AnalogController: Refactor data transfer implementation 2021-01-03 09:09:49 -08:00
Connor McLaughlin b3bf9f3f10 GameSettings: Fix compilation with libretro 2021-01-03 19:06:24 +10:00
Connor McLaughlin 4eee5ebdb7 Android: Add per-game settings and properties UI 2021-01-03 18:30:06 +10:00
Connor McLaughlin 6ff73f35bd GameSettings: Add string key accessors 2021-01-03 17:26:51 +10:00
Connor McLaughlin 0de34d7bf7 DMA: Increase precision for large transfers
Also gets rid of the delay on the GPU side for writing to VRAM (doesn't
make sense), and it's not needed since we slice the block transfers now.

Fixes palette corruption in Vigilante 8, and missing rider in
Championship Motocross 2001 featuring Ricky Carmichael.
2021-01-03 16:11:42 +10:00
Connor McLaughlin c9ef3ec1a3 DMA: Clear state on shutdown
Fix a rare crash where the GPU starting after a second boot accesses
uninitalized DMA fields.
2021-01-03 14:48:02 +10:00
Connor McLaughlin 2ec26e54b7 GPU/HW: Disable downsampling when using 24-bit display
It's dropped to 1x first anyway.
2021-01-03 12:18:21 +10:00
Connor McLaughlin 0d281538cf CDImageCue: Disable implicit pregap insertion for audio CDs
Fixes supplementary disc detection in Dancing Stage
featuring DREAMS COME TRUE.
2021-01-02 01:33:13 +10:00
Connor McLaughlin a63a6b7a20 Qt: Update Japanese translation by mikakunin 2021-01-01 19:58:54 +10:00
Connor McLaughlin 40257e5b20 GPU/HW: Don't set m_pgxp_depth_buffer when PGXP is disabled
Fixes text corruption in Castlevania when PGXP is disabled and depth
buffer is enabled.
2021-01-01 17:49:20 +10:00
Connor McLaughlin c9240eea72 CPU/Recompiler: Use PGXP interpreter for fallback
Fixes holes in geometry with PGXP enabled in Threads of Fate.
2021-01-01 17:16:55 +10:00
Connor McLaughlin 4e87b30b40 System: Skip throttler phase reset when running at <100% 2021-01-01 14:08:09 +10:00
Connor McLaughlin 04a187afb2 CDROM: Fix read error/unlicensed flag getting set on all discs
Regression from 75aa52ab06.
2021-01-01 03:00:16 +10:00
Connor McLaughlin 75aa52ab06 CDROM: Fail reads immediately for audio/unlicensed CDs
Fixes first track being unavailable on audio CDs in Vib-Ribbon.
2021-01-01 01:38:14 +10:00
Connor McLaughlin 9294bf6be3 CDROM: Keep target location even after failed seeks 2021-01-01 01:37:51 +10:00
Connor McLaughlin 187de65f50 CDROM: Reset disc position to start after switching discs 2021-01-01 00:01:13 +10:00
Connor McLaughlin 3ffbbe82e8 SDLControllerInterface: Use SDL_GameControllerRumble where supported
Allows vibration on DualShock 4 without using DS4Windows.
2020-12-31 19:41:51 +10:00
Connor McLaughlin 4f32f2f915
Merge pull request #1357 from zkdpower/master
Update Simple-Chinese language file to latest
2020-12-31 19:41:23 +10:00
Connor McLaughlin aa0eb5153e
Merge pull request #1358 from ggrtk/qt-displaysettings-text
Qt/DisplaySettingsWidget: Fix recommended value not being translated
2020-12-31 19:41:04 +10:00
Albert Liu dde5a4e2d8 Qt/DisplaySettingsWidget: Fix recommended value not being translated 2020-12-31 01:07:24 -08:00
Connor McLaughlin 6d501bff56 GL/Program: Use glBindFragDataLocationIndexedEXT for GLES 2020-12-31 13:29:41 +10:00
zkdpower 041880df34
Update Simple-Chinese language file to latest
Update Simple-Chinese language file to latest
2020-12-31 07:47:25 +08:00
Connor McLaughlin 5690aef057 CDROM: Send seek error when read+seeking to audio sector
Fixes hang in Vib-Ribbon when using an audio CD.
2020-12-31 03:19:51 +10:00
Connor McLaughlin f911e90e17 CDROM: Hopefully fix crash in debug window when reading lead-out 2020-12-31 02:10:49 +10:00
Connor McLaughlin 02377b1a92 CPU/CodeCache: Fix possible crash on invalidate->recompile->overflow 2020-12-31 02:10:49 +10:00
Anderson_Cardoso 1f10bdd7cd
Atualização Português do Brasil
Update Portuguese Brazil language file to latest.
2020-12-30 10:40:23 -03:00
Connor McLaughlin e464a8c332 CommonHostInterface: Disable some hotkeys on Android 2020-12-30 19:42:14 +10:00
Connor McLaughlin 2672e2b505 libretro: Build fix 2020-12-30 19:42:14 +10:00
Connor McLaughlin 7b532ebb7f
Merge pull request #1347 from andercard0/patch-56
Atualização Português do Brasil
2020-12-30 18:11:17 +10:00
Connor McLaughlin f5230fdb14
Merge pull request #1346 from zkdpower/master
Update Simple-Chinese language file to latest
2020-12-30 18:10:51 +10:00
Connor McLaughlin 78282d1508 GameSettings: Add downsampling mode 2020-12-30 17:53:51 +10:00
Connor McLaughlin 3cb2cd8235 GPU: Add adaptive and box downsampling modes 2020-12-30 17:41:39 +10:00
Connor McLaughlin 5236583544 Vulkan/Texture: Support transitioning individual mip levels 2020-12-30 17:39:40 +10:00
Connor McLaughlin 2ce5dc3bbe Vulkan: Don't hardcode mipmap samplers to lod0 2020-12-30 17:39:40 +10:00
Connor McLaughlin 59e8363075 D3D11: Support mipmaps in wrapper textures 2020-12-30 17:39:40 +10:00
Connor McLaughlin 68ce959d70 Settings: Add option to temporarily disable all enhancements 2020-12-30 17:39:29 +10:00
Connor McLaughlin 40f241dde3 PlaystationMouse: Fix incorrect translation context for help 2020-12-30 17:03:59 +10:00
Anderson_Cardoso dd04c5983e
Atualização Português do Brasil
Translation updated to latest.
2020-12-29 18:16:54 -03:00
zkdpower 674b26bef7
Update Simple-Chinese language file to latest
Update Simple-Chinese language file to latest
2020-12-30 04:21:52 +08:00
PugsyMAME 3284a18ad3
Add new Cheat Type F4, Find & Replace Bytes (#1345)
* Add new Cheat Type F4, Find & Replace Bytes

Also knows as 'AOB' apparently. Information about how it works will be in the next chtdb.txt header or you can read/ask about it on the discord channel.

* Add new Cheat Type F4, Find & Replace Bytes 

Also knows as 'AOB' apparently. Information about how it works will be in the next chtdb.txt header or you can read/ask about it on the discord channel.

* Added error trapping for cheat type F4

As suggested
2020-12-30 00:55:49 +10:00
Connor McLaughlin 6bf37f51be Android: Add controller interface class 2020-12-29 22:49:52 +10:00
Connor McLaughlin 0945744f9b FrontendCommon: Add DInput controller interface
Still needs force feedback/vibration support.
2020-12-29 22:49:52 +10:00
Connor McLaughlin a3e4c61a0b CommonHostInterface: Add a method to get top-level window handle 2020-12-29 22:49:52 +10:00
Connor McLaughlin a894b295b6 CPU/CodeCache: Fix assertion failure when patching in double branch 2020-12-29 22:49:52 +10:00
Connor McLaughlin b38e4b8ba7
Merge pull request #1341 from ggrtk/hostdisplay-fixes
HostDisplay: Fix some scaling issues
2020-12-29 22:49:29 +10:00
Connor McLaughlin 6f22d5c151
Merge pull request #1333 from andercard0/patch-55
Atualização Português do Brasil
2020-12-29 22:48:25 +10:00
Connor McLaughlin 4fdedf5f14
Merge pull request #1340 from zkdpower/master
Update Simple-Chinese language file to latest
2020-12-29 22:48:12 +10:00
Albert Liu 1c1ca45e4e VulkanHostDisplay: Fix post shader uniform buffer 2020-12-29 01:33:41 -08:00
Albert Liu 11fbf26045 HostDisplay: Use floats internally for draw rectangle calculation 2020-12-29 01:33:41 -08:00
Albert Liu e0f3a4f17b HostDisplay: Calculate draw rectangle in terms of horizontal scale 2020-12-29 01:33:40 -08:00
Albert Liu b824844043 HostDisplay: Fix framebuffer screenshot scaling 2020-12-29 01:33:40 -08:00