From 175c2e734aa89056dc89eb4804f51e09899cd39f Mon Sep 17 00:00:00 2001 From: Eric Myllyoja Date: Sat, 25 Sep 2021 02:34:35 -0400 Subject: [PATCH] Fix compile errors in this branch. --- polymod/backends/LimeBackend.hx | 8 ++++---- polymod/backends/StubBackend.hx | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/polymod/backends/LimeBackend.hx b/polymod/backends/LimeBackend.hx index 0207c77c..9aa2fb22 100644 --- a/polymod/backends/LimeBackend.hx +++ b/polymod/backends/LimeBackend.hx @@ -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 @@ -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 { @@ -170,8 +170,8 @@ class LimeBackend implements IBackend { Assets.registerLibrary(key, modLibraries.get(key)); } - - return true; + + return true; } public function destroy() diff --git a/polymod/backends/StubBackend.hx b/polymod/backends/StubBackend.hx index 4ec8e5b0..b047d60f 100644 --- a/polymod/backends/StubBackend.hx +++ b/polymod/backends/StubBackend.hx @@ -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