8781 Commits

Author SHA1 Message Date
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
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
Adam Higerd
40cae51e28 Qt: replace deprecated QSet APIs 2025-04-10 16:11:22 -07:00
Vicki Pfau
a75c6c41e0 Third-Party: Fix discord-rpc CMakeLists issues 2025-04-09 19:01:39 -07:00
Vicki Pfau
233c6a2836
Merge pull request #2570 from ahigerd/alh/library
rewrite Qt library frontend
2025-04-09 19:01:26 -07:00
CasualPokePlayer
8740f3dde1 Narrow these in runtime struct too 2025-04-06 21:20:39 -07:00
CasualPokePlayer
57d1552582 Increment state version, narrow direction in state too 2025-04-06 21:20:39 -07:00
CasualPokePlayer
3ae429fd91 Implement GPIO internal write latch
Regardless of direction, a write to GPIO data actually succeeds fully with all 4 bits. However, this does not directly touch the pin state. It instead places it into an internal write only latch. This latch asserts bits onto the pin state if direction allows for such, otherwise the other side (e.g. RTC) will be the one asserting bits (but this does not end up touching the internal write latch).

The implementation here is likely not entirely accurate for direction changes from out to in (as that depends on each external device implementation), but it should be correct for in to out changes.
2025-04-06 21:20:39 -07:00
Vicki Pfau
e95b81f1f7 CMake: Bump to 3.10 minimum
This really is only needed to get CMake to stop yelling at us...
2025-04-03 00:41:05 -07:00
Vicki Pfau
bbc61e0f38 Qt: Update copyright year 2025-04-02 14:50:46 -07:00
Adam Higerd
86df2543e6 PR review updates 2025-03-31 21:06:37 -05:00
CasualPokePlayer
4bca59daa5 Mask away unused GPIO bits
Unused GPIO bits are not writable and always return 0. This is documented on gbatek and I've confirmed this is the correct behavior on my own Emerald cartridge.
2025-03-31 18:44:54 -07:00
Adam Higerd
165cce1a6c fix library icons 2025-03-31 10:18:54 -05:00
Adam Higerd
130319494a switch away from APIs removed / compatibility-broken by upstream 2025-03-31 10:18:54 -05:00
Adam Higerd
578709254f clean up according to PR comments 2025-03-31 10:18:54 -05:00
Adam Higerd
447054674d Library: store platform models in database, render GBC/SGB icons 2025-03-31 10:18:52 -05:00
Adam Higerd
ba8671d1d6 Library: rewrite Qt library frontend 2025-03-31 10:12:07 -05:00
Vicki Pfau
93d248859f Qt: Add missing use of isZeroed 2025-03-30 21:33:16 -07:00
Vicki Pfau
a9262868fc Qt: Use less questionable way of checking for zeroing 2025-03-30 21:26:14 -07:00
Vicki Pfau
5d7b875629 Scripting: Add SHA1 checksum constant 2025-03-30 21:12:35 -07:00
Vicki Pfau
0e42f9d561 Util: Bring up MD5 and SHA-1 library and No-Intro querying 2025-03-30 20:58:05 -07:00
Vicki Pfau
eb781d290b Core: Add SHA1 hashing for ROMs 2025-03-30 16:44:33 -07:00
Vicki Pfau
62247f0dce res: Update No-Intro db 2025-03-30 15:47:59 -07:00