mirror of
https://github.com/LIV2/lide.device.git
synced 2025-12-06 00:32:45 +00:00
lideflash: Display an alert if running kickstart 1.2
This commit is contained in:
parent
b45e0ffed0
commit
f04b45659b
@ -27,6 +27,8 @@
|
||||
#include <dos/dos.h>
|
||||
#include <proto/alib.h>
|
||||
#include <dos/dosextens.h>
|
||||
#include <intuition/intuitionbase.h>
|
||||
#include <proto/intuition.h>
|
||||
|
||||
#include "flash.h"
|
||||
#include "main.h"
|
||||
@ -477,6 +479,30 @@ int main(int argc, char *argv[])
|
||||
return(rc);
|
||||
}
|
||||
|
||||
// Throw an alert if Kick < 1.3
|
||||
if (SysBase->LibNode.lib_Version < 34) {
|
||||
struct IntuitionBase *IntuitionBase = (struct IntuitionBase *)OpenLibrary("intuition.library",0);
|
||||
|
||||
// Screen mode is 64 columns with a 10x8 font
|
||||
char AlertString[] = {
|
||||
"\x00\x82" // X coord
|
||||
"\x10" // Y coord
|
||||
"LIDE requires Kickstart 1.3 or higher!"
|
||||
"\x00\x01" // Continue
|
||||
"\x00\x64" // X coord
|
||||
"\x1A" // Y coord
|
||||
"Please upgrade to a newer Kickstart version"
|
||||
"\x00\x01" // Continue
|
||||
"\x00\x8C" // X coord
|
||||
"\x2E" // Y coord
|
||||
"Press left mouse button to continue."
|
||||
"\x00\x00"
|
||||
};
|
||||
|
||||
DisplayAlert(0,AlertString,58);
|
||||
CloseLibrary((struct Library *)IntuitionBase);
|
||||
}
|
||||
|
||||
printf("\n==== LIDE Flash Updater ====\n");
|
||||
|
||||
struct Task *task = FindTask(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user