Skip to content

Latest commit

 

History

History
95 lines (80 loc) · 5.53 KB

ImplementedApis.md

File metadata and controls

95 lines (80 loc) · 5.53 KB

Implemented APIs

A table of which mGBA scripting calls are reflected in mGBA-http.

Unstable APIs may not work as expected and may be fixed in a future update.

Core

mGBA call lua endpoint key mGBA-http endpoint
addKey() core.addKey /core/addkey
addKeys() core.addKeys /core/addkeys
autoloadSave() core.autoloadSave /core/autoloadsave
checksum() core.checksum /core/checksum
clearKey() core.checksum /core/clearkey
clearKeys() core.clearKeys /core/clearkeys
currentFrame() core.currentFrame /core/currentframe
frameCycles() core.frameCycles /core/framecycles
frequency() core.frequency /core/frequency
getGameCode() core.getGameCode /core/getgamecode
getGameTitle() core.getGameTitle /core/getgametitle
getKey() core.getKey /core/getkey
getKeys() core.getKeys /core/getkeys
loadFile() core.loadFile /core/loadfile (Unstable)
loadSaveFile() core.loadSaveFile /core/loadsavefile (Unstable)
loadStateBuffer() core.loadStateBuffer /core/loadstatebuffer (Unstable)
loadStateFile() core.loadStateFile /core/loadstatefile
loadStateSlot() core.loadStateSlot /core/loadstateslot
platform() core.platform /core/platform
read16() core.read16 /core/read16
read32() core.read32 /core/read32
read8() core.read8 /core/read8
readRange() core.readRange /core/readrange (Unstable)
readRegister() core.readRegister /core/readregister
reset() - -
romSize() core.romSize /core/romsize
runFrame() core.runFrame /core/runframe (Unstable)
saveStateBuffer() core.saveStateBuffer /core/savestatebuffer (Unstable)
saveStateFile() core.saveStateFile /core/savestatefile
saveStateSlot() core.saveStateSlot /core/savestateslot
screenshot() core.screenshot /core/screenshot
setKeys() core.setKeys /core/setkeys
step() core.step /core/step
write16() core.write16 /core/write16
write32() core.write32 /core/write32
write8() core.write8 /core/write8
writeRegister() core.writeRegister /core/writeregister

CallbackManager

CallbackManager is not implemented in mGBA-http.

Console

mGBA call lua endpoint key mGBA-http endpoint
createBuffer() - -
error() core.error /console/error
log() core.log /console/log
warn() core.warn /console/warn

CoreAdapter

mGBA call lua endpoint key mGBA-http endpoint
reset() coreAdapter.reset /coreadapter/reset
memory - -

MemoryDomain

mGBA call lua endpoint key mGBA-http endpoint
base() memoryDomain.base /memorydomain/base
bound() memoryDomain.bound /memorydomain/bound
name() memoryDomain.name /memorydomain/name
read16() memoryDomain.read16 /memorydomain/read16
read32() memoryDomain.read32 /memorydomain/read32
read8() memoryDomain.read8 /memorydomain/read8
readRange() memoryDomain.readRange /memorydomain/readrange (Unstable)
size() memoryDomain.size /memorydomain/size
write16() memoryDomain.write16 /memorydomain/write16
write32() memoryDomain.write32 /memorydomain/write32
write8() memoryDomain.write8 /memorydomain/write8

TextBuffer

TextBuffer is not implemented in mGBA-http.

Button - Custom API

mGBA call lua endpoint key mGBA-http endpoint
- mgba-http.button.tap /mgba-http/button/tap
- mgba-http.button.tapmany /mgba-http/button/tapmany
- mgba-http.button.hold /mgba-http/button/hold
- mgba-http.button.holdmany /mgba-http/button/holdmany