diff --git a/fclauncher/app.go b/fclauncher/app.go
index fb545d7..9ee15fe 100644
--- a/fclauncher/app.go
+++ b/fclauncher/app.go
@@ -28,7 +28,6 @@ func NewApp() *App {
// so we can call the runtime methods
func (a *App) startup(ctx context.Context) {
a.ctx = ctx
- a.GetModpacks()
}
// Greet returns a greeting for the given name
@@ -49,12 +48,13 @@ func (a *App) GetModpacks() []string {
fmt.Println(err.Error())
return nil
}
- fmt.Printf("Json String: %s\n", body)
- fmt.Printf("Json: %+v\n", modpacks)
var names []string
for _, pack := range modpacks {
names = append(names, pack.Name)
- fmt.Printf("Pack Found: %s\n", pack.Name)
}
return names
}
+
+func (a *App) CheckPrerequisites() {
+
+}
diff --git a/fclauncher/frontend/src/App.svelte b/fclauncher/frontend/src/App.svelte
index c576645..f581d65 100644
--- a/fclauncher/frontend/src/App.svelte
+++ b/fclauncher/frontend/src/App.svelte
@@ -1,29 +1,25 @@
- {resultText}
-
+ {#if loading}
+
+ {:else}
+
+ {/if}
diff --git a/fclauncher/frontend/src/Client.svelte b/fclauncher/frontend/src/Client.svelte
new file mode 100644
index 0000000..09e0acd
--- /dev/null
+++ b/fclauncher/frontend/src/Client.svelte
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
diff --git a/fclauncher/frontend/src/Loading.svelte b/fclauncher/frontend/src/Loading.svelte
new file mode 100644
index 0000000..e69de29
diff --git a/fclauncher/frontend/wailsjs/go/main/App.d.ts b/fclauncher/frontend/wailsjs/go/main/App.d.ts
index 2435b7e..e71436c 100755
--- a/fclauncher/frontend/wailsjs/go/main/App.d.ts
+++ b/fclauncher/frontend/wailsjs/go/main/App.d.ts
@@ -1,6 +1,8 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
+export function CheckPrerequisites():Promise;
+
export function GetModpacks():Promise>;
export function Greet(arg1:string):Promise;
diff --git a/fclauncher/frontend/wailsjs/go/main/App.js b/fclauncher/frontend/wailsjs/go/main/App.js
index 1e3784d..a5d076f 100755
--- a/fclauncher/frontend/wailsjs/go/main/App.js
+++ b/fclauncher/frontend/wailsjs/go/main/App.js
@@ -2,6 +2,10 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
+export function CheckPrerequisites() {
+ return window['go']['main']['App']['CheckPrerequisites']();
+}
+
export function GetModpacks() {
return window['go']['main']['App']['GetModpacks']();
}