diff --git a/hate/init.lua b/hate/init.lua index 7ac7c20..c7188de 100644 --- a/hate/init.lua +++ b/hate/init.lua @@ -87,7 +87,7 @@ local function handle_events() hate.keyreleased(key) end, [sdl.TEXTEDITING] = function(event) - local e = e.edit + local e = event.edit -- TODO end, [sdl.MOUSEMOTION] = function(event) end, diff --git a/hate/physfs.lua b/hate/physfs.lua index 704ae5c..4be23c5 100644 --- a/hate/physfs.lua +++ b/hate/physfs.lua @@ -84,7 +84,7 @@ void PHYSFS_getLinkedVersion(PHYSFS_Version *ver); void PHYSFS_permitSymbolicLinks(int allow); ]]) -local C = ffi.load("physfs") +local C = ffi.load(ffi.os == "Windows" and "bin/physfs" or "physfs") local physfs = { C = C } local function register(luafuncname, funcname, is_string) @@ -160,4 +160,3 @@ register("getLinkedVersion", "PHYSFS_getLinkedVersion") register("permitSymbolicLinks", "PHYSFS_permitSymbolicLinks") return physfs -