Commit Graph

7773 Commits

Author SHA1 Message Date
Vicki Pfau 7727b6434d Qt: Pass logging context through to video proxy thread (fixes #3095) 2024-01-30 02:59:52 -08:00
Vicki Pfau 4590dfc68b Qt: Switch VideoProxy to using QMutexLocker 2024-01-30 02:59:52 -08:00
Vicki Pfau 1fc37e9962 Core: Migrate thread context TLS to its own key 2024-01-30 02:59:52 -08:00
Vicki Pfau 05bf592dec SDL: Refactor out layer recentering, fix for GB 2024-01-30 02:59:52 -08:00
Steveice10 398df56ac9 core: Add support for specifying an arbitrary portable directory. 2024-01-29 20:21:18 -08:00
unknown 3e86758a9f Qt GDB Window defaults to loopback address 2024-01-29 20:19:20 -08:00
unknown 6243a57832 GBA Debugger defaults to loopback address 2024-01-29 20:19:20 -08:00
Vicki Pfau e5b14977ce Qt: Remember to set m_dims for the early return 2024-01-27 00:31:30 -08:00
Vicki Pfau e1ebaed508 OpenGL: Mark interframe shader as dirty too (fixes #3099) 2024-01-27 00:31:07 -08:00
Vicki Pfau 11e16d1ad9 GBA SIO: Fix MULTI mode SIOCNT bit 7 writes on secondary GBAs (fixes #3110) 2024-01-21 17:42:55 -08:00
Vicki Pfau 845d69e817 Qt: Fix input event threading regression (fixes #3116) 2024-01-21 17:28:16 -08:00
Vicki Pfau 5479ab1307 Vita: Use sceIoPwrite in VFileSce.sync 2024-01-21 02:46:46 -08:00
Vicki Pfau 4e87dc61ee Vita: Add imc0 and xmc0 mount point support 2024-01-21 02:46:45 -08:00
Vicki Pfau 6e773eafea VFS: Modernize VDeviceList implementation 2024-01-21 02:46:09 -08:00
Vicki Pfau 12ed251c0b GB: Fix uninitialized save data when loading undersized temporary saves 2024-01-21 02:46:09 -08:00
Vicki Pfau 7157729ac3 Swtich: Fix config item count 2024-01-18 18:10:32 -08:00
Vicki Pfau c2e2b6d93c Switch: Add bilinear filtering option (closes #3111) 2024-01-18 02:58:50 -08:00
Vicki Pfau 328bebbc01 GBA Video: Migrate window precalculation into a function 2024-01-09 23:26:14 -08:00
Vicki Pfau 2c5882df3e All: Fix some warnings 2024-01-09 22:17:33 -08:00
Vicki Pfau 16c777cdd9 Qt: Fix screen freezing on macOS after closing save state window (fixes #2885) 2024-01-07 16:57:25 -08:00
Vicki Pfau feb7b5a116 Config: Fix warning 2024-01-07 16:57:25 -08:00
Vicki Pfau e01fc0f2b7 3DS: Remove fancy memory mapping 2024-01-07 16:57:25 -08:00
Vicki Pfau 2e3ad7ed16 CMake: Clean up with PROJECT_SOURCE_DIR 2024-01-07 16:57:25 -08:00
luc-git 48253afc54
Qt: Fix shaders not applying when display is loaded (#3100)
Co-authored-by: Vicki Pfau <vi@endrift.com>
2024-01-06 22:47:11 -08:00
Vicki Pfau d83b2f99cd VFS: Use anonymousMemoryMap for large 7z allocations (fixes #3013) 2023-12-21 22:57:36 -08:00
Vicki Pfau 45387aa663 Qt: Fix Action leak 2023-12-21 00:24:16 -08:00
Vicki Pfau ffacbcfeea Qt: Make Gamepad be a shared_ptr 2023-12-20 22:59:35 -08:00
Vicki Pfau 5bd5a8d998 GBA I/O: Fix HALTCNT access behavior (fixes #2309) 2023-12-20 22:05:17 -08:00
Vicki Pfau 6ee880c58b GB Audio: Improve "zombie mode" emulation in CGB mode (fixes #2029) 2023-12-20 02:52:45 -08:00
Vicki Pfau c8f4d4aad9 GB Audio: Fix restarting envelope when writing to register (fixes #3067) 2023-12-20 02:19:19 -08:00
Vicki Pfau 1f6337fc1f CInema: Fix xbaseline differences being ignored with no baseline 2023-12-20 02:19:19 -08:00
Daniel Simon 333483a69e Qt: Fix generic icon on Wayland 2023-12-19 13:56:38 -08:00
Vicki Pfau bfc830e08d mGUI: Persist fast forwarding after closing menu (fixes #2414) 2023-12-18 22:57:51 -08:00
Vicki Pfau 3a5642fcb8 GB: Fix applying a patch that changes the cartridge mapper (fixes #3077) 2023-12-11 22:05:55 -08:00
Vicki Pfau 256143944a Qt: Code signing cleanup 2023-12-11 18:42:31 -08:00
Vicki Pfau ec2f791655 Qt: Do initial macOS resource staging in local app bundle 2023-12-11 01:50:00 -08:00
Vicki Pfau 7b2fe75ebf Qt: Move install in CMake so install scripts get run first 2023-12-11 01:21:01 -08:00
Vicki Pfau 83528e14f5 Qt: Do codesigning on macOS 2023-12-11 00:42:32 -08:00
Vicki Pfau c7240b0e8e Qt: Fix minimum macOS version setting 2023-12-10 21:29:31 -08:00
Vicki Pfau a874450c1a CMake: Bump minimum macOS to 10.7 when building against SDL2 2023-12-10 21:16:29 -08:00
Daniel dc9a2572d1 Add Goodboy Galaxy to overrides
To enable rumble
2023-11-28 09:36:37 -08:00
Vicki Pfau 63b18687f0 Test: Allow ROM tester to be debugged 2023-11-24 22:28:05 -08:00
Vicki Pfau 569bc92b90 Test: Use refactored argument handling 2023-11-24 22:28:05 -08:00
Vicki Pfau 18a35b3928 Feature: Move command-line patch/cheats argument handling 2023-11-24 22:28:05 -08:00
Vicki Pfau 3e47da2e18 SDL: Fix minor leak if debugger isn't used 2023-11-24 22:28:05 -08:00
Vicki Pfau 319bdbd106 Feature: Move command-line debugger argument handling 2023-11-24 22:28:05 -08:00
Vicki Pfau b7284542bc Debugger: Move CLIDebugerEditLine implementation into debugger/ 2023-11-24 22:28:05 -08:00
Vicki Pfau ce4024a29e GBA Savedata: Fix crash when resizing flash save games for RTC data 2023-11-24 22:28:05 -08:00
Vicki Pfau 050c5da263 Tools: Move updater and docgen source into tools/ 2023-11-24 22:28:05 -08:00
Vicki Pfau 978e7c94b2 Tools: Add SDF-generation tool and 4x font SDF 2023-11-24 22:28:05 -08:00
nia d75d26bcc9 Scripting: Check for ENOTRECOVERABLE
It's part of "robust mutexes" and may not necessarily be available
(e.g. on NetBSD 9)
2023-11-20 02:49:43 -08:00
Vicki Pfau 6853080b98 FFmpeg: Fix deprecation warnings 2023-11-06 22:16:14 -08:00
Vicki Pfau 437ad30547 GBA Audio: Only read MP2k context addresses if valid 2023-10-29 17:07:15 -07:00
Vicki Pfau 9c9f31d0d1 Qt: Fix non-debugger build (fixes #3049) 2023-10-25 15:22:09 -07:00
Vicki Pfau 6ecc182d7c Qt: Attach debugger when attaching scripting controller (fixes #3046) 2023-10-15 19:42:50 -07:00
leo60228 ce374b15a3 Debugger: Advertise QStartNoAckMode support 2023-10-07 23:56:23 -07:00
leo60228 6e2c3885ee Debugger: Fix off-by-one breaking StartNoAckMode 2023-10-07 23:56:23 -07:00
David Spickett ef7edba159 Debugger: Fix interrupt after continue from GDB stub
GDB and LLDB will send a ctrl-c character (\x03) to the stub
to interrupt it after a continue where it doesn't stop on its own.

E.g.
```
void foo() {
  foo2();      // Continue from here.
  while (1) {} // Loops here until ctrl-c in the debugger.
}
```

mGBA had code to handle the ctrl-c but because in _continue
we set the paused status after calling mDebuggerModuleSetNeedsCallback,
the callback was never set so nothing was looking for new messages
while we were running. We should instead set the paused state then call
mDebuggerModuleSetNeedsCallback.

mDebuggerModuleSetNeedsCallback calls mDebuggerUpdatePaused, and all
other calls to mDebuggerUpdatePaused update the paused state before
that call so this matches existing usage of that too.

With this fix, after the continue _gdbStubPoll is called periodically
and will pick up the ctrl-c as it comes in (_gdbStubWait is used when
we are stopped in the debugger).

This fixes ctrl-c to interrupt when using lldb and gdb.
2023-10-07 23:56:11 -07:00
Vicki Pfau 46f59df10a Core: Add missing defines to flags.h 2023-09-27 20:21:28 -07:00
Vicki Pfau d34ec95879 Wii: Fix build 2023-09-27 20:21:03 -07:00
Vicki Pfau 0f0dccdcf2 Scripting: Unpack breakpoint name struct 2023-09-27 17:53:30 -07:00
Vicki Pfau 476dcc11df Scripting: Attach canvas object in docgen 2023-09-27 16:51:48 -07:00
Vicki Pfau 1dd00d5bb0 Scripting: Fix typo in docs 2023-09-27 16:47:43 -07:00
Vicki Pfau 4215332eb4 Revert "Qt: Ensure action set is clean before (re)building"
This reverts commit 3ee12b1a55.
2023-09-24 21:04:59 -07:00
David Spickett 7de02c9949 Debugger: Correct PC value when read with 'p' instead of 'g' packet
The 'g' packet is handled by _readGPRs which has a special case for
the PC due to the way the CPU reports the PC value.

This was added by added by a967f9aac4.

The 'p' packet is handled by _readRegister which did not have this
special case for PC. This lead to GDB reporting the correct PC value
but LLDB not, as the latter used 'p' instead.

This meant you saw things like this:
    0x80002a4 <+16>: str    r0, [sp, #0x4]
    0x80002a8 <+20>: bl     0x80001f0      <----------expected to be here.
->  0x80002ac <+24>: b      0x80002b0

Where you expected to be about to bl to another function,
but it looked like you had already done it.

And more obviously, when you first attached to the GDB stub,
the PC was reported as 4 not 0.
2023-09-22 23:07:43 -07:00
Vicki Pfau beda1d5b87 Scripting: Enhance error reporting 2023-09-16 01:30:40 -07:00
Vicki Pfau efb30080e8 Scripting: Code cleanup 2023-09-16 01:20:55 -07:00
Vicki Pfau 0c675b12e4 Scripting: Simplify console implementation 2023-09-16 01:20:34 -07:00
Vicki Pfau 805773aa8f Scripting: Fix console error log level 2023-09-16 00:42:52 -07:00
Vicki Pfau c03b15944b Qt: Add shadow ROM exporting 2023-09-15 23:36:03 -07:00
Vicki Pfau 8610147ad7 Qt: Expand romFilters functionality 2023-09-15 23:36:03 -07:00
Vicki Pfau 131b983894 Debugger: Move platform-specific flag lookup to mDebuggerPlatform 2023-09-15 23:36:03 -07:00
Vicki Pfau d55a13c9ba Debugger: Initial memory access logger support 2023-09-15 23:36:03 -07:00
Vicki Pfau 9c673f527d ARM, SM83: Check for events both before and after single stepping 2023-09-15 23:36:03 -07:00
Vicki Pfau 5d32e432b3 GBA Core: Add missing blocks 2023-09-15 23:36:03 -07:00
Vicki Pfau c6316edf2a GB, GBA: Move CLI debugger headers 2023-09-15 22:08:12 -07:00
Vicki Pfau 7015a104be Debugger: Clean up layering violation 2023-09-15 22:08:12 -07:00
Vicki Pfau b2dd7611ea GBA Core: Export reduced GBA ROM region size if the ROM is less than 32 MiB 2023-09-15 22:06:33 -07:00
Vicki Pfau 022e009a75 GB Core: Fix exported size information 2023-09-15 22:06:33 -07:00
Vicki Pfau b46278b3ed GBA: Make sure unloading a ROM frees the AGBPrint buffer 2023-09-15 22:06:33 -07:00
Vicki Pfau 4b9072de03 Qt: Move controller-based subview auto-closing 2023-09-14 22:34:46 -07:00
Vicki Pfau f051b88f81 Qt: SaveConverter doesn't use the controller 2023-09-14 22:34:46 -07:00
Vicki Pfau 4de9d5f16c Core: Fix potential UAF when loading a ROM in a VDir 2023-09-14 22:34:46 -07:00
Vicki Pfau 8520ad8f1f GBA I/O: Prefix GBA registers with GBA_REG_ 2023-09-07 00:12:19 -07:00
Vicki Pfau 4c03970ffe GBA I/O: More legibility improvements 2023-09-07 00:12:19 -07:00
Vicki Pfau bcb0073a4a GBA I/O: Improve legibility of long constants 2023-09-07 00:12:19 -07:00
Vicki Pfau 6ed7341b5a Debugger: Fix trace 2023-09-06 18:59:07 -07:00
Vicki Pfau 20931a89d9 GBA Core: Fix Flash 1M memory block descriptor 2023-09-02 00:43:43 -07:00
Vicki Pfau f2186f6a5c Vita: Fix camera setting not appearing (fixes #3012) 2023-08-28 13:29:03 -07:00
Vicki Pfau 85c9872cd6 GB I/O: Fix STAT writing IRQ trigger conditions (fixes #2501) 2023-08-25 23:02:18 -07:00
Vicki Pfau 0acc8c2af2 GBA Audio: Fix sample position issues when rate changes (fixes #3006) 2023-08-23 14:35:16 -07:00
Vicki Pfau 16fe12cc97 Qt: Remove shared_ptr copies in for loops 2023-08-18 22:14:40 -07:00
Vicki Pfau 5c2a55884b Qt: Fix remaining non-Multimedia Qt 6 build issues 2023-08-18 21:45:08 -07:00
Vicki Pfau 613ce0286a Qt: Force surface type to OpenGL in DisplayGL 2023-08-18 21:44:46 -07:00
Vicki Pfau 17dbdcf57c Qt: Change Action* semantics to std::shared_ptr<Action> 2023-08-18 21:30:33 -07:00
Vicki Pfau 3ee12b1a55 Qt: Ensure action set is clean before (re)building 2023-08-18 21:28:43 -07:00
Vicki Pfau 6e65b70c32 Qt: Fix input-related Qt 6 build errors 2023-08-18 20:17:19 -07:00
Vicki Pfau f5a6906ef8 Qt: Fix display-related Qt6 build errors 2023-08-18 20:12:18 -07:00
Vicki Pfau f637b5b1e8 Util: Fix warning when libpng is disabled 2023-08-10 12:43:39 -07:00
Vicki Pfau bbdcb8b83b Scripting: Fix rounding warning 2023-08-10 12:17:44 -07:00
Vicki Pfau 56d21feb10 OpenGL: Fix warnings 2023-08-10 12:17:44 -07:00
Vicki Pfau 19e44d59d0 Util: Fix warnings 2023-08-10 12:06:29 -07:00
Vicki Pfau f96ba8c1aa ARM: Fix warning 2023-08-10 11:58:05 -07:00
Vicki Pfau 6a317779c8 Qt: Fix mute settings not being loaded on setting screen (fixes #2990) 2023-08-08 19:34:10 -07:00
Vicki Pfau 0cd50cae8c Qt: Fix crash entering commands into detached debugger (fixes #2987) 2023-08-06 22:38:45 -07:00
Vicki Pfau 1bb8d52e16 Qt: Fix gdb at startup (fixes #2986) 2023-08-05 17:58:12 -07:00
shenef fdfa73a7f5 Qt: Mark video encoding options as untranslatable 2023-08-05 16:33:22 -07:00
Vicki Pfau fc1bfb9c73 Qt: Remove maligned double-click-to-fullscreen shortcut (closes #2632) 2023-08-05 12:47:14 -07:00
Vicki Pfau b0977cef94 Qt: Re-enable sync for multiplayer windows that aren't connected (fixes #2974) 2023-08-04 23:19:29 -07:00
Vicki Pfau 189fce016f Scripting: Fix typo 2023-08-04 21:35:50 -07:00
Vicki Pfau 3574f1cc6b Scripting: Export mPainter class 2023-08-03 19:32:27 -07:00
Vicki Pfau 3d0c982d6e Scripting: Add handling of wrapper type specification in function signatures 2023-08-03 19:32:04 -07:00
Vicki Pfau 09b7eea127 Script: Add mScriptContextInvoke for context-specific invocation and thread handling 2023-08-02 23:41:40 -07:00
Vicki Pfau 5534d23690 Updater: Fix existing directory update logic 2023-07-31 18:23:08 -07:00
Vicki Pfau ec52154112 Qt: Fix uninitialized members 2023-07-29 18:33:06 -07:00
Vicki Pfau 8b4818c3d8 OpenGL: Fix uninitialized context dimensions 2023-07-29 18:32:55 -07:00
Vicki Pfau 0457b1bcb7 Util: Shape drawing fixes, better tests 2023-07-29 14:13:55 -07:00
Vicki Pfau fe229348eb Qt: Update translations 2023-07-28 13:00:34 -07:00
Felipe abd7ccbb1f Qt: Update translation (Portuguese (Brazil))
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/pt_BR/
2023-07-28 12:56:26 -07:00
Davi Lopes 9a8ab700f7 Qt: Update translation (Portuguese (Brazil))
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/pt_BR/
2023-07-28 12:55:32 -07:00
Felipe 5b38c0f398 Qt: Update translation (Portuguese (Brazil))
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/pt_BR/
2023-07-28 12:55:32 -07:00
shinyoyo fd6a4161ac Qt: Update translation (Chinese (Simplified))
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/zh_Hans/
2023-07-28 12:53:25 -07:00
Luna Lyday 6c55c26082 Qt: Update translation (Polish)
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/pl/
2023-07-28 12:53:25 -07:00
raid273 92d7c1a1d1 Qt: Update translation (Japanese)
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/ja/
2023-07-28 12:53:25 -07:00
ssantos 8c0b9f6d06 Qt: Added translation (Portuguese)
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/pt/
2023-07-28 12:53:25 -07:00
Lothar Serra Mari b5c1330528 Qt: Update translation (German)
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/de/
2023-07-28 12:49:39 -07:00
Guih48 5fb0ae88a7 Qt: Update translation (Hungarian)
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/hu/
2023-07-28 12:48:46 -07:00
gallegonovato 1ee7b70194 Qt: Update translation (Spanish)
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/es/
2023-07-28 12:48:33 -07:00
Hoseok Seo 652b078aab Qt: Update translation (Korean)
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/ko/
2023-07-28 12:48:06 -07:00
Vicki Pfau 57ba653bc7 Util: Add mPainterDrawCircle 2023-07-27 20:26:25 -07:00
Vicki Pfau ba49175697 Util: Add mPainterDrawLine 2023-07-24 21:01:01 -07:00
Vicki Pfau 4ca8ffe3f4 Updater: Fix MSVC build 2023-07-24 19:21:43 -07:00
Vicki Pfau 9742722213 GUI: Add missing include 2023-07-23 22:48:30 -07:00
Vicki Pfau 02ba4f2499 GBA GPIO: Fix tilt scale and orientation (fixes #2703) 2023-07-23 22:47:47 -07:00
Vicki Pfau 5f35899ba3 Util: Start mPainter bringup with rectangle drawing 2023-07-23 21:43:15 -07:00
Vicki Pfau 369eab8da3 Util: Fix alpha blending calculation 2023-07-23 21:12:59 -07:00
Vicki Pfau c8cfaefcc8 Updater: Fix overwriting files with directories 2023-07-18 01:42:30 -07:00
Vicki Pfau 1e68020d1c Qt: Handle multiple save game files for disparate games separately (fixes #2887) 2023-07-17 21:34:37 -07:00
Vicki Pfau 4b38883b6a Qt: Plumb through some path info into the CoreController 2023-07-16 22:28:23 -07:00
Vicki Pfau c0507b8a71 Qt: Fix leak if loading a save file fails 2023-07-16 22:02:18 -07:00
Vicki Pfau 52ef584424 Updater: Fix overwriting directories with files 2023-07-16 20:41:48 -07:00
Vicki Pfau 436d6c5a08 Qt: Clean up multiplayer attaching/detaching 2023-07-16 18:40:38 -07:00
Vicki Pfau 90b75e4c11 Qt: Const correctness 2023-07-16 15:27:39 -07:00
Vicki Pfau 51d5f4bfd1 Qt: Distribute shaders as zipped archives on supported builds 2023-07-16 01:45:04 -07:00
Vicki Pfau c49050fe65 Qt: Let the getOpenFileName function class take an optional starting path 2023-07-16 01:44:07 -07:00
Vicki Pfau 4e55bc703c FFmpeg: Fix isampleRate initialization 2023-07-10 18:18:15 -07:00
Vicki Pfau 0e2ede06bc GBA: Fix hasOverride initialization 2023-07-10 18:17:46 -07:00
Vicki Pfau 00e62f231a ARM: Fake bpkt instruction should take no cycles (fixes #2551) 2023-07-05 22:10:33 -07:00
Vicki Pfau 44e074a15e GBA BIOS: Add DACS compatibility to HLE BIOS (closes #2972) 2023-07-04 23:23:17 -07:00
Vicki Pfau 3f0d06e307 GBA: Unhandled bkpt should be treated as an undefined exception 2023-07-04 04:22:21 -07:00
Vicki Pfau fd84ceddda GBA SIO: Fix normal mode SI/SO semantics (fixes #2925) 2023-07-03 23:14:57 -07:00
Vicki Pfau 747158d5a6 Qt: Add exporting of SAV + RTC GB saves from Save Converter to strip RTC data 2023-07-03 16:08:52 -07:00
Vicki Pfau bd15285ea1 GB Audio: More accurate LFSR implementation for noise channel 2023-06-29 21:56:05 -07:00
Vicki Pfau 0ee3f3f16c GB Audio: Force update channels 1/2 if updating from a register write 2023-06-29 03:07:10 -07:00
Vicki Pfau 2a974a74e7 GB Audio: Update channels 1/2 irregularly if silent 2023-06-29 03:05:13 -07:00
Vicki Pfau c5a7b1a9b7 GB Audio: Fix channel 1 restarting if sweep applies after stop (fixes #2965) 2023-06-29 01:28:14 -07:00
Vicki Pfau 491879da95 ARM: Remove obsolete force-alignment in `bx pc` (fixes #2964) 2023-06-26 16:14:25 -07:00
Vicki Pfau 200e846b81 Core: Begin modernizing game override API (fixes #2963) 2023-06-26 04:43:26 -07:00
Vicki Pfau 4d94ab7a38 GB: Prevent incompatible BIOSes from being used on differing models 2023-06-26 04:41:07 -07:00
Vicki Pfau 4859e9b4c6 GB: Add missing CGB0 BIOS to model detection 2023-06-26 03:54:54 -07:00
Vicki Pfau 125db5bbe7 GBA Audio: Fix initial channel 3 wave RAM (fixes #2947) 2023-06-26 00:21:12 -07:00
Vicki Pfau 870c2f8bab Qt: Fix potential scripting context conflict (fixes #2948) 2023-06-20 04:34:27 -07:00
Vicki Pfau 1af9831fc9 Scripting: Add light sensor callback support 2023-06-20 03:41:52 -07:00
Vicki Pfau 1c41e1e051 GBA Audio: Fix sample timing drifting when changing sample interval 2023-06-19 22:32:27 -07:00
Vicki Pfau c358f22403 Scripting: Update docs style 2023-06-18 22:13:32 -07:00
Vicki Pfau 600b11b284 Scripting: Fix generated docs validity 2023-06-18 22:07:24 -07:00
Vicki Pfau 7be14fa7cc Scripting: Add rotation callback support 2023-06-18 22:06:54 -07:00
Vicki Pfau a82c390fe9 Scripting: Detach adapter peripherals when detaching adapter 2023-06-18 21:48:35 -07:00
Vicki Pfau 82f7e52fc6 Qt: Add exporting of SAV + RTC GBA saves from Save Converter to strip RTC data 2023-06-18 15:16:15 -07:00
Vicki Pfau 58da738647 Qt: Reduce minimum size of GB palette color pickers 2023-06-13 16:07:28 -07:00
Vicki Pfau 20ab4d27b1 Scripting: Expose rumble callback 2023-06-04 22:25:54 -07:00
Vicki Pfau 17a549baf2 Scripting: Fix build against Lua 5.2 2023-06-04 20:20:09 -07:00
Vicki Pfau e7bbc60e79 All: Fix several warnings 2023-06-01 00:12:32 -07:00
Vicki Pfau 294470d940 Core: Add getPeripheral function 2023-06-01 00:05:41 -07:00
Vicki Pfau 6561223536 Scripting: Add debugger integration 2023-05-29 00:53:53 -07:00
Vicki Pfau c1421afccb Debugger: Support calling into multiple debuggers per watchpoint 2023-05-29 00:53:53 -07:00
Vicki Pfau cbc8e4f11a Debugger: Fix writing to specific segment in command-line debugger 2023-05-29 00:53:53 -07:00
Vicki Pfau a161dfeb31 Debugger: Fill in segment in debugger entry 2023-05-29 00:53:53 -07:00
Vicki Pfau b94cd7f1dc Core: Remove duplicated include 2023-05-29 00:53:53 -07:00
Vicki Pfau 46c44120c9 3DS: Fix build 2023-05-29 00:53:53 -07:00
Vicki Pfau b80797a578 CMake: Add -Werror=incompatible-pointer-types 2023-05-29 00:23:38 -07:00
Vicki Pfau 4b7223c3ff Core: Only attempt to open symbol file if basedir exists 2023-05-29 00:23:38 -07:00
Vicki Pfau a7d63cde54 Core: Reattaching the same debugger is a no-op 2023-05-29 00:23:38 -07:00
May 196f507d3b
[UI bug] mGBA doesn't update savestate screenshots until you move the cursor over other savestates (#2929) 2023-05-23 15:16:46 -07:00
Vicki Pfau bb6613888a Util: Add THREAD_EXIT macro 2023-05-09 22:21:55 -07:00
Vicki Pfau 7d6a8a86a8 ARM Debugger: Fix unitialized stack variable 2023-05-09 22:13:09 -07:00
Vicki Pfau 213a534f4b GBA: Remove disused variable 2023-05-09 21:44:58 -07:00
Vicki Pfau 257122796c Debugger: Add debugger polling to avoid blocking 2023-05-09 21:43:19 -07:00
Vicki Pfau a00f2939ad Debugger: Allow attaching multiple debugger modules independently 2023-05-09 21:43:19 -07:00
Vicki Pfau 8efb3fb5df Debugger: Make created debug items, e.g. breakpoints, owned by modules 2023-05-09 21:17:46 -07:00
Vicki Pfau b21a6158f4 Debugger: Break out debugger functionality into modules 2023-05-09 21:17:46 -07:00
Vicki Pfau b1f991bf94 GB I/O: Read back proper SVBK value after writing 0 (fixes #2921) 2023-05-09 14:51:06 -07:00
Vicki Pfau 36e62c085d GB SIO: Disabling SIO should cancel pending transfers (fixes #2537) 2023-05-08 04:42:52 -07:00
Vicki Pfau abf0848421 mGUI: Make "bios" name check case-insensitive 2023-05-08 00:41:58 -07:00
Vicki Pfau 00d1c0dc9d Qt: Fix saturateCast signed check 2023-05-03 06:55:17 -07:00
Vicki Pfau d8643870d6 Qt: A bit more Qt 6 porting progress 2023-05-03 02:21:55 -07:00
Vicki Pfau 2b8bb4baf7 Qt: Mark QtMultimedia as optional 2023-05-03 01:44:56 -07:00
Vicki Pfau 74a72a5c07 Scripting: Add missing docs to canvas 2023-05-03 01:38:11 -07:00
Vicki Pfau 608029e930 Qt: Promote -Wnarrowing to an error 2023-05-01 22:27:16 -07:00
Vicki Pfau ac9ffdd765 Qt: Add a saturateCast template 2023-05-01 22:22:51 -07:00
Vicki Pfau 201f0df4c2 Merge branch 'feature/canvas' 2023-05-01 21:40:57 -07:00
Vicki Pfau 55dd3e28db Scripting: Add canvas internal scaling factor 2023-05-01 21:38:30 -07:00
Vicki Pfau 428a29dae3 Qt: Expose DisplayQt as a VideoBackend 2023-05-01 21:38:30 -07:00
Vicki Pfau dda5634189 Scripting: Add canvas API 2023-05-01 21:38:30 -07:00
Vicki Pfau 18d0ad6ff9 Qt: Just don't tear down proxy ring FIFO until the object is destroyed 2023-05-01 21:38:30 -07:00
Vicki Pfau 399ace760c Qt: Hook up proxy backend to DisplayGL 2023-05-01 21:38:30 -07:00
Vicki Pfau dc6639b30b Video: Add backend call proxying for cross-thread interaction 2023-05-01 21:38:30 -07:00
Vicki Pfau 90420586e6 OpenGL: Fix GL1 overlay drawing 2023-05-01 21:38:30 -07:00
Vicki Pfau 2e5751ef6f OpenGL: Fix GLES2 overlay drawing 2023-05-01 21:38:30 -07:00
Vicki Pfau 0b79184bf3 Scripting: Add lambdas that bind an object method call 2023-05-01 21:38:30 -07:00
Vicki Pfau b8261a0c66 Scripting: Add lambdas with 0 arguments and 0 return values 2023-05-01 21:38:30 -07:00
Vicki Pfau 44ab21ab35 Scripting: Allow callbacks to access weakrefs 2023-05-01 20:44:23 -07:00
Martin Murtiono c9585b8abe
Qt: Make rewind speed adjustable (#2902) 2023-04-29 00:36:01 -07:00
sam-gupta-git a7ffcee399
Qt: Add shortcuts to increment fast forward speed (#2903)
Co-authored-by: Vicki Pfau <vi@endrift.com>
2023-04-29 00:33:16 -07:00
Vicki Pfau eb26b3c387 GBA BIOS: Fix clobbering registers with word-sized CpuSet 2023-04-28 22:48:01 -07:00
Vicki Pfau 65a0b63c82 GB Audio: Fix channels 1/2 staying muted if restarted after long silence 2023-04-28 22:48:01 -07:00
Vicki Pfau 75910bcdab Qt: Add QPA info to report view 2023-04-28 22:48:01 -07:00
Adam Higerd 6dbd977c73 Scripting: shim print()/warn() in Lua 2023-04-26 21:08:42 -07:00
Vicki Pfau ba6865b570 mGUI: Enable auto-softpatching (closes #2899) 2023-04-26 01:05:11 -07:00
Vicki Pfau 622c2491b9 Debugger: Reject traces with negative trace amounts (fixes #2900) 2023-04-26 00:48:12 -07:00
Vicki Pfau ae75abb8fa Qt: Only disable swapInterval when fast-forwarding 2023-04-23 20:08:48 -07:00
Vicki Pfau 85aaa6c3c5 GB, GBA Audio: Clamp audio buffer size to 8192 2023-04-23 20:00:43 -07:00
Vicki Pfau 8739b22fbc Qt: Detect Wayland as EGL 2023-04-20 20:12:53 -07:00
Vicki Pfau 420da428bd Qt: Cleaner type punning 2023-04-20 20:11:43 -07:00
Vicki Pfau 5f6948351b Feature: Move video-backend.c to a sensible place 2023-04-19 05:35:36 -07:00
Vicki Pfau 727ba5b2f2 Qt: Rip out OpenGL proxy thread 2023-04-18 21:22:10 -07:00
Vicki Pfau 7337edb82a Qt: Manually toggle swap interval as needed 2023-04-18 21:22:10 -07:00
Vicki Pfau 133ed11cab GBA Video: Don't repeat yourself 2023-04-18 02:18:49 -07:00
Vicki Pfau 2c84689345 Util: Improve mImageLoadPNG memory cleanup 2023-04-17 22:31:03 -07:00
Vicki Pfau 80a8074608 GBA Video: Fix interpolation issues with OpenGL renderer 2023-04-17 22:23:54 -07:00
Vicki Pfau 9fa607b30f Util: More palette support 2023-04-17 04:37:36 -07:00
Vicki Pfau 618a51cabb Util: Preliminary palette support 2023-04-17 04:37:36 -07:00
Vicki Pfau f8b923015b Util: Add grayscale mImage loading 2023-04-17 04:37:36 -07:00
Vicki Pfau 65f04ee408 Util: PNGWrite*A is dead, long live PNGWrite* 2023-04-17 04:37:36 -07:00
David Spickett 225456a39c Debugger: Send flags information for cpsr register
There is a feature of target XML called flags. It allows
you to describe what a register contains.

https://sourceware.org/gdb/onlinedocs/gdb/Target-Description-Format.html

GDB has supported this for a long time and I recently added support
in LLDB:
e07a421dd5

This change adds this flags information for the cpsr register of the ARM7TDMI.
Based on the information in https://developer.arm.com/documentation/ddi0210/c/.

This is what it looks like when using GDB:
```
(gdb) info registers
r0             0x0                 0
<...>
cpsr           0x6000001f          [ Z C M=31 ]
```
And LLDB:
```
(lldb) register read cpsr
    cpsr = 0x6000001f
         = (N = 0, Z = 1, C = 1, V = 0, I = 0, F = 0, T = 0, M=31)
```

(the format is up to the debugger, lldb is a lot more verbose at the moment)

To enable this I have increased the GDB stub's outgoing buffer to 1400 bytes.
The target XML is just above 130 bytes with the flags added.
2023-04-15 01:30:35 -07:00
Vicki Pfau 5bf048e380 GB Serialize: Add missing Pocket Cam state to savestates 2023-04-13 02:56:12 -07:00
Vicki Pfau b876f13cb2 VFS: Actually fflush sync when doing writeback 2023-04-13 02:29:27 -07:00
Vicki Pfau f40222f0ee Core: Code cleanup 2023-04-13 02:09:12 -07:00
Vicki Pfau fca0505f38 3DS: Code cleanup 2023-04-12 22:45:22 -07:00
Vicki Pfau e8ef801a3e Vita: Work around broken mktime implementation in Vita SDK (fixes #2876) 2023-04-12 03:33:53 -07:00
Vicki Pfau 1b85fb3de5 Scripting: Fix early freeing of coerced list contents (fixes #2881) 2023-04-11 16:27:57 -07:00
Vicki Pfau 3f108aae75 Scripting: Re-fix some Lua string handling (fixes #2877) 2023-04-10 03:02:51 -07:00
Vicki Pfau dfb6055ae4 FFmpeg: Force lower sample rate for codecs not supporting high rates (fixes #2869) 2023-04-07 00:58:41 -07:00
Vicki Pfau b68c714455 FFmpeg: Fix buffer size rounding for audio encoding 2023-04-07 00:58:40 -07:00
Vicki Pfau a039e2fbef Core: Fix memory leaks in mCacheSet 2023-04-05 05:06:08 -07:00
Vicki Pfau 03d1ed7778 Qt: More coverity placating 2023-04-05 05:00:16 -07:00
Vicki Pfau a69f95bcb6 Util: Placate coverity a bit 2023-04-05 04:56:26 -07:00
Vicki Pfau efcdd29109 GBA e-Reader: Improve error handling in image loading 2023-04-05 04:54:51 -07:00
Vicki Pfau 8c55769afc Scripting: Fix some Lua string handling 2023-04-05 04:50:26 -07:00
Vicki Pfau 2f54d98ff6 Scripting: Export some system information 2023-04-04 02:20:06 -07:00
Vicki Pfau 9920a609e8 OpenGL: Make backends handle non-zero origin outer frame boundaries 2023-04-04 02:04:59 -07:00
Vicki Pfau 6867b556f3 Scripting: Export image compositing functions 2023-04-03 03:02:08 -07:00
Vicki Pfau c884560fdb Util: Add alpha-based mImage compositing functions 2023-04-03 03:00:23 -07:00
Vicki Pfau cfd5572fb6 Util: Add basic mImage blit with no blending 2023-04-03 01:56:22 -07:00
Vicki Pfau 5b18089e85 Util: Add mRectangleIntersection 2023-04-03 00:39:53 -07:00
Vicki Pfau 329159bddc Util: Refactor some things that will be used later 2023-04-02 23:23:54 -07:00
Vicki Pfau 2d07a269fc Core: Add screenshotToImage scripting binding 2023-04-02 03:40:39 -07:00
Vicki Pfau 2fca2f4395 Scripting: Export current image API 2023-04-02 03:39:14 -07:00
Vicki Pfau ed69b9f741 Scripting: Separate object freeing and deiniting 2023-04-02 03:39:14 -07:00
Vicki Pfau 42527b4c5e Util: More image creation functions 2023-04-02 03:39:14 -07:00
Vicki Pfau 285f22927b Util: Reject 0-width/height images 2023-04-01 22:42:44 -07:00
Vicki Pfau 6d719b529a Util: Add mImage saving 2023-03-31 02:42:01 -07:00
Vicki Pfau c8ce215d58 Util: Add image format conversion 2023-03-31 02:23:24 -07:00
Vicki Pfau d62688a0ef Util: Fix extracting top channel from 565 formats 2023-03-31 02:14:51 -07:00
Vicki Pfau bd3a3b8360 Util: Fix memory leak in mImageLoadVF 2023-03-31 01:57:08 -07:00
Vicki Pfau 1fd974272c Scripting: Make functions able to have default arguments 2023-03-31 00:32:02 -07:00
Vicki Pfau 64408b8fd1 Scripting: Tidy up public headers 2023-03-31 00:32:02 -07:00
Vicki Pfau e80b533549 Scripting: Add read-only struct members 2023-03-31 00:32:02 -07:00
Vicki Pfau 1306cfe15e Scripting: Add Lua-specific local `script` table for info about the script 2023-03-29 01:25:01 -07:00
Vicki Pfau 4543bcf9de Scripting: Make mScriptEngineExportDocNamespace take ownership 2023-03-29 01:24:10 -07:00
Vicki Pfau 832d0a7c05 Qt: Fix checked state of mute menu option at load (fixes #2701) 2023-03-27 01:09:51 -07:00
Vicki Pfau 7ef8cd961f Util: Fix non-USE_PNG build 2023-03-27 00:16:26 -07:00
Vicki Pfau 3c353b572b Qt: Swap P1 and other player's save if P1 loaded it first (closes #2750) 2023-03-26 23:58:44 -07:00
Vicki Pfau 2cba34d83a Util: Add image loading API 2023-03-26 17:49:15 -07:00
Vicki Pfau cdb0c4193b GBA Audio: Clear GB audio state when disabled 2023-03-25 04:27:54 -07:00
Vicki Pfau cb0ad844c1 Util: Strip loading 16-bit PNGs down to 8-bit 2023-03-25 01:46:36 -07:00
Vicki Pfau 542792215e GBA Overrides: Fix saving in PMD:RRT (JP) (fixes #2862) 2023-03-24 15:45:21 -07:00
Vicki Pfau a064306916 GB MBC: Fix crash with NT Old 2 if rumble callback isn't installed 2023-03-22 01:47:30 -07:00
Vicki Pfau e79ae2860b Util: Start mImage/mColor APIs and tests 2023-03-22 01:42:27 -07:00
Vicki Pfau 646a0e9b33 GBA Memory: Clean up stall function slightly 2023-03-21 21:59:49 -07:00
Vicki Pfau 603c1800d5 Util: Move some image stuff around 2023-03-21 21:59:49 -07:00
Vicki Pfau e3fbb55854 Scripting: Return proper callback ID from socket.add 2023-03-19 04:59:00 -07:00
Vicki Pfau ea5db5f72d Scripting: Fix scalar hashing on different union layouts, e.g. big endian 2023-03-19 03:47:51 -07:00
Vicki Pfau dfe9177374 Util: Fix test build 2023-03-19 03:29:00 -07:00
Vicki Pfau 9a4cf28776 Util: Namespace geometry structs to avoid conflicts 2023-03-19 03:03:55 -07:00
Vicki Pfau 96d0193136 Merge branch 'feature/canvas' 2023-03-19 02:25:31 -07:00
Vicki Pfau e3e8296105 OpenGL: Separate sizes of image and drawn layer for image 2023-03-19 02:23:37 -07:00
Vicki Pfau ce0b1507c3 OpenGL: Fix layers not recentering properly when scale is reduced 2023-03-19 01:24:33 -07:00
Vicki Pfau eb7b90e5d9 Qt: Fix OSD on modern macOS (fixes #2736) 2023-03-17 02:29:47 -07:00
Vicki Pfau fc35395ab8 Core: Handle relative paths for saves, screenshots, etc consistently (fixes #2826) 2023-03-16 23:37:54 -07:00
Vicki Pfau cd0b5193cb Core: An empty config string is a null config value 2023-03-15 22:44:52 -07:00
Vicki Pfau 434789c6d1 Qt: Placate Coverity a bit 2023-03-14 01:27:19 -07:00
Vicki Pfau fd0deaaecc GBA Memory: Play slightly nicer with CSE 2023-03-14 01:11:11 -07:00
Vicki Pfau fe8b436b41 GDB: Ugh 2023-03-06 14:57:05 -08:00
Vicki Pfau 7386e60ac0 GDB: Enable NODELAY on GDB stub connections 2023-03-06 14:51:22 -08:00
Vicki Pfau 5265573c0c Qt: Fix buffer termination issue 2023-03-06 00:08:41 -08:00
Vicki Pfau a7c232b284 Qt: Fix black screen when starting with a game (fixes #2781) 2023-03-05 23:56:16 -08:00
Vicki Pfau 89f8873df3 GBA Saveata: Fix fumbled check 2023-03-05 14:21:47 -08:00
Vicki Pfau 44fb887737 SDL: Border rendering 2023-03-03 19:25:14 -08:00
Vicki Pfau 48c9261b05 SDL: Refactor use of VideoBackend to slim down GL backends 2023-03-03 19:25:14 -08:00