Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed steam install.
  • Loading branch information
icculus committed Dec 7, 2008
1 parent 059815f commit 2beaf21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/prey/scripts/config.lua
Expand Up @@ -20,7 +20,11 @@ end
-- Please note this returns a filter function, and isn't the filter itself!
local function make_pakfile_filter(pakregexp)
-- Upvalue!
local regexp = "^" .. string.lower(media_path) .. "/(" .. pakregexp .. ")$"
local mpath = string.lower(media_path)
if mpath ~= "" then
mpath = mpath .. "/"
end
local regexp = "^" .. mpath .. "(" .. pakregexp .. ")$"
return function(dest)
local str, matches
str, matches = string.gsub(string.lower(dest), regexp, "base/%1", 1)
Expand Down

0 comments on commit 2beaf21

Please sign in to comment.