cuu 1 year ago
parent
commit
f033293021
2 changed files with 9 additions and 10 deletions
  1. 6 7
      Menu/GameShell/10_Settings/About/about.go
  2. 3 3
      main.go

+ 6 - 7
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() {

+ 3 - 3
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 {