Skip to content

Commit

Permalink
Merge pull request #13 from Pika-Software/dev
Browse files Browse the repository at this point in the history
Changes from `dev`
  • Loading branch information
unknown-gd authored May 22, 2023
2 parents 0e27ad0 + 9cf70db commit d63e1e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lua/gpm/fs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function CreateDir( folderPath )
if not folderName then continue end

currentPath = currentPath and ( currentPath .. "/" .. folderName ) or folderName
if file.IsDir( currentPath, "DATA" ) then continue end
if IsDir( currentPath, "DATA" ) then continue end

file.Delete( currentPath )
file.CreateDir( currentPath )
Expand Down
4 changes: 2 additions & 2 deletions lua/gpm/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ MsgN( [[

module( "gpm", package.seeall )

_VERSION = 012501
_VERSION = 012502

if not Colors then
Colors = {
Expand Down Expand Up @@ -253,7 +253,7 @@ do
metadata.import_path = importPath
metadata.source = sourceName

if not metadata.singleplayer and SinglePlayer then
if metadata.singleplayer and not SinglePlayer then
return promise.Reject( "Package cannot be executed in a singleplayer game." )
end

Expand Down
2 changes: 1 addition & 1 deletion lua/gpm/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ Initialize = promise.Async( function( metadata, func, files )

-- Saving in global table & final log
local importPath = metadata.import_path
logger:Info( "[%s] Package '%s' was successfully imported, it took %.4f seconds.", pkg:GetSourceName(), importPath, SysTime() - stopwatch )
logger:Info( "[%s] Package '%s' was successfully imported, it took %.4f seconds.", pkg:GetSourceName(), pkg:GetIdentifier(), SysTime() - stopwatch )
gpm.Packages[ importPath ] = pkg

return pkg
Expand Down

0 comments on commit d63e1e0

Please sign in to comment.