Give a warning when using NetDisk with an old Marinetti version.

This commit is contained in:
Stephen Heumann 2019-07-15 20:13:11 -05:00
parent ea0f70fc94
commit 524786856c
2 changed files with 20 additions and 0 deletions

8
cdev.c
View File

@ -47,8 +47,11 @@
#define mountURLError 3001
#define unsupportedProtocolAlert 3002
#define marinettiMissingError 3003
#define marinettiVersionWarning 3004
#define yesBtn 1 /* number of "Yes" button in alert */
#define DESIRED_MARINETTI_VERSION 0x03006011 /* 3.0b11 */
extern void FreeAllCDevMem(void);
char urlBuf[257];
@ -175,6 +178,11 @@ long DoMachine(void)
AlertWindow(awResource+awButtonLayout, NULL, marinettiMissingError);
return 0;
}
if (TCPIPLongVersion() < DESIRED_MARINETTI_VERSION) {
InitCursor();
AlertWindow(awResource+awButtonLayout, NULL, marinettiVersionWarning);
}
return 1;
}

View File

@ -288,6 +288,7 @@ resource rTextForLETextBox2 (helpWindow+helpTxt) {
#define mountURLError 3001
#define unsupportedProtocolAlert 3002
#define marinettiMissingError 3003
#define marinettiVersionWarning 3004
resource rAlertString (netDiskMissingError) {
"62/"
@ -316,3 +317,14 @@ resource rAlertString (unsupportedProtocolAlert) {
":#3:^#2\$00"
};
resource rAlertString (marinettiVersionWarning) {
"84:"
"NetDisk is designed for use with Marinetti 3.0b11 or later.\n"
"You are currently using an older version of Marinetti.\n"
"You can try to use NetDisk with your current Marinetti version,\n"
"but you may experience I/O errors or other problems.\n"
"To ensure proper operation, please upgrade Marinetti."
":^#6\$00"
};