Simplify GUI settings and build flags
This commit is contained in:
@@ -3,12 +3,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"log"
|
||||
"path/filepath"
|
||||
|
||||
"vrc_osc_go/internal/app"
|
||||
)
|
||||
|
||||
func main() {
|
||||
_ = app.AppendRuntimeLog("GUI", "starting vrc_osc_gui.exe")
|
||||
log.Fatal(runNativeGUI())
|
||||
if exe, err := os.Executable(); err == nil {
|
||||
_ = app.AppendRuntimeLog("GUI", "starting vrc_osc_gui.exe exe="+exe+" dir="+filepath.Dir(exe))
|
||||
} else {
|
||||
_ = app.AppendRuntimeLog("GUI", "starting vrc_osc_gui.exe exe=unknown err="+err.Error())
|
||||
}
|
||||
if err := runNativeGUI(); err != nil {
|
||||
_ = app.AppendRuntimeLog("GUI", "runNativeGUI failed: "+err.Error())
|
||||
log.Fatal(err)
|
||||
}
|
||||
_ = app.AppendRuntimeLog("GUI", "runNativeGUI returned cleanly")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user