Various *Name() functions can simply return const std::string& (PR #1049)
This commit is contained in:
parent
d2004553f1
commit
80f3eaeb91
39 changed files with 53 additions and 53 deletions
|
@ -797,7 +797,7 @@ void CpuNmiDeassert(eIRQSRC Device)
|
||||||
#define SS_YAML_VALUE_6502 "6502"
|
#define SS_YAML_VALUE_6502 "6502"
|
||||||
#define SS_YAML_VALUE_65C02 "65C02"
|
#define SS_YAML_VALUE_65C02 "65C02"
|
||||||
|
|
||||||
static std::string CpuGetSnapshotStructName(void)
|
static const std::string& CpuGetSnapshotStructName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("CPU");
|
static const std::string name("CPU");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -1965,7 +1965,7 @@ static const UINT kUNIT_VERSION = 6;
|
||||||
#define SS_YAML_KEY_TRACK_IMAGE_DIRTY "Track Image Dirty"
|
#define SS_YAML_KEY_TRACK_IMAGE_DIRTY "Track Image Dirty"
|
||||||
#define SS_YAML_KEY_TRACK_IMAGE "Track Image"
|
#define SS_YAML_KEY_TRACK_IMAGE "Track Image"
|
||||||
|
|
||||||
std::string Disk2InterfaceCard::GetSnapshotCardName(void)
|
const std::string& Disk2InterfaceCard::GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name(SS_YAML_VALUE_CARD_DISK2);
|
static const std::string name(SS_YAML_VALUE_CARD_DISK2);
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -166,7 +166,7 @@ public:
|
||||||
bool DriveSwap(void);
|
bool DriveSwap(void);
|
||||||
bool IsDriveConnected(int drive) { return m_floppyDrive[drive].m_isConnected; }
|
bool IsDriveConnected(int drive) { return m_floppyDrive[drive].m_isConnected; }
|
||||||
|
|
||||||
static std::string GetSnapshotCardName(void);
|
static const std::string& GetSnapshotCardName(void);
|
||||||
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
||||||
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ void FourPlayCard::InitializeIO(LPBYTE pCxRomPeripheral)
|
||||||
|
|
||||||
static const UINT kUNIT_VERSION = 1;
|
static const UINT kUNIT_VERSION = 1;
|
||||||
|
|
||||||
std::string FourPlayCard::GetSnapshotCardName(void)
|
const std::string& FourPlayCard::GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("4Play");
|
static const std::string name("4Play");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -19,7 +19,7 @@ public:
|
||||||
|
|
||||||
static BYTE __stdcall IORead(WORD pc, WORD addr, BYTE bWrite, BYTE value, ULONG nExecutedCycles);
|
static BYTE __stdcall IORead(WORD pc, WORD addr, BYTE bWrite, BYTE value, ULONG nExecutedCycles);
|
||||||
|
|
||||||
static std::string GetSnapshotCardName(void);
|
static const std::string& GetSnapshotCardName(void);
|
||||||
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
||||||
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
||||||
|
|
||||||
|
|
|
@ -774,7 +774,7 @@ static const UINT kUNIT_VERSION = 3;
|
||||||
#define SS_YAML_KEY_BUF "Buffer"
|
#define SS_YAML_KEY_BUF "Buffer"
|
||||||
#define SS_YAML_KEY_NOT_BUSY_CYCLE "Not Busy Cycle"
|
#define SS_YAML_KEY_NOT_BUSY_CYCLE "Not Busy Cycle"
|
||||||
|
|
||||||
std::string HarddiskInterfaceCard::GetSnapshotCardName(void)
|
const std::string& HarddiskInterfaceCard::GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name(SS_YAML_VALUE_CARD_HDD);
|
static const std::string name(SS_YAML_VALUE_CARD_HDD);
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -103,7 +103,7 @@ public:
|
||||||
void GetLightStatus(Disk_Status_e* pDisk1Status);
|
void GetLightStatus(Disk_Status_e* pDisk1Status);
|
||||||
bool ImageSwap(void);
|
bool ImageSwap(void);
|
||||||
|
|
||||||
static std::string GetSnapshotCardName(void);
|
static const std::string& GetSnapshotCardName(void);
|
||||||
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
||||||
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
||||||
|
|
||||||
|
|
|
@ -936,7 +936,7 @@ void JoyportControl(const UINT uControl)
|
||||||
#define SS_YAML_KEY_JOY1TRIMY "Joystick1 TrimY"
|
#define SS_YAML_KEY_JOY1TRIMY "Joystick1 TrimY"
|
||||||
#define SS_YAML_KEY_PDL_INACTIVE_CYCLE "Paddle%1d Inactive Cycle"
|
#define SS_YAML_KEY_PDL_INACTIVE_CYCLE "Paddle%1d Inactive Cycle"
|
||||||
|
|
||||||
static std::string JoyGetSnapshotStructName(void)
|
static const std::string& JoyGetSnapshotStructName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Joystick");
|
static const std::string name("Joystick");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -457,7 +457,7 @@ void KeybToggleCapsLock ()
|
||||||
#define SS_YAML_KEY_LASTKEY "Last Key"
|
#define SS_YAML_KEY_LASTKEY "Last Key"
|
||||||
#define SS_YAML_KEY_KEYWAITING "Key Waiting"
|
#define SS_YAML_KEY_KEYWAITING "Key Waiting"
|
||||||
|
|
||||||
static std::string KeybGetSnapshotStructName(void)
|
static const std::string& KeybGetSnapshotStructName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Keyboard");
|
static const std::string name("Keyboard");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -172,13 +172,13 @@ static const UINT kUNIT_LANGUAGECARD_VER = 1;
|
||||||
#define SS_YAML_KEY_MEMORYMODE "Memory Mode"
|
#define SS_YAML_KEY_MEMORYMODE "Memory Mode"
|
||||||
#define SS_YAML_KEY_LASTRAMWRITE "Last RAM Write"
|
#define SS_YAML_KEY_LASTRAMWRITE "Last RAM Write"
|
||||||
|
|
||||||
std::string LanguageCardSlot0::GetSnapshotMemStructName(void)
|
const std::string& LanguageCardSlot0::GetSnapshotMemStructName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Memory Bank");
|
static const std::string name("Memory Bank");
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string LanguageCardSlot0::GetSnapshotCardName(void)
|
const std::string& LanguageCardSlot0::GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name(SS_YAML_VALUE_CARD_LANGUAGECARD);
|
static const std::string name(SS_YAML_VALUE_CARD_LANGUAGECARD);
|
||||||
return name;
|
return name;
|
||||||
|
@ -379,13 +379,13 @@ static const UINT kUNIT_SATURN_VER = 1;
|
||||||
#define SS_YAML_KEY_NUM_SATURN_BANKS "Num Saturn Banks"
|
#define SS_YAML_KEY_NUM_SATURN_BANKS "Num Saturn Banks"
|
||||||
#define SS_YAML_KEY_ACTIVE_SATURN_BANK "Active Saturn Bank"
|
#define SS_YAML_KEY_ACTIVE_SATURN_BANK "Active Saturn Bank"
|
||||||
|
|
||||||
std::string Saturn128K::GetSnapshotMemStructName(void)
|
const std::string& Saturn128K::GetSnapshotMemStructName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Memory Bank");
|
static const std::string name("Memory Bank");
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string Saturn128K::GetSnapshotCardName(void)
|
const std::string& Saturn128K::GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name(SS_YAML_VALUE_CARD_SATURN128);
|
static const std::string name(SS_YAML_VALUE_CARD_SATURN128);
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -57,7 +57,7 @@ public:
|
||||||
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
||||||
|
|
||||||
static const UINT kMemBankSize = 16*1024;
|
static const UINT kMemBankSize = 16*1024;
|
||||||
static std::string GetSnapshotCardName(void);
|
static const std::string& GetSnapshotCardName(void);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
LanguageCardSlot0(SS_CARDTYPE type, UINT slot);
|
LanguageCardSlot0(SS_CARDTYPE type, UINT slot);
|
||||||
|
@ -67,7 +67,7 @@ protected:
|
||||||
LPBYTE m_pMemory;
|
LPBYTE m_pMemory;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string GetSnapshotMemStructName(void);
|
const std::string& GetSnapshotMemStructName(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -92,10 +92,10 @@ public:
|
||||||
|
|
||||||
// "The boards consist of 16K banks of memory (4 banks for the 64K board, 8 banks for the 128K), accessed one at a time" - Ref: "64K/128K RAM BOARD", Saturn Systems, Ch.1 Introduction(pg-5)
|
// "The boards consist of 16K banks of memory (4 banks for the 64K board, 8 banks for the 128K), accessed one at a time" - Ref: "64K/128K RAM BOARD", Saturn Systems, Ch.1 Introduction(pg-5)
|
||||||
static const UINT kMaxSaturnBanks = 8; // 8 * 16K = 128K
|
static const UINT kMaxSaturnBanks = 8; // 8 * 16K = 128K
|
||||||
static std::string GetSnapshotCardName(void);
|
static const std::string& GetSnapshotCardName(void);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string GetSnapshotMemStructName(void);
|
const std::string& GetSnapshotMemStructName(void);
|
||||||
|
|
||||||
static UINT g_uSaturnBanksFromCmdLine;
|
static UINT g_uSaturnBanksFromCmdLine;
|
||||||
|
|
||||||
|
|
|
@ -2196,25 +2196,25 @@ static const UINT kUNIT_CARD_VER = 3;
|
||||||
#define SS_YAML_KEY_NUMAUXBANKS "Num Aux Banks"
|
#define SS_YAML_KEY_NUMAUXBANKS "Num Aux Banks"
|
||||||
#define SS_YAML_KEY_ACTIVEAUXBANK "Active Aux Bank"
|
#define SS_YAML_KEY_ACTIVEAUXBANK "Active Aux Bank"
|
||||||
|
|
||||||
static std::string MemGetSnapshotStructName(void)
|
static const std::string& MemGetSnapshotStructName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Memory");
|
static const std::string name("Memory");
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string MemGetSnapshotUnitAuxSlotName(void)
|
const std::string& MemGetSnapshotUnitAuxSlotName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Auxiliary Slot");
|
static const std::string name("Auxiliary Slot");
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string MemGetSnapshotMainMemStructName(void)
|
static const std::string& MemGetSnapshotMainMemStructName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Main Memory");
|
static const std::string name("Main Memory");
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string MemGetSnapshotAuxMemStructName(void)
|
static const std::string& MemGetSnapshotAuxMemStructName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Auxiliary Memory Bank");
|
static const std::string name("Auxiliary Memory Bank");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -96,7 +96,7 @@ bool MemGetAnnunciator(UINT annunciator);
|
||||||
bool MemHasNoSlotClock(void);
|
bool MemHasNoSlotClock(void);
|
||||||
void MemInsertNoSlotClock(void);
|
void MemInsertNoSlotClock(void);
|
||||||
void MemRemoveNoSlotClock(void);
|
void MemRemoveNoSlotClock(void);
|
||||||
std::string MemGetSnapshotUnitAuxSlotName(void);
|
const std::string& MemGetSnapshotUnitAuxSlotName(void);
|
||||||
void MemSaveSnapshot(class YamlSaveHelper& yamlSaveHelper);
|
void MemSaveSnapshot(class YamlSaveHelper& yamlSaveHelper);
|
||||||
bool MemLoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT unitVersion);
|
bool MemLoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT unitVersion);
|
||||||
void MemSaveSnapshotAux(class YamlSaveHelper& yamlSaveHelper);
|
void MemSaveSnapshotAux(class YamlSaveHelper& yamlSaveHelper);
|
||||||
|
|
|
@ -1355,13 +1355,13 @@ const UINT NUM_PHASOR_UNITS = 2;
|
||||||
|
|
||||||
#define SS_YAML_KEY_VOTRAX_PHONEME "Votrax Phoneme"
|
#define SS_YAML_KEY_VOTRAX_PHONEME "Votrax Phoneme"
|
||||||
|
|
||||||
std::string MB_GetSnapshotCardName(void)
|
const std::string& MB_GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Mockingboard C");
|
static const std::string name("Mockingboard C");
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string Phasor_GetSnapshotCardName(void)
|
const std::string& Phasor_GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Phasor");
|
static const std::string name("Phasor");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -31,10 +31,10 @@ void MB_UpdateIFR(BYTE nDevice, BYTE clr_mask, BYTE set_mask);
|
||||||
BYTE MB_GetPCR(BYTE nDevice);
|
BYTE MB_GetPCR(BYTE nDevice);
|
||||||
|
|
||||||
void MB_GetSnapshot_v1(struct SS_CARD_MOCKINGBOARD_v1* const pSS, const DWORD dwSlot); // For debugger
|
void MB_GetSnapshot_v1(struct SS_CARD_MOCKINGBOARD_v1* const pSS, const DWORD dwSlot); // For debugger
|
||||||
std::string MB_GetSnapshotCardName(void);
|
const std::string& MB_GetSnapshotCardName(void);
|
||||||
void MB_SaveSnapshot(class YamlSaveHelper& yamlSaveHelper, const UINT uSlot);
|
void MB_SaveSnapshot(class YamlSaveHelper& yamlSaveHelper, const UINT uSlot);
|
||||||
bool MB_LoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT slot, UINT version);
|
bool MB_LoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT slot, UINT version);
|
||||||
|
|
||||||
std::string Phasor_GetSnapshotCardName(void);
|
const std::string& Phasor_GetSnapshotCardName(void);
|
||||||
void Phasor_SaveSnapshot(class YamlSaveHelper& yamlSaveHelper, const UINT uSlot);
|
void Phasor_SaveSnapshot(class YamlSaveHelper& yamlSaveHelper, const UINT uSlot);
|
||||||
bool Phasor_LoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT slot, UINT version);
|
bool Phasor_LoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT slot, UINT version);
|
||||||
|
|
|
@ -628,7 +628,7 @@ void CMouseInterface::SetButton(eBUTTON Button, eBUTTONSTATE State)
|
||||||
#define SS_YAML_KEY_BUTTON1 "Button1"
|
#define SS_YAML_KEY_BUTTON1 "Button1"
|
||||||
#define SS_YAML_KEY_ENABLED "Enabled"
|
#define SS_YAML_KEY_ENABLED "Enabled"
|
||||||
|
|
||||||
std::string CMouseInterface::GetSnapshotCardName(void)
|
const std::string& CMouseInterface::GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name(SS_YAML_VALUE_CARD_MOUSE);
|
static const std::string name(SS_YAML_VALUE_CARD_MOUSE);
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
m_iY = iY;
|
m_iY = iY;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string GetSnapshotCardName(void);
|
static const std::string& GetSnapshotCardName(void);
|
||||||
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
||||||
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
||||||
|
|
||||||
|
|
|
@ -187,7 +187,7 @@ void CNoSlotClock::PopulateClockRegister()
|
||||||
#define SS_YAML_KEY_COMPARISON_REGISTER_MASK "Comparison Register Mask"
|
#define SS_YAML_KEY_COMPARISON_REGISTER_MASK "Comparison Register Mask"
|
||||||
#define SS_YAML_KEY_COMPARISON_REGISTER "Comparison Register"
|
#define SS_YAML_KEY_COMPARISON_REGISTER "Comparison Register"
|
||||||
|
|
||||||
std::string CNoSlotClock::GetSnapshotStructName(void)
|
const std::string& CNoSlotClock::GetSnapshotStructName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("No Slot Clock");
|
static const std::string name("No Slot Clock");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -68,7 +68,7 @@ private:
|
||||||
bool Read(int address, BYTE& data);
|
bool Read(int address, BYTE& data);
|
||||||
void Write(int address);
|
void Write(int address);
|
||||||
void PopulateClockRegister();
|
void PopulateClockRegister();
|
||||||
std::string GetSnapshotStructName(void);
|
const std::string& GetSnapshotStructName(void);
|
||||||
|
|
||||||
static const UINT64 kClockInitSequence = 0x5CA33AC55CA33AC5;
|
static const UINT64 kClockInitSequence = 0x5CA33AC55CA33AC5;
|
||||||
};
|
};
|
||||||
|
|
|
@ -209,7 +209,7 @@ void Printer_SetIdleLimit(unsigned int Duration)
|
||||||
#define SS_YAML_KEY_APPEND "Printer Append"
|
#define SS_YAML_KEY_APPEND "Printer Append"
|
||||||
#define SS_YAML_KEY_DUMPTOREALPRINTER "Enable Dump To Real Printer"
|
#define SS_YAML_KEY_DUMPTOREALPRINTER "Enable Dump To Real Printer"
|
||||||
|
|
||||||
std::string Printer_GetSnapshotCardName(void)
|
const std::string& Printer_GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name(SS_YAML_VALUE_CARD_PRINTER);
|
static const std::string name(SS_YAML_VALUE_CARD_PRINTER);
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -9,7 +9,7 @@ const std::string & Printer_GetFilename();
|
||||||
void Printer_SetIdleLimit(unsigned int Duration);
|
void Printer_SetIdleLimit(unsigned int Duration);
|
||||||
unsigned int Printer_GetIdleLimit();
|
unsigned int Printer_GetIdleLimit();
|
||||||
|
|
||||||
std::string Printer_GetSnapshotCardName(void);
|
const std::string& Printer_GetSnapshotCardName(void);
|
||||||
void Printer_SaveSnapshot(class YamlSaveHelper& yamlSaveHelper, const UINT uSlot);
|
void Printer_SaveSnapshot(class YamlSaveHelper& yamlSaveHelper, const UINT uSlot);
|
||||||
bool Printer_LoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT slot, UINT version);
|
bool Printer_LoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT slot, UINT version);
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ void SAMCard::InitializeIO(LPBYTE pCxRomPeripheral)
|
||||||
|
|
||||||
static const UINT kUNIT_VERSION = 1;
|
static const UINT kUNIT_VERSION = 1;
|
||||||
|
|
||||||
std::string SAMCard::GetSnapshotCardName(void)
|
const std::string& SAMCard::GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("SAM");
|
static const std::string name("SAM");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -19,7 +19,7 @@ public:
|
||||||
|
|
||||||
static BYTE __stdcall IOWrite(WORD pc, WORD addr, BYTE bWrite, BYTE value, ULONG nExecutedCycles);
|
static BYTE __stdcall IOWrite(WORD pc, WORD addr, BYTE bWrite, BYTE value, ULONG nExecutedCycles);
|
||||||
|
|
||||||
static std::string GetSnapshotCardName(void);
|
static const std::string& GetSnapshotCardName(void);
|
||||||
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
||||||
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
||||||
|
|
||||||
|
|
|
@ -213,7 +213,7 @@ static const UINT kUNIT_VERSION = 1;
|
||||||
|
|
||||||
#define SS_YAML_KEY_BUTTON_INDEX "Button Index"
|
#define SS_YAML_KEY_BUTTON_INDEX "Button Index"
|
||||||
|
|
||||||
std::string SNESMAXCard::GetSnapshotCardName(void)
|
const std::string& SNESMAXCard::GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("SNES MAX");
|
static const std::string name("SNES MAX");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -27,7 +27,7 @@ public:
|
||||||
static BYTE __stdcall IORead(WORD pc, WORD addr, BYTE bWrite, BYTE value, ULONG nExecutedCycles);
|
static BYTE __stdcall IORead(WORD pc, WORD addr, BYTE bWrite, BYTE value, ULONG nExecutedCycles);
|
||||||
static BYTE __stdcall IOWrite(WORD pc, WORD addr, BYTE bWrite, BYTE value, ULONG nExecutedCycles);
|
static BYTE __stdcall IOWrite(WORD pc, WORD addr, BYTE bWrite, BYTE value, ULONG nExecutedCycles);
|
||||||
|
|
||||||
static std::string GetSnapshotCardName(void);
|
static const std::string& GetSnapshotCardName(void);
|
||||||
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
||||||
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
||||||
|
|
||||||
|
|
|
@ -165,19 +165,19 @@ void Snapshot_UpdatePath(void)
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
static std::string GetSnapshotUnitApple2Name(void)
|
static const std::string& GetSnapshotUnitApple2Name(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Apple2");
|
static const std::string name("Apple2");
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string GetSnapshotUnitSlotsName(void)
|
static const std::string& GetSnapshotUnitSlotsName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Slots");
|
static const std::string name("Slots");
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string GetSnapshotUnitMiscName(void)
|
static const std::string& GetSnapshotUnitMiscName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Miscellaneous");
|
static const std::string name("Miscellaneous");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -1417,7 +1417,7 @@ static const UINT kUNIT_VERSION = 2;
|
||||||
#define SS_YAML_KEY_SERIALPORTNAME "Serial Port Name"
|
#define SS_YAML_KEY_SERIALPORTNAME "Serial Port Name"
|
||||||
#define SS_YAML_KEY_SUPPORT_DCD "Support DCD"
|
#define SS_YAML_KEY_SUPPORT_DCD "Support DCD"
|
||||||
|
|
||||||
std::string CSuperSerialCard::GetSnapshotCardName(void)
|
const std::string& CSuperSerialCard::GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name(SS_YAML_VALUE_CARD_SSC);
|
static const std::string name(SS_YAML_VALUE_CARD_SSC);
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -36,7 +36,7 @@ public:
|
||||||
void CommReset();
|
void CommReset();
|
||||||
void CommDestroy();
|
void CommDestroy();
|
||||||
void CommSetSerialPort(DWORD dwNewSerialPortItem);
|
void CommSetSerialPort(DWORD dwNewSerialPortItem);
|
||||||
static std::string GetSnapshotCardName(void);
|
static const std::string& GetSnapshotCardName(void);
|
||||||
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
||||||
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
||||||
|
|
||||||
|
|
|
@ -952,7 +952,7 @@ static void Spkr_DSUninit()
|
||||||
|
|
||||||
#define SS_YAML_KEY_LASTCYCLE "Last Cycle"
|
#define SS_YAML_KEY_LASTCYCLE "Last Cycle"
|
||||||
|
|
||||||
static std::string SpkrGetSnapshotStructName(void)
|
static const std::string& SpkrGetSnapshotStructName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Speaker");
|
static const std::string name("Speaker");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -1078,7 +1078,7 @@ void Uthernet1::Update(const ULONG nExecutedCycles)
|
||||||
|
|
||||||
static const UINT kUNIT_VERSION = 1;
|
static const UINT kUNIT_VERSION = 1;
|
||||||
|
|
||||||
std::string Uthernet1::GetSnapshotCardName(void)
|
const std::string& Uthernet1::GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Uthernet");
|
static const std::string name("Uthernet");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -135,7 +135,7 @@ public:
|
||||||
BYTE tfe_read(WORD ioaddress);
|
BYTE tfe_read(WORD ioaddress);
|
||||||
void tfe_store(WORD ioaddress, BYTE byte);
|
void tfe_store(WORD ioaddress, BYTE byte);
|
||||||
|
|
||||||
static std::string GetSnapshotCardName(void);
|
static const std::string& GetSnapshotCardName(void);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
|
@ -239,7 +239,7 @@ uint16_t Socket::getFreeRoom() const
|
||||||
return size - rsr;
|
return size - rsr;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string Uthernet2::GetSnapshotCardName()
|
const std::string& Uthernet2::GetSnapshotCardName()
|
||||||
{
|
{
|
||||||
static const std::string name("Uthernet2");
|
static const std::string name("Uthernet2");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -49,7 +49,7 @@ struct Socket
|
||||||
class Uthernet2 : public Card
|
class Uthernet2 : public Card
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static std::string GetSnapshotCardName();
|
static const std::string& GetSnapshotCardName();
|
||||||
|
|
||||||
Uthernet2(UINT slot);
|
Uthernet2(UINT slot);
|
||||||
|
|
||||||
|
|
|
@ -183,13 +183,13 @@ static const UINT kUNIT_VERSION = 1;
|
||||||
#define SS_YAML_KEY_BORDER_COLOR "Border Color"
|
#define SS_YAML_KEY_BORDER_COLOR "Border Color"
|
||||||
#define SS_YAML_KEY_SHADOW "Shadow"
|
#define SS_YAML_KEY_SHADOW "Shadow"
|
||||||
|
|
||||||
std::string VidHDCard::GetSnapshotCardName(void)
|
const std::string& VidHDCard::GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("VidHD");
|
static const std::string name("VidHD");
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string MemGetSnapshotAuxMemStructName(void)
|
static const std::string& MemGetSnapshotAuxMemStructName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Auxiliary Memory Bank");
|
static const std::string name("Auxiliary Memory Bank");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
|
|
||||||
static void UpdateSHRCell(bool is640Mode, bool isColorFillMode, uint16_t addrPalette, bgra_t* pVideoAddress, uint32_t a);
|
static void UpdateSHRCell(bool is640Mode, bool isColorFillMode, uint16_t addrPalette, bgra_t* pVideoAddress, uint32_t a);
|
||||||
|
|
||||||
static std::string GetSnapshotCardName(void);
|
static const std::string& GetSnapshotCardName(void);
|
||||||
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
||||||
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
||||||
|
|
||||||
|
|
|
@ -275,7 +275,7 @@ bool Video::VideoGetSWAltCharSet(void)
|
||||||
#define SS_YAML_KEY_CYCLES_THIS_FRAME "Cycles This Frame"
|
#define SS_YAML_KEY_CYCLES_THIS_FRAME "Cycles This Frame"
|
||||||
#define SS_YAML_KEY_VIDEO_REFRESH_RATE "Video Refresh Rate"
|
#define SS_YAML_KEY_VIDEO_REFRESH_RATE "Video Refresh Rate"
|
||||||
|
|
||||||
std::string Video::VideoGetSnapshotStructName(void)
|
const std::string& Video::VideoGetSnapshotStructName(void)
|
||||||
{
|
{
|
||||||
static const std::string name("Video");
|
static const std::string name("Video");
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -285,7 +285,7 @@ protected:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void SetFrameBuffer(uint8_t* frameBuffer) { g_pFramebufferbits = frameBuffer; }
|
void SetFrameBuffer(uint8_t* frameBuffer) { g_pFramebufferbits = frameBuffer; }
|
||||||
std::string VideoGetSnapshotStructName(void);
|
const std::string& VideoGetSnapshotStructName(void);
|
||||||
|
|
||||||
int g_nAltCharSetOffset;
|
int g_nAltCharSetOffset;
|
||||||
uint32_t g_uVideoMode; // Current Video Mode (this is the last set one as it may change mid-scan line!)
|
uint32_t g_uVideoMode; // Current Video Mode (this is the last set one as it may change mid-scan line!)
|
||||||
|
|
|
@ -6465,7 +6465,7 @@ void z80_WRMEM(WORD Addr, BYTE Value)
|
||||||
#define SS_YAML_KEY_REGL2 "L'"
|
#define SS_YAML_KEY_REGL2 "L'"
|
||||||
#define SS_YAML_KEY_ACTIVE "Active"
|
#define SS_YAML_KEY_ACTIVE "Active"
|
||||||
|
|
||||||
std::string Z80_GetSnapshotCardName(void)
|
const std::string& Z80_GetSnapshotCardName(void)
|
||||||
{
|
{
|
||||||
static const std::string name(SS_YAML_VALUE_CARD_Z80);
|
static const std::string name(SS_YAML_VALUE_CARD_Z80);
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -18,6 +18,6 @@
|
||||||
void Z80_InitializeIO(LPBYTE pCxRomPeripheral, UINT uSlot);
|
void Z80_InitializeIO(LPBYTE pCxRomPeripheral, UINT uSlot);
|
||||||
|
|
||||||
// NB. These are in z80.cpp:
|
// NB. These are in z80.cpp:
|
||||||
std::string Z80_GetSnapshotCardName(void);
|
const std::string& Z80_GetSnapshotCardName(void);
|
||||||
void Z80_SaveSnapshot(class YamlSaveHelper& yamlSaveHelper, const UINT uSlot);
|
void Z80_SaveSnapshot(class YamlSaveHelper& yamlSaveHelper, const UINT uSlot);
|
||||||
bool Z80_LoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT uSlot, UINT version);
|
bool Z80_LoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT uSlot, UINT version);
|
||||||
|
|
Loading…
Add table
Reference in a new issue