From 524786856c6472c5fba58d2bfeff16a8563902df Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Mon, 15 Jul 2019 20:13:11 -0500 Subject: [PATCH] Give a warning when using NetDisk with an old Marinetti version. --- cdev.c | 8 ++++++++ cdev.rez | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/cdev.c b/cdev.c index 9209002..bcdffc3 100644 --- a/cdev.c +++ b/cdev.c @@ -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; } diff --git a/cdev.rez b/cdev.rez index 0bc3f7c..c7a1932 100644 --- a/cdev.rez +++ b/cdev.rez @@ -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" +}; + +