1 |
|
/* |
2 |
|
* main_amiga.cpp - Startup code for AmigaOS |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2000 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
56 |
|
#include "debug.h" |
57 |
|
|
58 |
|
|
59 |
< |
// Our minimum stack requirement |
60 |
< |
unsigned long __stack = 0x4000; |
59 |
> |
// Options for libnix |
60 |
> |
unsigned long __stack = 0x4000; // Stack requirement |
61 |
> |
int __nocommandline = 1; // Disable command line parsing |
62 |
|
|
63 |
|
|
64 |
|
// Constants |
91 |
|
struct Library *IFFParseBase = NULL; |
92 |
|
struct Library *AslBase = NULL; |
93 |
|
struct Library *P96Base = NULL; |
94 |
+ |
struct Library *CyberGfxBase = NULL; |
95 |
|
struct Library *TimerBase = NULL; |
96 |
|
struct Library *AHIBase = NULL; |
97 |
|
struct Library *DiskBase = NULL; |
181 |
|
ErrorAlert(GetString(STR_NO_ASL_LIB_ERR)); |
182 |
|
QuitEmulator(); |
183 |
|
} |
184 |
+ |
|
185 |
+ |
// These two can fail (the respective gfx support won't be available, then) |
186 |
|
P96Base = OpenLibrary((UBYTE *)"Picasso96API.library", 2); |
187 |
+ |
CyberGfxBase = OpenLibrary((UBYTE *)"cybergraphics.library", 2); |
188 |
|
|
189 |
|
// Read preferences |
190 |
|
PrefsInit(); |
402 |
|
PrefsExit(); |
403 |
|
|
404 |
|
// Close libraries |
405 |
+ |
if (CyberGfxBase) |
406 |
+ |
CloseLibrary(CyberGfxBase); |
407 |
|
if (P96Base) |
408 |
|
CloseLibrary(P96Base); |
409 |
|
if (AslBase) |