Name
GetVersion -- get information about the Hollywood version in use (V3.0)
Synopsis
t = GetVersion()
Function
This function can be used to obtain some information about the Hollywood version currently running your script or applet. You can also retrieve information about the platform that your script is running on.

This function will return a table with the following fields initialized:

Application:
This will be "Hollywood" or "HollywoodPlayer" depending on which version is in use. If you save your script as an executable, this will always be "HollywoodPlayer".

Version:
A string containing the version of Hollywood, e.g. "3.0".

Version_Date:
A string containing the build date of this Hollywood version.

Kernel:
A string containing the kernel version of Hollywood, e.g. "3.0".

Kernel_Date:
A string containing the build date of the Hollywood kernel.

Beta:
This field will be set to True if a beta version of Hollywood is used, False otherwise.

Platform:
This is probably the most useful field because it contains the platform on which Hollywood is currently running. This field can be "AmigaOS3", "MorphOS", "WarpOS", "AmigaOS4", "AROS", "Win32", "MacOS", "Linux", "iOS", or "Android".

Demo:
This field will be set to True if the user is running a demo version of Hollywood. (V4.71)

Plugins:
This field will be set to a table that contains information about all plugins that have been loaded by Hollywood for this script. See GetPlugins for details. (V5.1)

CPU:
This field will be set to the CPU architecture that Hollywood is currently running on. This field can be "m68k", "m68k/ppc" (for WarpOS), "ppc", "arm", "arm64", "i386", or "x64". (V5.2)

BigEndian:
This field will be set to True if Hollywood is running on a big endian CPU (i.e. 68000 or PowerPC) or False for a little endian CPU (x86, x64 and ARM). (V6.0)

Inputs
none

Results
t
a table containing information about the Hollywood version in use
Example
t = GetVersion()
If t.platform = "Win32" Then Error("Sorry, Win32 is not supported yet!")
The code above checks on which version we are running and exits with an error if Hollywood is running on Win32.

Show TOC