Which OS

Find quick help here to get you started with Hollywood
Post Reply
SpawnPPC
Posts: 61
Joined: Fri Mar 15, 2024 11:51 pm

Which OS

Post 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
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Which OS

Post by plouf »

try

Code: Select all

version =GetVersion()
DebugPrint(version.platform)
Christos
SpawnPPC
Posts: 61
Joined: Fri Mar 15, 2024 11:51 pm

Re: Which OS

Post by SpawnPPC »

Thanx !

I found something like this.

I will tell you if it work ! XD

Thanx for help !

Bye !!!

SpawnPPC
SpawnPPC
Posts: 61
Joined: Fri Mar 15, 2024 11:51 pm

Re: Which OS

Post 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
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Which OS

Post by plouf »

no alert here

do you have Hollywood 10 or older version ? (this 'misprogramming' fixed in 10)
Christos
SpawnPPC
Posts: 61
Joined: Fri Mar 15, 2024 11:51 pm

Re: Which OS

Post by SpawnPPC »

I have 10 but I resolved.

Thanx
Post Reply