From 2cb5fe9d57cd943fe01c258578533305221d0dce Mon Sep 17 00:00:00 2001 From: krustur Date: Mon, 26 Nov 2018 21:58:21 +0100 Subject: [PATCH] Lowered requirements to AmigaOS2.04 rev37 --- src/main.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index 3d11e22..3ba0835 100644 --- a/src/main.c +++ b/src/main.c @@ -44,8 +44,9 @@ const char *BuildPlatform = "Unknown"; #endif // Libraries -// int _IconBaseVer = 45; +unsigned long DosVersion = 37L; struct Library *DosBase = NULL; +unsigned long IconVersion = 37L; struct Library *IconBase = NULL; // Arguments @@ -97,18 +98,18 @@ long Align(long orig, long pad, long align, long alignoffset); int main(int argc, char **argv) { // Open libraries - DosBase = OpenLibrary("dos.library", 40L); + DosBase = OpenLibrary("dos.library", DosVersion); if (!DosBase) { - Information("Failed to open dos.library 40\n"); + Information("Failed to open dos.library %li\n", DosVersion); return RETURN_ERROR; } // Verbose("DosBase: %p\n", (void *)DosBase); - IconBase = OpenLibrary("icon.library", 45L); + IconBase = OpenLibrary("icon.library", IconVersion); if (!IconBase) { - Information("Failed to open icon.library 45\n"); + Information("Failed to open icon.library %li\n", IconVersion); return RETURN_ERROR; } // Verbose("IconBase: %p\n", (void *)IconBase);