Use ROM folders

Libretro cores are selected based on the file extensions of the ROMs. However, ROM file extensions are not unique across cores (e.g., .zip is used in both DosBox and MAME). To load a specific core correctly, it's necessary to place the corresponding ROMs in designated folders specified in the configuration. By default, you can use the keys from cores.list as the folder names, or you can specify your own custom folder names using the 'folder' parameter for each core.
This commit is contained in:
sergystepanov 2024-07-24 20:31:12 +03:00 committed by GitHub
parent ba7db72093
commit d6199c9598
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 6 additions and 6 deletions

View file

@ -44,9 +44,9 @@ type game struct {
}
var (
alwa = game{system: "nes", rom: "Alwa's Awakening (Demo).nes"}
sushi = game{system: "gba", rom: "Sushi The Cat.gba"}
angua = game{system: "gba", rom: "anguna.gba"}
alwa = game{system: "nes", rom: "nes/Alwa's Awakening (Demo).nes"}
sushi = game{system: "gba", rom: "gba/Sushi The Cat.gba"}
angua = game{system: "gba", rom: "gba/anguna.gba"}
)
// TestMain runs all tests in the main thread in macOS.

View file

@ -95,9 +95,9 @@ var testTempDir = filepath.Join(os.TempDir(), "cloud-game-core-tests")
// games
var (
alwas = games.GameMetadata{Name: "Alwa's Awakening (Demo)", Type: "nes", Path: "Alwa's Awakening (Demo).nes", System: "nes"}
sushi = games.GameMetadata{Name: "Sushi The Cat", Type: "gba", Path: "Sushi The Cat.gba", System: "gba"}
fd = games.GameMetadata{Name: "Florian Demo", Type: "n64", Path: "Sample Demo by Florian (PD).z64", System: "n64"}
alwas = games.GameMetadata{Name: "Alwa's Awakening (Demo)", Type: "nes", Path: "nes/Alwa's Awakening (Demo).nes", System: "nes"}
sushi = games.GameMetadata{Name: "Sushi The Cat", Type: "gba", Path: "gba/Sushi The Cat.gba", System: "gba"}
fd = games.GameMetadata{Name: "Florian Demo", Type: "n64", Path: "n64/Sample Demo by Florian (PD).z64", System: "n64"}
)
func TestMain(m *testing.M) {