AROS World Exec
Development => Development (General) => Topic started by: Polluks on October 25, 2018, 04:17:50 PM
-
Hi there!
Right now I'm using FindResident("processor.resource") to identify AROS,
how about something like FindResident("AROS")? See MorphOS.
Greetings,
Stefan
-
Hi Stefan,
As I understand it, that's the aim of the ArosInquireA() (http://aros.sourceforge.net/documentation/developers/autodocs/aros.php#arosinquirea) function. System/AboutAROS uses it (https://github.com/ezrec/AROS-mirror/blob/834d412393ee990741ae8ebe4362fec4ebdfa682/AROS/workbench/system/AboutAROS/aboutaros.c#L215).
-
I think he wants to do this in a 68k program, and in that case something like this will probably do it:
struct Library *arosBase = OpenLibrary("aros.library", 0);
if (arosBase)
{
// running on AROS
CloseLibrary(arosBase);
arosBase = NULL;
}