1 |
|
/* |
2 |
|
* main_amiga.cpp - Startup code for AmigaOS |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2001 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2008 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 |
192 |
|
QuitEmulator(); |
193 |
|
} |
194 |
|
|
195 |
< |
if (FindTask((UBYTE *) "« Enforcer »")) |
196 |
< |
{ |
195 |
> |
if (FindTask((UBYTE *) "« Enforcer »")) { |
196 |
|
ErrorAlert(STR_ENFORCER_RUNNING_ERR); |
197 |
|
QuitEmulator(); |
198 |
< |
} |
198 |
> |
} |
199 |
|
|
200 |
|
// These two can fail (the respective gfx support won't be available, then) |
201 |
|
P96Base = OpenLibrary((UBYTE *) "Picasso96API.library", 2); |
202 |
|
CyberGfxBase = OpenLibrary((UBYTE *) "cybergraphics.library", 2); |
203 |
|
|
204 |
|
// Read preferences |
205 |
< |
PrefsInit(argc, argv); |
205 |
> |
PrefsInit(NULL, argc, argv); |
206 |
|
|
207 |
|
// Open AHI |
208 |
|
ahi_port = CreateMsgPort(); |
311 |
|
FPUType = attn & AFF_68881 ? 1 : 0; |
312 |
|
|
313 |
|
// Initialize everything |
314 |
< |
if (!InitAll()) |
314 |
> |
if (!InitAll(NULL)) |
315 |
|
QuitEmulator(); |
316 |
|
|
317 |
|
// Move VBR away from 0 if neccessary |