From d756ee87acc5fe90947a6a2ed3b023f7ef7aa2ef Mon Sep 17 00:00:00 2001 From: DerelictDrone Date: Sun, 11 Aug 2024 21:37:14 -0500 Subject: [PATCH] Proper generic path for any mounted addon --- lua/wire/cpu_default_data_decompressor.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/wire/cpu_default_data_decompressor.lua b/lua/wire/cpu_default_data_decompressor.lua index c27834b..2cf6cd4 100644 --- a/lua/wire/cpu_default_data_decompressor.lua +++ b/lua/wire/cpu_default_data_decompressor.lua @@ -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.."/"