mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-29 08:30:04 +00:00
Fix build errors from PR #1039
This commit is contained in:
parent
7ae8907674
commit
43b9df253a
@ -180,7 +180,7 @@ void Disk2InterfaceCard::LoadLastDiskImage(const int drive)
|
||||
|
||||
char pathname[MAX_PATH];
|
||||
|
||||
std::string& regSection = RegGetConfigSlotSection(m_slot);
|
||||
std::string regSection = RegGetConfigSlotSection(m_slot);
|
||||
if (RegLoadString(regSection.c_str(), regKey.c_str(), TRUE, pathname, MAX_PATH, TEXT("")) && (pathname[0] != 0))
|
||||
{
|
||||
m_saveDiskImage = false;
|
||||
@ -204,7 +204,7 @@ void Disk2InterfaceCard::SaveLastDiskImage(const int drive)
|
||||
if (!m_saveDiskImage)
|
||||
return;
|
||||
|
||||
std::string& regSection = RegGetConfigSlotSection(m_slot);
|
||||
std::string regSection = RegGetConfigSlotSection(m_slot);
|
||||
RegSaveValue(regSection.c_str(), REGVALUE_CARD_TYPE, TRUE, CT_Disk2);
|
||||
|
||||
const std::string regKey = (drive == DRIVE_1)
|
||||
|
@ -229,7 +229,7 @@ void HarddiskInterfaceCard::LoadLastDiskImage(const int drive)
|
||||
|
||||
char pathname[MAX_PATH];
|
||||
|
||||
std::string& regSection = RegGetConfigSlotSection(m_slot);
|
||||
std::string regSection = RegGetConfigSlotSection(m_slot);
|
||||
if (RegLoadString(regSection.c_str(), regKey.c_str(), TRUE, pathname, MAX_PATH, TEXT("")) && (pathname[0] != 0))
|
||||
{
|
||||
m_saveDiskImage = false;
|
||||
@ -253,7 +253,7 @@ void HarddiskInterfaceCard::SaveLastDiskImage(const int drive)
|
||||
if (!m_saveDiskImage)
|
||||
return;
|
||||
|
||||
std::string& regSection = RegGetConfigSlotSection(m_slot);
|
||||
std::string regSection = RegGetConfigSlotSection(m_slot);
|
||||
RegSaveValue(regSection.c_str(), REGVALUE_CARD_TYPE, TRUE, CT_GenericHDD);
|
||||
|
||||
const std::string regKey = (drive == HARDDISK_1)
|
||||
|
@ -171,7 +171,7 @@ void RegDeleteConfigSlotSection(UINT slot)
|
||||
|
||||
if (!g_sConfigFile.empty())
|
||||
{
|
||||
std::string& section = RegGetConfigSlotSection(slot);
|
||||
std::string section = RegGetConfigSlotSection(slot);
|
||||
return _ini::RegDeleteString(section.c_str(), peruser);
|
||||
}
|
||||
|
||||
@ -186,7 +186,7 @@ void RegDeleteConfigSlotSection(UINT slot)
|
||||
&keyhandle);
|
||||
if (status == ERROR_SUCCESS)
|
||||
{
|
||||
std::string& section = RegGetSlotSection(slot);
|
||||
std::string section = RegGetSlotSection(slot);
|
||||
LSTATUS status2 = RegDeleteKey(keyhandle, section.c_str());
|
||||
if (status2 != ERROR_SUCCESS && status2 != ERROR_FILE_NOT_FOUND)
|
||||
_ASSERT(0);
|
||||
|
@ -92,7 +92,7 @@ CSuperSerialCard::CSuperSerialCard(UINT slot) :
|
||||
//
|
||||
|
||||
char serialPortName[CSuperSerialCard::SIZEOF_SERIALCHOICE_ITEM];
|
||||
std::string& regSection = RegGetConfigSlotSection(m_slot);
|
||||
std::string regSection = RegGetConfigSlotSection(m_slot);
|
||||
RegLoadString(regSection.c_str(), REGVALUE_SERIAL_PORT_NAME, TRUE, serialPortName, sizeof(serialPortName), TEXT(""));
|
||||
|
||||
SetSerialPortName(serialPortName);
|
||||
@ -1397,7 +1397,7 @@ void CSuperSerialCard::SetSerialPortName(const char* pSerialPortName)
|
||||
|
||||
void CSuperSerialCard::SetRegistrySerialPortName(void)
|
||||
{
|
||||
std::string& regSection = RegGetConfigSlotSection(m_slot);
|
||||
std::string regSection = RegGetConfigSlotSection(m_slot);
|
||||
RegSaveString(regSection.c_str(), REGVALUE_SERIAL_PORT_NAME, TRUE, GetSerialPortName());
|
||||
}
|
||||
|
||||
|
@ -1454,7 +1454,7 @@ int get_tfe_enabled(void)
|
||||
// Called by: tfe_LoadSnapshot() & ApplyNewConfig()
|
||||
void tfe_SetRegistryInterface(UINT slot, const std::string& name)
|
||||
{
|
||||
std::string& regSection = RegGetConfigSlotSection(slot);
|
||||
std::string regSection = RegGetConfigSlotSection(slot);
|
||||
RegSaveString(regSection.c_str(), REGVALUE_UTHERNET_INTERFACE, 1, name);
|
||||
}
|
||||
|
||||
|
@ -249,7 +249,7 @@ void LoadConfiguration(bool loadImages)
|
||||
|
||||
for (UINT slot = SLOT0; slot <= SLOT7; slot++)
|
||||
{
|
||||
std::string& regSection = RegGetConfigSlotSection(slot);
|
||||
std::string regSection = RegGetConfigSlotSection(slot);
|
||||
|
||||
if (RegLoadValue(regSection.c_str(), REGVALUE_CARD_TYPE, TRUE, &dwTmp))
|
||||
{
|
||||
@ -261,7 +261,7 @@ void LoadConfiguration(bool loadImages)
|
||||
|
||||
if ((SS_CARDTYPE)dwTmp == CT_Uthernet) // TODO: move this to when UthernetCard object is instantiated
|
||||
{
|
||||
std::string& regSection = RegGetConfigSlotSection(slot);
|
||||
std::string regSection = RegGetConfigSlotSection(slot);
|
||||
if (RegLoadString(regSection.c_str(), REGVALUE_UTHERNET_INTERFACE, TRUE, szFilename, MAX_PATH, TEXT("")))
|
||||
update_tfe_interface(szFilename);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user