mirror of https://github.com/stella-emu/stella.git
Fixed interaction with ideal ROM size between 3E and 3E+.
This commit is contained in:
parent
e497405216
commit
5c879d4a48
|
@ -22,7 +22,14 @@
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
Cartridge3E::Cartridge3E(const ByteBuffer& image, size_t size,
|
Cartridge3E::Cartridge3E(const ByteBuffer& image, size_t size,
|
||||||
const string& md5, const Settings& settings)
|
const string& md5, const Settings& settings)
|
||||||
: CartridgeEnhanced(image, size, BSPF::nextMultipleOf(size, 1_KB), md5, settings)
|
: Cartridge3E(image, size, BSPF::nextMultipleOf(size, 2_KB), md5, settings)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
Cartridge3E::Cartridge3E(const ByteBuffer& image, size_t size, size_t bsSize,
|
||||||
|
const string& md5, const Settings& settings)
|
||||||
|
: CartridgeEnhanced(image, size, bsSize, md5, settings)
|
||||||
{
|
{
|
||||||
myBankShift = BANK_SHIFT;
|
myBankShift = BANK_SHIFT;
|
||||||
myRamSize = RAM_SIZE;
|
myRamSize = RAM_SIZE;
|
||||||
|
|
|
@ -65,7 +65,7 @@ class Cartridge3E : public CartridgeEnhanced
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
Create a new cartridge using the specified image and size
|
Create a new cartridge using the specified image and size.
|
||||||
|
|
||||||
@param image Pointer to the ROM image
|
@param image Pointer to the ROM image
|
||||||
@param size The size of the ROM image
|
@param size The size of the ROM image
|
||||||
|
@ -76,6 +76,21 @@ class Cartridge3E : public CartridgeEnhanced
|
||||||
const Settings& settings);
|
const Settings& settings);
|
||||||
virtual ~Cartridge3E() = default;
|
virtual ~Cartridge3E() = default;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
/**
|
||||||
|
Create a new cartridge using the specified image and size.
|
||||||
|
This is an alternate version of the constructor, meant to be used
|
||||||
|
only by classes inheriting from this class.
|
||||||
|
|
||||||
|
@param image Pointer to the ROM image
|
||||||
|
@param size The size of the ROM image
|
||||||
|
@param bsSize The size specified by the bankswitching scheme
|
||||||
|
@param md5 The md5sum of the ROM image
|
||||||
|
@param settings A reference to the various settings (read-only)
|
||||||
|
*/
|
||||||
|
Cartridge3E(const ByteBuffer& image, size_t size, size_t bsSize,
|
||||||
|
const string& md5, const Settings& settings);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
Cartridge3EPlus::Cartridge3EPlus(const ByteBuffer& image, size_t size,
|
Cartridge3EPlus::Cartridge3EPlus(const ByteBuffer& image, size_t size,
|
||||||
const string& md5, const Settings& settings)
|
const string& md5, const Settings& settings)
|
||||||
: Cartridge3E(image, size, md5, settings)
|
: Cartridge3E(image, size, BSPF::nextMultipleOf(size, 1_KB), md5, settings)
|
||||||
{
|
{
|
||||||
myBankShift = BANK_SHIFT;
|
myBankShift = BANK_SHIFT;
|
||||||
myRamSize = RAM_SIZE;
|
myRamSize = RAM_SIZE;
|
||||||
|
|
|
@ -41,8 +41,8 @@ class CartridgeEnhanced : public Cartridge
|
||||||
|
|
||||||
@param image Pointer to the ROM image
|
@param image Pointer to the ROM image
|
||||||
@param size The size of the ROM image
|
@param size The size of the ROM image
|
||||||
@param md5 The md5sum of the ROM image
|
|
||||||
@param bsSize The size specified by the bankswitching scheme
|
@param bsSize The size specified by the bankswitching scheme
|
||||||
|
@param md5 The md5sum of the ROM image
|
||||||
@param settings A reference to the various settings (read-only)
|
@param settings A reference to the various settings (read-only)
|
||||||
*/
|
*/
|
||||||
CartridgeEnhanced(const ByteBuffer& image, size_t size, size_t bsSize,
|
CartridgeEnhanced(const ByteBuffer& image, size_t size, size_t bsSize,
|
||||||
|
|
Loading…
Reference in New Issue