cen64/device/cart_db.h
Christopher Bonhage 6b7c2af8d4 Add support for 768Kbit SRAM save type
Fixes a Segfault when loading Dezaemon 3D.

  * Unfortunately, Dezaemon 3D does not actually work yet. It appears to
    fail the SRAM test, which still needs further investigation.

Adds an option alias for sram256k to disambiguate with new sram768k option.
2021-12-17 21:18:48 +01:00

34 lines
785 B
C

//
// device/cart_db.h: Cart database.
//
// CEN64: Cycle-Accurate Nintendo 64 Emulator.
// Copyright (C) 2015, Tyler J. Stachecki.
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#ifndef __device_cart_db_h__
#define __device_cart_db_h__
enum cart_db_save_type {
CART_DB_SAVE_TYPE_EEPROM_4KBIT,
CART_DB_SAVE_TYPE_EEPROM_16KBIT,
CART_DB_SAVE_TYPE_FLASH_1MBIT,
CART_DB_SAVE_TYPE_SRAM_256KBIT,
CART_DB_SAVE_TYPE_SRAM_768KBIT,
};
struct cart_db_entry {
const char *rom_id;
const char *regions;
enum cart_db_save_type save_type;
const char *description;
};
cen64_cold const struct cart_db_entry *cart_db_get_entry(const uint8_t *rom);
cen64_cold bool cart_db_is_well_formed(void);
#endif