fix to prev

This commit is contained in:
CaH4e3 2015-12-20 17:40:56 +00:00
parent c50535a398
commit a44fe4cdf8
1 changed files with 6 additions and 6 deletions

View File

@ -445,8 +445,10 @@ int GetCHRAddress(int A) {
if (!(cdloggervdata[addr] & 1)) \ if (!(cdloggervdata[addr] & 1)) \
{ \ { \
cdloggervdata[addr] |= 1; \ cdloggervdata[addr] |= 1; \
if (!(cdloggervdata[addr] & 2)) undefinedvromcount--; \ if(cdloggerVideoDataSize) { \
rendercount++; \ if (!(cdloggervdata[addr] & 2)) undefinedvromcount--; \
rendercount++; \
} \
} \ } \
} \ } \
} \ } \
@ -669,7 +671,7 @@ static DECLFR(A2007) {
if (!DummyRead && (LogAddress != -1)) { if (!DummyRead && (LogAddress != -1)) {
if (!(cdloggervdata[LogAddress] & 2)) { if (!(cdloggervdata[LogAddress] & 2)) {
cdloggervdata[LogAddress] |= 2; cdloggervdata[LogAddress] |= 2;
if (!(cdloggervdata[LogAddress] & 1)) undefinedvromcount--; if ((!(cdloggervdata[LogAddress] & 1)) && cdloggerVideoDataSize) undefinedvromcount--;
vromreadcount++; vromreadcount++;
} }
} else } else
@ -888,10 +890,8 @@ static DECLFW(B2007) {
uint32 tmp = RefreshAddr & 0x3FFF; uint32 tmp = RefreshAddr & 0x3FFF;
if (debug_loggingCD) { if (debug_loggingCD) {
if(tmp < 0x2000) { if(tmp < 0x2000)
cdloggervdata[tmp] = 0; cdloggervdata[tmp] = 0;
undefinedvromcount++;
}
} }
if (newppu) { if (newppu) {