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

emu.getdisplaytype() not returning PAL in BSNES #2503

Closed
brunovalads opened this issue Dec 3, 2020 · 3 comments
Closed

emu.getdisplaytype() not returning PAL in BSNES #2503

brunovalads opened this issue Dec 3, 2020 · 3 comments
Labels
Core: BSNES Super Nintendo Entertainment System (SNES) / Super Famicom (SFC) / Super Game Boy (SGB) core Repro: Fixed/added in 2.6

Comments

@brunovalads
Copy link
Contributor

The lua function emu.getdisplaytype() is not returning the correct region on BSNES core (didn't test on other consoles).
By using the GameInfo.lua script that comes with BizHawk, you get the following log for a clearly PAL version of Super Mario World (the Europe one):

Game Info library test
Rom Name: Super Mario World (Europe)
Rom Hash: 56265120A74B55260FF7CACC00DA1F21CBCB64F4
Display Type: NTSC
In Database?: true
Rom Status: GoodDump
Is Status Bad?: false
Board Type: 
Game Options: 

This was tested in several releases, it's wrong since version 2.0 (versions from BizHawk 32bit like 1.13.2 are correct).

Other info

The emu displays 50fps correctly when "Display fps" is toggled.
The Snes9x core gets the correct region on every version tested.

@YoshiRulz YoshiRulz added Core: BSNES Super Nintendo Entertainment System (SNES) / Super Famicom (SFC) / Super Game Boy (SGB) core Repro: Regression from ??? I don't remember when exactly this used to work, but I swear it did labels Dec 4, 2020
@brunovalads
Copy link
Contributor Author

Weird...
Worth pointing out commit f83261c that changed LibsnesCore.IRegionable.cs.

@nattthebear nattthebear self-assigned this Dec 15, 2020
@YoshiRulz YoshiRulz added Repro: Fixed/added in 2.6 and removed Repro: Regression from ??? I don't remember when exactly this used to work, but I swear it did labels Dec 15, 2020
@brunovalads
Copy link
Contributor Author

This fix also fixed the issue where the "PAL 1" flag in movie headers was not being set, marking all bsnes movies as NTSC by default, which later was detected by TASVideos submission system giving the wrong movie length.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core: BSNES Super Nintendo Entertainment System (SNES) / Super Famicom (SFC) / Super Game Boy (SGB) core Repro: Fixed/added in 2.6
Projects
None yet
Development

No branches or pull requests

3 participants