summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2025-08-27 00:04:15 -0500
committerLibravatar bigfoot547 <[email protected]>2025-08-27 00:04:15 -0500
commit9e44a71af36791e9348a2498a1b4610248140ef8 (patch)
tree4362a0fbd9984f69fd2fad342434db4d59705fb6 /gui
parentuntested: launcher dirs (diff)
logging and integration stuff
Diffstat (limited to 'gui')
-rw-r--r--gui/build.gradle.kts4
-rw-r--r--gui/src/main/java/dev/figboot/launcher/gui/GUIMain.java7
2 files changed, 10 insertions, 1 deletions
diff --git a/gui/build.gradle.kts b/gui/build.gradle.kts
index 16b7bf3..93397e6 100644
--- a/gui/build.gradle.kts
+++ b/gui/build.gradle.kts
@@ -16,6 +16,10 @@ repositories {
}
dependencies {
+ implementation(project(":core"))
+
+ runtimeOnly("org.slf4j:slf4j-jdk14:2.0.17")
+
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
diff --git a/gui/src/main/java/dev/figboot/launcher/gui/GUIMain.java b/gui/src/main/java/dev/figboot/launcher/gui/GUIMain.java
index dc5b2ed..65e506a 100644
--- a/gui/src/main/java/dev/figboot/launcher/gui/GUIMain.java
+++ b/gui/src/main/java/dev/figboot/launcher/gui/GUIMain.java
@@ -1,5 +1,8 @@
package dev.figboot.launcher.gui;
+import dev.figboot.launcher.core.config.SimpleLauncherConfiguration;
+import dev.figboot.launcher.core.system.SystemInfo;
+
import javax.swing.*;
import javax.swing.border.CompoundBorder;
import javax.swing.border.EmptyBorder;
@@ -7,7 +10,9 @@ import javax.swing.border.MatteBorder;
import java.awt.*;
public class GUIMain {
- public static void main(String[] args) {
+ public static void main(String[] args) throws Exception {
+ SimpleLauncherConfiguration config = SimpleLauncherConfiguration.forOS(SystemInfo.current().getOperatingSystem());
+
JFrame mainFrame = new JFrame("amogus");
mainFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
mainFrame.setMinimumSize(new Dimension(480, 360));