Skip to content

Commit

Permalink
Proper generic path for any mounted addon (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerelictDrone authored Aug 12, 2024
1 parent 4d59913 commit e0eff57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/wire/cpu_default_data_decompressor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ local checked_dirs = {
local function ReadDir(root)
if ignored_dirs[root] then return nil end
local tab = {}
local files,dirs = file.Find("addons/wire-cpu/data_static/"..root.."*","GAME")
local files,dirs = file.Find("data_static/"..root.."*","GAME")
for _, f in pairs(files) do
f = root..f
tab[f] = file.Read("addons/wire-cpu/data_static/"..f, "GAME")
tab[f] = file.Read("data_static/"..f, "GAME")
end
for _, f in pairs(dirs) do
f = root..f.."/"
Expand Down

0 comments on commit e0eff57

Please sign in to comment.