Skip to content

Commit

Permalink
add GBAL parser for GBAHawk (#2055)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortranm authored Dec 6, 2024
1 parent e5f9c22 commit bb5c0b6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions TASVideos.Parsers/Parsers/Bk2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ public async Task<IParseResult> Parse(Stream file, long length)
["gb3x"] = SystemCodes.GameBoy,
["gb4x"] = SystemCodes.GameBoy,
["gbl"] = SystemCodes.GameBoy,
["gbal"] = SystemCodes.Gba,
["a26"] = SystemCodes.Atari2600,
["a78"] = SystemCodes.Atari7800,
["uze"] = SystemCodes.UzeBox,
Expand Down
10 changes: 10 additions & 0 deletions tests/TASVideos.MovieParsers.Tests/GbmvParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,14 @@ public async Task GBAHawk_NewHeaderValues()
Assert.AreEqual(true, result.Success);
AssertNoWarningsOrErrors(result);
}

[TestMethod]
[DataRow("System-Gbal.gbmv", SystemCodes.Gba)]
public async Task Systems(string filename, string expectedSystem)
{
var result = await _gbmvParser.Parse(Embedded(filename), EmbeddedLength(filename));
Assert.IsTrue(result.Success);
Assert.AreEqual(expectedSystem, result.SystemCode);
AssertNoWarningsOrErrors(result);
}
}
Binary file not shown.

0 comments on commit bb5c0b6

Please sign in to comment.