Skip to content

Instantly share code, notes, and snippets.

@pawndev
Created January 4, 2026 09:37
Show Gist options
  • Select an option

  • Save pawndev/a08735db461d4f23c0279daecafc876a to your computer and use it in GitHub Desktop.

Select an option

Save pawndev/a08735db461d4f23c0279daecafc876a to your computer and use it in GitHub Desktop.
example cfw interface for grout
package cfw
type CFWProvider interface {
GetBasePath() string
GetRomDirectory() string
GetBIOSDirectory() string
GetBIOSFilePaths(relativePath string, platformSlug string) []string
GetSaveDirectory() string
GetArtDirectory(romDir string, platformSlug, platformName string) string
GetPlatformMap() map[string][]string
GetEmulatorFolderMap() map[string][]string
RomFolderBase(path string, tagParser func(string) string) string
GetPlatformRomDirectory(relativePath, platformSlug string) string
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment