712 Commits

Author SHA1 Message Date
Vicki Pfau
a4d8c433c6 Scripting: Silence warnings 2023-08-10 12:03:15 -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
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
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
a161dfeb31 Debugger: Fill in segment in debugger entry 2023-05-29 00:53:53 -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
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
dda5634189 Scripting: Add canvas API 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
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
Martin Murtiono
c9585b8abe
Qt: Make rewind speed adjustable (#2902) 2023-04-29 00:36:01 -07:00
Vicki Pfau
5f6948351b Feature: Move video-backend.c to a sensible place 2023-04-19 05:35: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
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
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
603c1800d5 Util: Move some image stuff around 2023-03-21 21:59:49 -07:00
Vicki Pfau
96d0193136 Merge branch 'feature/canvas' 2023-03-19 02:25:31 -07:00
Vicki Pfau
ea3e6d6b54 Core: Fixx M_*8 macros 2023-03-15 20:53:01 -07:00
Vicki Pfau
dd531637c2 Core: Revise screen size/info API 2023-03-03 19:25:14 -08:00
Vicki Pfau
123532ed6e Scripting: Add callbacks:oneshot for single-call callbacks 2023-02-08 19:14:36 -08:00
Vicki Pfau
63d96ab712 Scripting: Add flushing/reloading 2023-02-08 01:27:33 -08:00
Vicki Pfau
8b65f3772c Scripting: Initial deserialization work 2023-02-08 01:27:33 -08:00
Vicki Pfau
0c6b443065 Scripting: Initial serialization work 2023-02-08 01:27:33 -08:00
Vicki Pfau
00a34e0d07 Scripting: Add skeleton of storage API 2023-02-08 01:27:33 -08:00
Vicki Pfau
5c0bd1b245 Scripting: Add faux "NUL" type for type matching 2023-02-04 23:56:56 -08:00
Vicki Pfau
004f68496f Scripting: Add type-overloadable setters 2023-02-04 01:15:51 -08:00
Vicki Pfau
bfab9dc9f2 Scripting: Specific wrapper types shouldn't compare equal with wrapped type 2023-02-04 01:15:51 -08:00
Vicki Pfau
39e3b5181a Scripting: Add WTABLE 2023-02-04 01:15:51 -08:00
Vicki Pfau
f2e9ea6a6b Scripting: Remove unused type macros 2023-02-04 01:15:51 -08:00
Vicki Pfau
5164b888d8 Scripting: Allow Lua to pass nested tables to the scripting subsystem 2023-02-04 01:15:51 -08:00
Vicki Pfau
e95bd06321 Scripting: Clear down keys when the window is deactivated 2023-02-02 21:34:14 -08:00
Vicki Pfau
a4d1268db4 Core: Export screenshot dimensions in savedata extdata 2023-01-28 17:49:00 -08:00
Vicki Pfau
7ee2be6c96 Scripting: Export Input API docs 2023-01-27 21:22:33 -08:00
Vicki Pfau
c0d4e2c347 Scripting: Expose gamepad name to scripts 2023-01-27 21:20:46 -08:00
Vicki Pfau
dfe2f62f16 Scripting: Basic gamepad support 2023-01-27 21:20:46 -08:00
Vicki Pfau
a154690694 Scripting: Migrate some stuff from docgen into libmgba 2023-01-27 21:08:43 -08:00
Vicki Pfau
697e80a5a1 Qt: Start hooking up input events into scripting 2023-01-27 21:08:43 -08:00
Vicki Pfau
e5ed2b4119 Scripting: Add base input, supports key events 2023-01-27 21:08:43 -08:00