mirror of
https://github.com/LIV2/lide.device.git
synced 2025-12-06 00:32:45 +00:00
Compare commits
2 Commits
b45e0ffed0
...
865c42737e
| Author | SHA1 | Date | |
|---|---|---|---|
| 865c42737e | |||
| f04b45659b |
@ -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": {},
|
||||
|
||||
@ -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