Usbio Functions #6

Closed
opened 2024-06-19 15:24:12 +00:00 by jeff · 0 comments
Owner

These are some higher-level functions that will likely go in one or more packages of their own.

  • LoadGame_new(string rom_path, string map_path) - Loads a new game from specified ROM and map paths.
  • SelectGame(string path) - Selects a game given its path, returns the mapper index.
  • LoadGame_old(NesRom rom, string map_path) - Loads an old game using a NesRom object and an optional map path.
  • LoadOS(NesRom rom, string map_path) - Loads the operating system using a NesRom object and an optional map path.
  • CopyFolder(string src, string dst) - Copies a folder from the source path to the destination path.
  • CopyFile(string src, string dst) - Copies a file from the source path to the destination path.
  • MakeDir(string path) - Creates a directory at the specified path.
  • Cmd(char cmd) - Sends a command to the Edio device.
  • TxString(string str) - Transmits a string to the Edio device.
  • Halt() - Halts the USB operation and sets the mapper configuration.
  • HaltExit() - Exits the halt state and unlocks the mapper configuration.
  • MapLoadSDC(int map_id, MapConfig cfg) - Loads a mapper configuration from the SD card.
  • GetTestMapper(int mapper) - Retrieves the test mapper path for a given mapper index.
These are some higher-level functions that will likely go in one or more packages of their own. - [x] `LoadGame_new(string rom_path, string map_path)` - Loads a new game from specified ROM and map paths. - [x] `SelectGame(string path)` - Selects a game given its path, returns the mapper index. - [x] `LoadGame_old(NesRom rom, string map_path)` - Loads an old game using a NesRom object and an optional map path. - [x] `LoadOS(NesRom rom, string map_path)` - Loads the operating system using a NesRom object and an optional map path. - [x] `CopyFolder(string src, string dst)` - Copies a folder from the source path to the destination path. - [x] `CopyFile(string src, string dst)` - Copies a file from the source path to the destination path. - [x] `MakeDir(string path)` - Creates a directory at the specified path. - [x] `Cmd(char cmd)` - Sends a command to the Edio device. - [x] `TxString(string str)` - Transmits a string to the Edio device. - [x] `Halt()` - Halts the USB operation and sets the mapper configuration. - [x] `HaltExit()` - Exits the halt state and unlocks the mapper configuration. - [x] `MapLoadSDC(int map_id, MapConfig cfg)` - Loads a mapper configuration from the SD card. - [x] `GetTestMapper(int mapper)` - Retrieves the test mapper path for a given mapper index.
jeff self-assigned this 2024-06-19 15:24:12 +00:00
jeff added this to the goedlink project 2024-06-19 15:24:12 +00:00
jeff closed this issue 2024-06-25 22:34:47 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: jeff/goedlink#6
No description provided.