Skip to content

Lua script that makes BizHawk fake RetroArch's UDP command API

License

Notifications You must be signed in to change notification settings

wbsch/bizhawk_retroarch_api_bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Make BizHawk pretend to be RetroArch('s UDP command API)

This Lua script makes the BizHawk emulator pretend to be RetroArch, at least as far as its UDP command API is concerned.

It was initially written for the Archipelago Multi-Game Randomizer's LADX client, which only worked with RetroArch until this script was released.

Only the parts relevant for Archipelago's LADX client (and, since both share code, the LADXR Magpie Tracker) were implemented, namely:

  • VERSION
  • GET_STATUS
  • READ_CORE_MEMORY
  • WRITE_CORE_MEMORY

Additionally, GET_STATUS was only implemented for GB(C) cores.

No testing has been done on cores other than Gambatte and SameBoy. If you do test other cores, and especially other systems, feel free to adjust this info.

If you need more functionality than this, it should be fairly easy to add it. Pull requests are welcome as long as the main functionality is preserved.

Usage

Download a release .zip, unpack it, and load the retroarch_api_faker.lua in BizHawk:

"Tools" -> "Lua Console" -> "Script" -> "Open Script" -> "retroarch_api_faker.lua"

Dev Dependencies

This script has only been tested with the LuaSocket version coming with Archipelago's other Lua scripts, which is version 1.22 from 2005. Since there was a 12 year hiatus for LuaSocket development, this is not as bad as it sounds.

The LuaSocket version is bundled in the release .zip file.

About

Lua script that makes BizHawk fake RetroArch's UDP command API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages