Explorar o código

Merge pull request #4 from renneSampaio/patch-1

Update compatibility check to latest LÖVR API
Bjorn %!s(int64=4) %!d(string=hai) anos
pai
achega
5983912f12
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lovr-keyboard.lua

+ 1 - 1
lovr-keyboard.lua

@@ -1,5 +1,5 @@
 local ffi = assert(type(jit) == 'table' and               -- Only run if we have LuaJIT
-  lovr.getOS() ~= 'Android' and lovr.getOS() ~= 'Web' and -- and also GLFW
+  lovr.system.getOS() ~= 'Android' and lovr.system.getOS() ~= 'Web' and -- and also GLFW
   require 'ffi', "lovr-keyboard cannot run on this platform")
 local C = ffi.os == 'Windows' and ffi.load('glfw3') or ffi.C