From e0eff5744ab1b0af40b0ab79d0fecd632839f166 Mon Sep 17 00:00:00 2001 From: DerelictDrone <57756830+DerelictDrone@users.noreply.github.com> Date: Mon, 12 Aug 2024 11:30:46 -0500 Subject: [PATCH] Proper generic path for any mounted addon (#58) --- 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.."/"