mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-18 12:06:47 +00:00
92db4693f1
Fix: Cmd-line switches for inserting disks
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
#pragma once
|
|
|
|
#define DRIVE_1 0
|
|
#define DRIVE_2 1
|
|
|
|
#define DRIVES 2
|
|
#define TRACKS_STANDARD 35
|
|
#define TRACKS_EXTRA 5 // Allow up to a 40-track .dsk image (160KB)
|
|
#define TRACKS_MAX (TRACKS_STANDARD+TRACKS_EXTRA)
|
|
|
|
extern BOOL enhancedisk;
|
|
extern string DiskPathFilename[DRIVES];
|
|
|
|
void DiskInitialize (); // DiskManagerStartup()
|
|
void DiskDestroy (); // no, doesn't "destroy" the disk image. DiskManagerShutdown()
|
|
|
|
void DiskBoot ();
|
|
void DiskEject( const int iDrive );
|
|
LPCTSTR DiskGetFullName (int);
|
|
|
|
|
|
enum Disk_Status_e
|
|
{
|
|
DISK_STATUS_OFF ,
|
|
DISK_STATUS_READ ,
|
|
DISK_STATUS_WRITE,
|
|
DISK_STATUS_PROT ,
|
|
NUM_DISK_STATUS
|
|
};
|
|
void DiskGetLightStatus (int *pDisk1Status_,int *pDisk2Status_);
|
|
|
|
LPCTSTR DiskGetName (int);
|
|
int DiskInsert (int,LPCTSTR,BOOL,BOOL);
|
|
BOOL DiskIsSpinning ();
|
|
void DiskNotifyInvalidImage (LPCTSTR,int);
|
|
void DiskReset ();
|
|
bool DiskGetProtect( const int iDrive );
|
|
void DiskSetProtect( const int iDrive, const bool bWriteProtect );
|
|
void DiskSelect (int);
|
|
void DiskUpdatePosition (DWORD);
|
|
bool DiskDriveSwap();
|
|
void DiskLoadRom(LPBYTE pCxRomPeripheral, UINT uSlot);
|
|
DWORD DiskGetSnapshot(SS_CARD_DISK2* pSS, DWORD dwSlot);
|
|
DWORD DiskSetSnapshot(SS_CARD_DISK2* pSS, DWORD dwSlot);
|
|
|
|
void Disk_LoadLastDiskImage( int iDrive );
|
|
void Disk_SaveLastDiskImage( int iDrive );
|