Author Topic: System identification at runtime  (Read 141 times)

polluks

  • Newbie
  • *
  • Posts: 3
    • View Profile
System identification at runtime
« on: October 25, 2018, 11: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

Ball000

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: System identification at runtime
« Reply #1 on: November 09, 2018, 11:58:06 AM »
Hi Stefan,

As I understand it, that's the aim of the ArosInquireA() function. System/AboutAROS uses it.

BSzili

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • My AROS, MorphOS and AmigaOS4 ports
Re: System identification at runtime
« Reply #2 on: November 09, 2018, 12:46:38 PM »
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;
}
This is just like television, only you can see much further.