cross platform application howto detect operating system
Posted: Thu Mar 09, 2023 3:52 pm
Hello all,
i'm completely new to Hollywood. I'm working mainly on Linux and Windows.
My application will use Execute() and/or Run() and i plan to write single source which i want to compile for win and lin.
parameters of the functions require different format, depending on currently running OS.
So the running application has to know which OS it runs on.
Is there a HW function like getCurrentPlatform or so?
Or do I have code myself a recognition workaround like watching output of existing hw funcs like getSystemInfo UserHome or so?
Or is there a typical hollywood way to do it?
Regards, Olaf
i'm completely new to Hollywood. I'm working mainly on Linux and Windows.
My application will use Execute() and/or Run() and i plan to write single source which i want to compile for win and lin.
parameters of the functions require different format, depending on currently running OS.
So the running application has to know which OS it runs on.
Is there a HW function like getCurrentPlatform or so?
Or do I have code myself a recognition workaround like watching output of existing hw funcs like getSystemInfo UserHome or so?
Or is there a typical hollywood way to do it?
Regards, Olaf