Skip to content

Commit

Permalink
Patch3
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown-gd committed Apr 23, 2023
1 parent 834d4c5 commit 8e2f413
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lua/gpm/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CreateConVar( "gpm_cache_lifetime", "24", FCVAR_ARCHIVE, " - the cache lifetime,

module( "gpm" )

_VERSION = 010602
_VERSION = 010603

function IncludeComponent( filePath )
filePath = "gpm/" .. filePath .. ".lua"
Expand Down
9 changes: 4 additions & 5 deletions lua/gpm/sources/lua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,10 @@ Import = promise.Async( function( filePath, parentPackage, isAutorun )
local send = metadata.send
if send ~= nil then
for _, filePath in ipairs( send ) do
if not fs.Exists( filePath, luaRealm ) then
filePath = paths.Join( packagePath, filePath )
end

if fs.Exists( filePath, luaRealm ) then
local insideFilePath = paths.Join( packagePath, filePath )
if fs.Exists( insideFilePath, luaRealm ) then
AddCSLuaFile( insideFilePath )
elseif fs.Exists( filePath, luaRealm ) then
AddCSLuaFile( filePath )
end
end
Expand Down

0 comments on commit 8e2f413

Please sign in to comment.