AROS World Exec

Development => Development (General) => Topic started by: Polluks on October 25, 2018, 04:17:50 PM

Title: System identification at runtime
Post 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
Title: Re: System identification at runtime
Post by: Ball000 on November 09, 2018, 04:58:06 AM
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).
Title: Re: System identification at runtime
Post by: BSzili on November 09, 2018, 05:46:38 AM
I think he wants to do this in a 68k program, and in that case something like this will probably do it:
Code: [Select]
struct Library *arosBase = OpenLibrary("aros.library", 0);
if (arosBase)
{
  // running on AROS
  CloseLibrary(arosBase);
  arosBase = NULL;
}