Compare commits

...

2 Commits

Author SHA1 Message Date
865c42737e Update devcontainer.json 2025-08-21 10:31:43 +00:00
f04b45659b lideflash: Display an alert if running kickstart 1.2 2025-08-16 07:49:20 +00:00
2 changed files with 27 additions and 1 deletions

View File

@ -3,7 +3,7 @@
{
"name": "amiga-gcc-amitools",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "stefanreinauer/amiga-gcc:latest",
"image": "liv2/amiga-gcc:latest",
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

View File

@ -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);