Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

Commit

Permalink
Fix a typo, load physfs from bin/ on Windows.
Browse files Browse the repository at this point in the history
I'll be uploading the bin folder as a release.
  • Loading branch information
shakesoda committed Jan 26, 2015
1 parent a37019d commit fcff8fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hate/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions hate/physfs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -160,4 +160,3 @@ register("getLinkedVersion", "PHYSFS_getLinkedVersion")
register("permitSymbolicLinks", "PHYSFS_permitSymbolicLinks")

return physfs

0 comments on commit fcff8fd

Please sign in to comment.