From f033293021ec73ab5e23b5eff73e115f208129de Mon Sep 17 00:00:00 2001 From: cuu Date: Sat, 7 Jan 2023 12:51:26 +0000 Subject: [PATCH] bug fix --- Menu/GameShell/10_Settings/About/about.go | 13 ++++++------- main.go | 6 +++--- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Menu/GameShell/10_Settings/About/about.go b/Menu/GameShell/10_Settings/About/about.go index c8f257c..a1516d1 100644 --- a/Menu/GameShell/10_Settings/About/about.go +++ b/Menu/GameShell/10_Settings/About/about.go @@ -309,13 +309,6 @@ func (self *AboutPage) Init() { self.Icons["bg"] = bgpng - self.CpuInfo() - self.MemInfo() - self.CpuMhz() - self.Uname() - - self.GenList() - self.Scroller = UI.NewListScroller() self.Scroller.Parent = self @@ -347,6 +340,12 @@ func (self *AboutPage) OnLoadCb() { self.Scrolled = 0 self.PosY = 0 self.DrawOnce = false + self.CpuInfo() + self.MemInfo() + self.CpuMhz() + self.Uname() + + self.GenList() } func (self *AboutPage) OnReturnBackCb() { diff --git a/main.go b/main.go index d69b3b1..38d0335 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,7 @@ import ( "runtime" "strconv" "strings" - //"syscall" + "syscall" //"encoding/json" "github.com/veandco/go-sdl2/sdl" gotime "time" @@ -260,7 +260,7 @@ func PreparationInAdv() { } func release_self_fds() { - /* + fds_flags := []string{"pipe", "socket:", ".ttf"} file_paths, err := filepath.Glob("/proc/self/fd/*") if err != nil { @@ -289,7 +289,7 @@ func release_self_fds() { } } } - */ + } func run() int {