Commit Graph

8852 Commits

Author SHA1 Message Date
Vicki Pfau 67b5a51614 Util: Add basic text rendering, expose to scripting 2025-05-31 23:26:28 -07:00
Vicki Pfau 8a4750f4fe Util: Make the length parameter for utf8Char nullable 2025-05-31 23:26:28 -07:00
Vicki Pfau 92ca66be7c Util: Treat grayscale masks as alpha masks 2025-05-31 23:26:28 -07:00
Vicki Pfau 4ff5140d8c Qt: Fix FFmpeg verison info in report view 2025-05-31 23:26:28 -07:00
Adam Higerd 6ab4ecd444 Qt: update memory access log view each frame 2025-05-24 00:56:23 -07:00
Adam Higerd 1d5bff49c9 Qt: fix updates in MemoryAccessLogModel 2025-05-24 00:56:23 -07:00
Vicki Pfau 30a94053c3 GB MBC: Add M161 support for one Mani 4-in-1 multicart 2025-05-22 02:54:50 -07:00
Vicki Pfau 0418ae33d5 GB Memory: Fix initial WRAM pattern when skipping BIOS in GBC mode (fixes #2704) 2025-05-20 01:07:19 -07:00
Vicki Pfau 2cab5f1705 Qt: Fix potential crash on close with debugger open 2025-05-20 00:48:53 -07:00
Vicki Pfau 00074fac7d GB Video: Fix window enable edge case (fixes #2640) 2025-05-20 00:13:59 -07:00
Vicki Pfau 6c4bd1efa0 Res: Port more Pokefan531 color shaders (closes #3437) 2025-05-19 23:29:02 -07:00
Vicki Pfau 03ad202c4d GB Memory: Initialize HRAM when skipping BIOS in GBC mode (fixes #3420) 2025-05-13 20:52:19 -07:00
Vicki Pfau f3663c86ad GB Memory: Fix handling of invalid banks in View/Patch8 (fixes #3482)
The second half WRAM is banked on CGB, so bank 0 is only ever the first half.
If we query bank 0 for the second half, force it to bank 1. Further, VRAM bank
1 only exists on CGB, so force it to bank 0 on DMG.
2025-05-04 00:49:17 -07:00
Vicki Pfau 5b059486e5 GB Memory: Fix misuse of 0 instead of NULL 2025-05-04 00:39:34 -07:00
Vicki Pfau 35f287e24c Windows: Fix some MSVC warnings 2025-05-04 00:24:39 -07:00
Adam Higerd a3a8b3a8f8 Qt: improve AutorunScriptModel, add unit tests 2025-05-03 16:40:13 -07:00
Vicki Pfau 8c6a8cd63f Python: Fix build 2025-05-03 01:44:52 -07:00
Adam Higerd 3fe28520ca Qt: route Qt logging to mGBA's logging system 2025-05-03 01:42:12 -07:00
Vicki Pfau c4ae9015d9 Util: Add and use ATTRIBUTE_NONSTRING to fix warnings 2025-05-02 04:35:19 -07:00
Vicki Pfau 1c6514bfb7 Qt: Update translations 2025-05-02 04:17:45 -07:00
Not-underscore a657159fff Qt: Update translation (Spanish)
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/es/
2025-05-02 04:15:20 -07:00
Michelangelo Chaume (MickMick Washes Things) 5fe256f90e Qt: Update translation (French)
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/fr/
2025-05-02 04:15:20 -07:00
Daniel Nylander 310a8a3634 Qt: Update translation (Swedish)
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/sv/
2025-05-02 04:15:20 -07:00
Enes Çetinkal a669d70458 Qt: Update translation (Turkish)
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/tr/
2025-05-02 04:14:53 -07:00
ssantos 160f42e720 Qt: Update translation (Portuguese (Portugal))
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/pt_PT/
2025-05-02 04:14:53 -07:00
Champ0999 85ec3e2dd5 Qt: Update translation (Italian)
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/it/
2025-05-02 04:14:53 -07:00
王晨旭 057c360bef Qt: Update translation (Chinese (Simplified Han script))
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/zh_Hans/
2025-05-02 04:14:53 -07:00
Felipe 33d8c859c3 Qt: Update translation (Portuguese (Brazil))
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/pt_BR/
2025-05-02 04:14:53 -07:00
Vicki Pfau 2bc9333038 Qt: Reformat MBC names for better handling of translations 2025-05-02 04:13:23 -07:00
Vicki Pfau 9520694469 Util: Fix VFSMem truncation not affecting offsets 2025-04-29 23:03:35 -07:00
CasualPokePlayer c5cddc0407
RTC state machine improvements (#3459)
* Try to correct the RTC state machine to only operate on edges

Unsure if all of this is entirely right (haven't ran any tests to confirm behavior here). Fixes RTC within Pokemon games (and maybe other games) due to the added write latch code adding a _readPins call.

* More correct behavior based on testing

* Move this init to align to struct

* Correctly handle rtc output on falling edges rather than raising edges

also correctly handle rtc output in general, even in cases outside of an rtc read cmd
_outputPins needed to be corrected here, it shouldn't be reading gpioBase here...

* Simplify

* More RTC state machine fixes

Separate out command start and command write data processing
Command start processing happens again if the command magic is invalid (note: doesn't apply to the unmapped command 5)
Ensure command data processing loops
Output 1s for commands with no actual output

* Put SIO output in states

* Try to correct light sensor too

* inc state version

* fix reserved names
2025-04-29 22:48:23 -07:00
CasualPokePlayer 4f9ad3a162
Allow truncation to work within VFileFromMemory (#3455)
* Allow truncation to work within VFileFromMemory/VFileFromConstMemory

Truncation here is limited to buffer size (allowing for shrinking but not growing the buffer size)

* Don't change VFileFromConstMemory; have VFileFromMemory write "expand" size until the buffer size

* 0 out "expanded" space
2025-04-29 22:47:35 -07:00
Vicki Pfau de3ab3889d Qt: Fix build 2025-04-27 22:12:50 -07:00
Vicki Pfau 11ebe11c8e Scripting: Allow display input script to work even if overlay does not work initially 2025-04-27 22:03:06 -07:00
Vicki Pfau 90057703b5 Qt: Add support for running scripts at startup (closes #3465) 2025-04-27 22:02:19 -07:00
Vicki Pfau c33a0d6534 Qt: Ensure document gets reparented along with text buffer 2025-04-26 20:29:40 -07:00
Vicki Pfau 355c379636 Qt: Add another known-bad driver version for the ig4icd64 crash 2025-04-26 20:04:49 -07:00
Vicki Pfau 28ef99e056 Res: Fix Pokemon script game detection 2025-04-19 20:33:35 -07:00
Vicki Pfau 46c0464da3 Qt: Fix Qt 5 build harder 2025-04-15 00:14:35 -07:00
Vicki Pfau bacd3545e8 Qt: Fix Qt 5 build 2025-04-15 00:11:57 -07:00
Vicki Pfau 9bbf6b3173 Qt: Clean up named view initialization and fix raising 2025-04-15 00:03:23 -07:00
Vicki Pfau 939c8f0487 Qt: Clean up some FrameView technical debt 2025-04-15 00:03:23 -07:00
Adam Higerd 3565c12d8c Qt: don't restrict by model when loading from the library 2025-04-14 18:02:54 -07:00
Adam Higerd 44349b0a37 Qt: fix blank rows in library rendering 2025-04-14 17:41:40 -07:00
Vicki Pfau d79579d1ca Qt: Throttle fatal error dialogs 2025-04-13 17:58:01 -07:00
Maximilian Mader c3f3d00f14 Crop frame view exports to current video size
The base video size of the Game Boy core is the Super Game Boy’s resolution of 256×224 pixels.
Previously frames were exported at that size, leading to a 160×144 frame surrounded by uninitialized memory.

This assumes that the base size is always greater or equal to the current video size.
2025-04-13 17:02:22 -07:00
Vicki Pfau 35b6003a7d Qt: Make sure resizeContext doesn't call doneCurrent at end of start() 2025-04-13 00:07:05 -07:00
Adam Higerd 5bf240ac32 Qt: replace QAbstractItemModel::checkIndex() that was introduced in Qt 5.11 2025-04-10 16:19:44 -07:00
Vicki Pfau 932062c1a4 Qt: Fix selecting high tiles in tile and map views (fixes #3461) 2025-04-10 16:11:42 -07:00
Vicki Pfau 86453b8107 SDL: Check for _mSDLOpenJoystick null return 2025-04-10 16:11:42 -07:00