add PAL flag to dispatch

now platforms run at their correct clock speed when in PAL mode

also fix clipping in Genesis
This commit is contained in:
tildearrow 2021-12-08 01:56:40 -05:00
parent fe5f8afa05
commit 6a02754996
19 changed files with 69 additions and 36 deletions

View file

@ -287,9 +287,13 @@ void DivPlatformC64::setChipModel(bool is6581) {
}
}
int DivPlatformC64::init(DivEngine* p, int channels, int sugRate) {
int DivPlatformC64::init(DivEngine* p, int channels, int sugRate, bool pal) {
parent=p;
rate=985248;
if (pal) {
rate=985248;
} else {
rate=1022727;
}
sid.reset();