Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
73 user(s) are online (61 user(s) are browsing Forums)

Members: 0
Guests: 73

more...

Headlines

Report message:*
 

Re: Detecting if a 68k prog is running on os4 ?

Subject: Re: Detecting if a 68k prog is running on os4 ?
by BSzili on 2021/9/6 5:56:08

I ended up going with:
if (((struct Library *)SysBase)->lib_Version >= 50 && (FindResident((STRPTR)"elf.library") || FindResident((STRPTR)"MorphOS"))) {
    
// AmigaOS4 or MorphOS
}

which does the job I think.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project