mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-14 03:09:01 +00:00
Renamed: DiskProtect() to DiskGetProtect()
Added: DiskGetProtect()
This commit is contained in:
parent
308f0aa6a1
commit
8365a7c3c1
@ -408,7 +408,20 @@ void DiskNotifyInvalidImage (LPCTSTR imagefilename,int error)
|
||||
|
||||
|
||||
//===========================================================================
|
||||
void DiskProtect( const int iDrive, const bool bWriteProtect )
|
||||
bool DiskGetProtect( const int iDrive )
|
||||
{
|
||||
if (IsDriveValid( iDrive ))
|
||||
{
|
||||
Disk_t *pFloppy = &g_aFloppyDisk[ iDrive ];
|
||||
if (pFloppy->writeprotected)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
void DiskSetProtect( const int iDrive, const bool bWriteProtect )
|
||||
{
|
||||
if (IsDriveValid( iDrive ))
|
||||
{
|
||||
|
@ -31,7 +31,8 @@ int DiskInsert (int,LPCTSTR,BOOL,BOOL);
|
||||
BOOL DiskIsSpinning ();
|
||||
void DiskNotifyInvalidImage (LPCTSTR,int);
|
||||
void DiskReset ();
|
||||
void DiskProtect( const int iDrive, const bool bWriteProtect );
|
||||
bool DiskGetProtect( const int iDrive );
|
||||
void DiskSetProtect( const int iDrive, const bool bWriteProtect );
|
||||
void DiskSelect (int);
|
||||
void DiskUpdatePosition (DWORD);
|
||||
bool DiskDriveSwap();
|
||||
|
Loading…
Reference in New Issue
Block a user