Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set ST-V movies as Arcade #2039

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
7 changes: 7 additions & 0 deletions TASVideos.Parsers/Parsers/Bk2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ internal class Bk2 : Parser, IParser
private const double NtscNesFramerate = 60.0988138974405;
private const double NtscSnesFramerate = 60.0988138974405;
private const double PalSnesFramerate = 50.0069789081886;
private const double NtscSatFramerate = 59.8830284837373;

// mednafen values to match current octoshock
private const double NtscPsxFramerate = 59.94006013870239;
Expand Down Expand Up @@ -127,6 +128,11 @@ public async Task<IParseResult> Parse(Stream file, long length)
platform = SystemCodes.Arcade;
result.FrameRateOverride = NtscNesFramerate;
}
else if (header.GetBoolFor(Keys.ModeStv))
{
platform = SystemCodes.Arcade;
result.FrameRateOverride = NtscSatFramerate;
}
else if (header.GetValueFor(Keys.Board) == SystemCodes.Sgb)
{
platform = SystemCodes.Sgb;
Expand Down Expand Up @@ -295,6 +301,7 @@ private static class Keys
public const string ModeSegaCd = "issegacdmode";
public const string ModeGg = "isggmode";
public const string ModeSg = "issgmode";
public const string ModeStv = "isstv";
public const string ModeVs = "isvs";
public const string VBlankCount = "vblankcount";
public const string CycleCount = "cyclecount";
Expand Down
Loading