Skip to content

Commit

Permalink
Fix compile errors in this branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric committed Sep 25, 2021
1 parent 3415de2 commit 175c2e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions polymod/backends/LimeBackend.hx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class LimeBackend implements IBackend
Polymod.error(PolymodErrorCode.LIME_MISSING_ASSET_LIBRARY_INFO,
"Your Lime/OpenFL configuration is using custom asset libraries, but you have not provided any frameworkParams in Polymod.init() that tells Polymod which asset libraries to expect and what their mod sub-directory prefixes should be.",
PolymodErrorOrigin.INIT);
return;
return false;
}

// Wrap each asset library in `LimeModLibrary`, register it with Lime, and store it here
Expand All @@ -147,7 +147,7 @@ class LimeBackend implements IBackend
"Your Lime/OpenFL configuration is using custom asset libraries, and you provided frameworkParams in Polymod.init(), but we couldn't find a match for this asset library: (" +
key + ")",
PolymodErrorOrigin.INIT);
return;
return false;
}
else
{
Expand All @@ -170,8 +170,8 @@ class LimeBackend implements IBackend
{
Assets.registerLibrary(key, modLibraries.get(key));
}
return true;

return true;
}

public function destroy()
Expand Down
5 changes: 2 additions & 3 deletions polymod/backends/StubBackend.hx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ class StubBackend implements IBackend
public function new()
{
}
public function init(?params:FrameworkParams):Bool { return false; }
public function destroy():Void {}

public function init(?params:FrameworkParams):Void
public function init(?params:FrameworkParams):Bool
{
return false;
}

public function destroy():Void
Expand Down

0 comments on commit 175c2e7

Please sign in to comment.