WoW:API IsLinuxClient: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Boolean: Returns True if running on Linux)
 
No edit summary
Line 3: Line 3:
eg
eg


  if isLinuxClient() then
  if IsLinuxClient() then
     s = "./myfile.xml"
     s = "./myfile.xml"
  else
  else
     s = "myfile.xml"
     s = "myfile.xml"
  end
  end
----
{{WoW API}}

Revision as of 21:47, 23 May 2006

This is a boolean function which returns true if World of Warcraft is being run on Linux.

eg

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

Template:WoW API