Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Former-commit-id: 04e2799
  • Loading branch information
tkashkin committed Sep 15, 2018
1 parent db088d0 commit a174802
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/data/sources/gog/GOGGame.vala
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,11 @@ namespace GameHub.Data.Sources.GOG

wnd.install.connect((installer, tool) => {
FSUtils.mkdir(FSUtils.Paths.GOG.Games);
FSUtils.mkdir(installer.parts.get(0).local.get_parent().get_path());

if(installer.parts.size > 0)
{
FSUtils.mkdir(installer.parts.get(0).local.get_parent().get_path());
}

installer.install.begin(this, tool, (obj, res) => {
installer.install.end(res);
Expand Down

0 comments on commit a174802

Please sign in to comment.