Give a warning when using NetDisk with an old Marinetti version.
This commit is contained in:
parent
ea0f70fc94
commit
524786856c
8
cdev.c
8
cdev.c
|
@ -47,8 +47,11 @@
|
||||||
#define mountURLError 3001
|
#define mountURLError 3001
|
||||||
#define unsupportedProtocolAlert 3002
|
#define unsupportedProtocolAlert 3002
|
||||||
#define marinettiMissingError 3003
|
#define marinettiMissingError 3003
|
||||||
|
#define marinettiVersionWarning 3004
|
||||||
#define yesBtn 1 /* number of "Yes" button in alert */
|
#define yesBtn 1 /* number of "Yes" button in alert */
|
||||||
|
|
||||||
|
#define DESIRED_MARINETTI_VERSION 0x03006011 /* 3.0b11 */
|
||||||
|
|
||||||
extern void FreeAllCDevMem(void);
|
extern void FreeAllCDevMem(void);
|
||||||
|
|
||||||
char urlBuf[257];
|
char urlBuf[257];
|
||||||
|
@ -175,6 +178,11 @@ long DoMachine(void)
|
||||||
AlertWindow(awResource+awButtonLayout, NULL, marinettiMissingError);
|
AlertWindow(awResource+awButtonLayout, NULL, marinettiMissingError);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (TCPIPLongVersion() < DESIRED_MARINETTI_VERSION) {
|
||||||
|
InitCursor();
|
||||||
|
AlertWindow(awResource+awButtonLayout, NULL, marinettiVersionWarning);
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
12
cdev.rez
12
cdev.rez
|
@ -288,6 +288,7 @@ resource rTextForLETextBox2 (helpWindow+helpTxt) {
|
||||||
#define mountURLError 3001
|
#define mountURLError 3001
|
||||||
#define unsupportedProtocolAlert 3002
|
#define unsupportedProtocolAlert 3002
|
||||||
#define marinettiMissingError 3003
|
#define marinettiMissingError 3003
|
||||||
|
#define marinettiVersionWarning 3004
|
||||||
|
|
||||||
resource rAlertString (netDiskMissingError) {
|
resource rAlertString (netDiskMissingError) {
|
||||||
"62/"
|
"62/"
|
||||||
|
@ -316,3 +317,14 @@ resource rAlertString (unsupportedProtocolAlert) {
|
||||||
":#3:^#2\$00"
|
":#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"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue