Skip to content

FoxLoader does not load on Pebblehost (Workaround/Fix included) #18

@tulpenkiste

Description

@tulpenkiste

Hi, me and my friends tried to play with FoxLoader on Pebblehost but couldn't without manually modifying the code.

This is due to the installer not recognizing "nogui" and immediately returning in main (Pebblehost provides no way to replace this argument, hence the problem existing).

I've made a workaround to make it work which adds nogui and --nogui to the args[0] switch case. The diff is:

--- a/final/src/main/java/com/fox2code/foxloader/installer/Main.java
+++ b/final/src/main/java/com/fox2code/foxloader/installer/Main.java
@@ -42,6 +42,10 @@ public class Main {
                     System.out.println("--with-server -> Start server with specified server jar");
                     System.out.println("--test-server -> Like --with-server but only load the strict necessary for ");
                     return;
+                case "nogui":
+                case "--nogui":
+                    server = true;
+                    break;
                 case "--platform":
                     platform = true;
                     break;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions