Page 1 of 1

Which OS

Posted: Tue Nov 12, 2024 8:01 pm
by SpawnPPC
Hello everyone.

Here I am again.

I am trying to understand how Hollywood recognizes the host system.

What is the command to know if I am using AmigaOS or Windows, for example?

Thanks

Emanuele

Re: Which OS

Posted: Tue Nov 12, 2024 8:10 pm
by plouf
try

Code: Select all

version =GetVersion()
DebugPrint(version.platform)

Re: Which OS

Posted: Tue Nov 12, 2024 10:12 pm
by SpawnPPC
Thanx !

I found something like this.

I will tell you if it work ! XD

Thanx for help !

Bye !!!

SpawnPPC

Re: Which OS

Posted: Tue Nov 12, 2024 11:02 pm
by SpawnPPC
So guys, this happens to me...

I'm developing an App with Hollywood for AmigaOS on a Windows 11 PC with Hollywood 10.

Everything is perfect but now that I need to load the Pananarama plugin in pre-processor, Hollywood obviously gives me an error. Honestly this thing bothers me a bit so to solve it I did this:
-----
@IF #HW_AMIGA
@REQUIRE "plananarama", {PaletteMode = True}
@ENDIF
-----
Load the plugin ONLY if the platform on which this program is running is a compatible AmigaOS...

Despite everything it continues to give me the error of the plugin that is not supported on Windows.

How can I avoid this very annoying alert?

Thanks everyone!

bySpawnPPC

Re: Which OS

Posted: Wed Nov 13, 2024 5:40 am
by plouf
no alert here

do you have Hollywood 10 or older version ? (this 'misprogramming' fixed in 10)

Re: Which OS

Posted: Thu Nov 14, 2024 8:41 am
by SpawnPPC
I have 10 but I resolved.

Thanx