Fix size inconsistency for prg and chr
- Unif shows ROM_size and VROM_size in bytes, while codebase expects these to be in chunks of 16K for prg and 8K for chr. Update Unif to represent size as its expected to be. - Change PRGRomSize and CHRRomSize to represent sizes in bytes to make it consistent with the rest of the size-related variables in struct CartInfo.
This commit is contained in:
12
src/cart.h
12
src/cart.h
@@ -20,12 +20,12 @@ typedef struct {
|
||||
* set to mapper 4.
|
||||
*/
|
||||
int battery; /* Presence of an actual battery. */
|
||||
int PRGRomSize; /* total prg rom size in 16 K chunks */
|
||||
int CHRRomSize; /* total chr rom size in 8 K chunks */
|
||||
int PRGRamSize; /* prg ram size (volatile) */
|
||||
int CHRRamSize; /* chr ram size (volatile) */
|
||||
int PRGRamSaveSize; /* prg ram size (non-volatile or battery backed) */
|
||||
int CHRRamSaveSize; /* chr ram size (non-volatile or battery backed) */
|
||||
int PRGRomSize; /* prg rom size in bytes */
|
||||
int CHRRomSize; /* chr rom size in bytes */
|
||||
int PRGRamSize; /* prg ram size in bytes (volatile) */
|
||||
int CHRRamSize; /* chr ram size in bytes (volatile) */
|
||||
int PRGRamSaveSize; /* prg ram size in bytes (non-volatile or battery backed) */
|
||||
int CHRRamSaveSize; /* chr ram size in bytes (non-volatile or battery backed) */
|
||||
int region; /* video system timing (ntsc, pal, dendy */
|
||||
|
||||
uint8 MD5[16];
|
||||
|
||||
Reference in New Issue
Block a user