m
Move page script moved page API IsLinuxClient to WoW:API IsLinuxClient without leaving a redirect
(Boolean: Returns True if running on Linux) |
m (Move page script moved page API IsLinuxClient to WoW:API IsLinuxClient without leaving a redirect) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
This is a boolean function which returns true if World of Warcraft is being run on Linux. | {{wowapi}} | ||
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 | ||
if | if IsLinuxClient() then | ||
s = "./myfile.xml" | s = "./myfile.xml" | ||
else | else | ||
s = "myfile.xml" | s = "myfile.xml" | ||
end | end | ||
---- | |||
[http://wowprogramming.com/docs/api/IsLinuxClient] | |||