Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/platforms/mister/cores/cores.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ var Systems = map[string]Core{
RBF: "_Console/3DO",
Slots: []Slot{
{
Exts: []string{".iso", ".cue"},
Exts: []string{".iso", ".cue", ".chd"},
Mgl: &MGLParams{
Delay: 1,
Method: "s",
Index: 1,
Index: 0,
},
},
},
Expand Down
10 changes: 10 additions & 0 deletions pkg/platforms/mister/cores/cores_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ func TestPathToMGLDef(t *testing.T) {
path: "goldeneye.z64",
wantMgl: Systems["Nintendo64"].Slots[0].Mgl,
},
{
name: "3DO CHD disk slot",
systemID: "3DO",
path: "Need for Speed.chd",
wantMgl: &MGLParams{
Delay: 1,
Method: "s",
Index: 0,
},
},
{
name: "Nil MGL allowed (Arcade .mra)",
systemID: "Arcade",
Expand Down
30 changes: 29 additions & 1 deletion pkg/platforms/mister/mgls/mgls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,41 @@ func TestGenerateMgl(t *testing.T) {
},
},
},
path: "/media/fat/games/Saturn/America/NiGHTS into Dreams... (USA, Brazil).chd",
path: filepath.Join(
string(filepath.Separator),
"media", "fat", "games", "Saturn", "America", "NiGHTS into Dreams... (USA, Brazil).chd",
),
want: "<mistergamedescription>\n\t<rbf>_Console/Saturn</rbf>\n" +
"\t<file delay=\"2\" type=\"s\" index=\"0\" " +
"path=\"../../../../../media/fat/games/Saturn/America/" +
"NiGHTS into Dreams... (USA, Brazil).chd\"/>\n" +
"</mistergamedescription>",
},
{
name: "3DO CHD uses disk slot zero",
core: &cores.Core{
ID: "3DO",
RBF: "_Console/3DO",
Slots: []cores.Slot{
{
Exts: []string{".iso", ".cue", ".chd"},
Mgl: &cores.MGLParams{
Delay: 1,
Method: "s",
Index: 0,
},
},
},
},
path: filepath.Join(
string(filepath.Separator),
"media", "fat", "games", "3DO", "The Need for Speed.chd",
),
want: "<mistergamedescription>\n\t<rbf>_Console/3DO</rbf>\n" +
"\t<file delay=\"1\" type=\"s\" index=\"0\" " +
"path=\"../../../../../media/fat/games/3DO/The Need for Speed.chd\"/>\n" +
"</mistergamedescription>",
},
{
name: "path with XML-reserved characters is escaped",
core: &cores.Core{
Expand Down
Loading