WoW:API IsLinuxClient: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Changed the tag)
(Corrected/Clarified)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
This is a boolean function which returns true if World of Warcraft is being run on Linux.  
This is a boolean function which returns true if World of Warcraft is being run using the Linux client, it will return false with the Windows client under wine or OS X client run on other operating systems. Although there is no current official Linux client, the beta version of WoW had a Linux client, and the code retains a function to test for it.


eg
eg
Line 11: Line 11:


----
----
[http://wowprogramming.com/docs/api/IsLinuxClient]

Revision as of 11:57, 5 June 2010

WoW API < IsLinuxClient

This is a boolean function which returns true if World of Warcraft is being run using the Linux client, it will return false with the Windows client under wine or OS X client run on other operating systems. Although there is no current official Linux client, the beta version of WoW had a Linux client, and the code retains a function to test for it.

eg

if IsLinuxClient() then
   s = "./myfile.xml"
else
   s = "myfile.xml"
end


[1]