wip bug hunt

This commit is contained in:
Willem Cazander 2022-03-12 20:59:21 +01:00
parent c6c5c0fa8f
commit c60f7cca65
18 changed files with 290 additions and 97 deletions

View file

@ -32,6 +32,7 @@ import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.FreeTypeFont
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.gdxapp4d.tos4.service.SystemWarpBase;
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxBootArgs;
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxBootReadyListener;
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxFont;
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxLog;
import love.distributedrebirth.gdxapp4d.tos4.service.SystemWarpSea;
@ -62,6 +63,7 @@ public class GDXAppTos4Activator implements BundleActivator {
private WaterDevice warpshipDevice;
private SystemGdxTerminal systemGdxTerminal;
private GDXAppTos4BootListener bootScreen;
private List<SystemGdxBootReadyListener> bootReadyListeners = new ArrayList<>();
private static final String SYSTEM_USER_HOME = "user.home";
private static final String HYPERDRIVE_HOME = "Hyperdrive";
@ -83,6 +85,12 @@ public class GDXAppTos4Activator implements BundleActivator {
this.bootScreen = bootScreen;
}
public void fireBootCompleted() {
for (SystemGdxBootReadyListener listener: bootReadyListeners) {
listener.bootCompleted();
}
}
public boolean hasStartError() {
return startError;
}
@ -294,6 +302,11 @@ public class GDXAppTos4Activator implements BundleActivator {
public void shutdown() {
Gdx.app.exit();
}
@Override
public void addBootReadyListener(SystemGdxBootReadyListener listener) {
bootReadyListeners.add(listener);
}
}
public class SystemWarpShipImpl implements SystemWarpShip {

View file

@ -98,6 +98,26 @@ public class GDXAppTos4BootFactory {
"imgui.gl3,"+
"imgui.type,"+
"net.spookygames.gdx.nativefilechooser,"+
"org.x4o.xml,"+
"org.x4o.xml.conv,"+
"org.x4o.xml.conv.text,"+
"org.x4o.xml.el,"+
"org.x4o.xml.eld,"+
"org.x4o.xml.eld.lang,"+
"org.x4o.xml.eld.xsd,"+
"org.x4o.xml.element,"+
"org.x4o.xml.io,"+
"org.x4o.xml.io.sax,"+
"org.x4o.xml.io.sax.ext,"+
"org.x4o.xml.lang,"+
"org.x4o.xml.lang.phase,"+
"org.x4o.xml.lang.task,"+
"org.x4o.xml.lang.task.run,"+
"javax.el,"+
"org.apache.el,"+
"org.apache.el.lang,"+
"org.apache.el.parser,"+
"org.apache.el.util,"+
"love.distributedrebirth.bassboonyd,"+
"love.distributedrebirth.bassboonyd.jmx,"+
"love.distributedrebirth.numberxd,"+

View file

@ -35,6 +35,7 @@ public class GDXAppTos4Startup {
LOG.debug("Release boot-screen");
systemActivator.setBootListener(null);
tos4.disposeScreen(bootScreen);
systemActivator.fireBootCompleted();
});
}
} catch (Exception e) {

View file

@ -15,4 +15,6 @@ public interface SystemGdxBootArgs {
NativeFileChooser getFileChooser();
void shutdown();
void addBootReadyListener(SystemGdxBootReadyListener listener);
}

View file

@ -0,0 +1,9 @@
package love.distributedrebirth.gdxapp4d.tos4.service;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public interface SystemGdxBootReadyListener {
void bootCompleted();
}