2006-02-25 20:50:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
2010-12-18 20:54:45 +00:00
|
|
|
/*
|
|
|
|
AppleWin : An Apple //e emulator for Windows
|
|
|
|
|
|
|
|
Copyright (C) 1994-1996, Michael O'Brien
|
|
|
|
Copyright (C) 1999-2001, Oliver Schmidt
|
|
|
|
Copyright (C) 2002-2005, Tom Charlesworth
|
|
|
|
Copyright (C) 2006-2010, Tom Charlesworth, Michael Pohoreski
|
|
|
|
|
|
|
|
AppleWin is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
AppleWin is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with AppleWin; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
2020-11-11 21:15:27 +00:00
|
|
|
#include "DiskImage.h"
|
|
|
|
|
2020-11-29 17:30:06 +00:00
|
|
|
// 1.19.0.0 Hard Disk Status/Indicator Light
|
|
|
|
#define HD_LED 1
|
|
|
|
|
2010-12-18 20:54:45 +00:00
|
|
|
enum HardDrive_e
|
|
|
|
{
|
|
|
|
HARDDISK_1 = 0,
|
|
|
|
HARDDISK_2,
|
|
|
|
NUM_HARDDISKS
|
|
|
|
};
|
|
|
|
|
2015-02-13 22:40:53 +00:00
|
|
|
void HD_Destroy(void);
|
2010-12-18 20:54:45 +00:00
|
|
|
bool HD_CardIsEnabled(void);
|
|
|
|
void HD_SetEnabled(const bool bEnabled);
|
2019-09-07 08:02:39 +00:00
|
|
|
const std::string & HD_GetFullName(const int iDrive);
|
|
|
|
const std::string & HD_GetFullPathName(const int iDrive);
|
2020-10-25 17:14:23 +00:00
|
|
|
void HD_GetFilenameAndPathForSaveState(std::string& filename, std::string& path);
|
2017-12-03 21:05:05 +00:00
|
|
|
void HD_Reset(void);
|
2015-02-13 22:40:53 +00:00
|
|
|
void HD_Load_Rom(const LPBYTE pCxRomPeripheral, const UINT uSlot);
|
2017-06-03 17:12:40 +00:00
|
|
|
bool HD_Select(const int iDrive);
|
2019-09-07 08:02:39 +00:00
|
|
|
BOOL HD_Insert(const int iDrive, const std::string & pszImageFilename);
|
2010-12-18 20:54:45 +00:00
|
|
|
void HD_Unplug(const int iDrive);
|
|
|
|
bool HD_IsDriveUnplugged(const int iDrive);
|
2015-02-13 22:40:53 +00:00
|
|
|
void HD_LoadLastDiskImage(const int iDrive);
|
2010-12-18 20:54:45 +00:00
|
|
|
|
|
|
|
// 1.19.0.0 Hard Disk Status/Indicator Light
|
2010-12-20 23:46:11 +00:00
|
|
|
void HD_GetLightStatus (Disk_Status_e *pDisk1Status_);
|
2018-12-09 11:48:22 +00:00
|
|
|
bool HD_ImageSwap(void);
|
2015-02-13 22:40:53 +00:00
|
|
|
|
2015-12-05 16:50:27 +00:00
|
|
|
std::string HD_GetSnapshotCardName(void);
|
|
|
|
void HD_SaveSnapshot(class YamlSaveHelper& yamlSaveHelper);
|
|
|
|
bool HD_LoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT slot, UINT version, const std::string strSaveStatePath);
|