mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-02-27 12:29:37 +00:00
Renamed: DiskProtect() to DiskGetProtect()
Added: DiskGetProtect()
This commit is contained in:
parent
14b30f9478
commit
9141595031
@ -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 ))
|
if (IsDriveValid( iDrive ))
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,8 @@ int DiskInsert (int,LPCTSTR,BOOL,BOOL);
|
|||||||
BOOL DiskIsSpinning ();
|
BOOL DiskIsSpinning ();
|
||||||
void DiskNotifyInvalidImage (LPCTSTR,int);
|
void DiskNotifyInvalidImage (LPCTSTR,int);
|
||||||
void DiskReset ();
|
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 DiskSelect (int);
|
||||||
void DiskUpdatePosition (DWORD);
|
void DiskUpdatePosition (DWORD);
|
||||||
bool DiskDriveSwap();
|
bool DiskDriveSwap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user