mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-18 18:02:56 +01:00
bug fix
This commit is contained in:
@@ -94,7 +94,7 @@ func (self *LoadHousePage) OnLoadCb() {
|
||||
fmt.Println("LoadHouse OnLoadCb")
|
||||
if len(local_dir) > 1 {
|
||||
menu_file := local_dir[1]
|
||||
local_menu_file := fmt.Sprintf("%s/aria2downloads%s",
|
||||
local_menu_file := fmt.Sprintf(aria2dl_folder,
|
||||
home_path,menu_file)
|
||||
|
||||
if UI.FileExists(local_menu_file) {
|
||||
@@ -165,7 +165,7 @@ L:
|
||||
|
||||
if len(local_dir) > 1 {
|
||||
menu_file = local_dir[1]
|
||||
local_menu_file = fmt.Sprintf("%s/aria2downloads%s",
|
||||
local_menu_file = fmt.Sprintf(aria2dl_folder,
|
||||
home_path,menu_file)
|
||||
}
|
||||
dl_file := path.Join("/tmp",filename)
|
||||
|
||||
@@ -19,7 +19,7 @@ type WareHousePlugin struct {
|
||||
MainPage *WareHouse
|
||||
}
|
||||
|
||||
var aria2dl_folder = "%s/aria2downloads%s"
|
||||
var aria2dl_folder = "%s/aria2download%s"
|
||||
|
||||
func (self *WareHousePlugin) Init(main_screen *UI.MainScreen) {
|
||||
self.MainPage = NewWareHouse()
|
||||
|
||||
@@ -119,7 +119,7 @@ func InstallGame(msg rpc.StatusInfo) {
|
||||
}
|
||||
|
||||
menu_file := parts[1]
|
||||
local_menu_file := fmt.Sprintf("%s/aria2downloads%s",home_path,menu_file)
|
||||
local_menu_file := fmt.Sprintf("%s/aria2download%s",home_path,menu_file)
|
||||
local_menu_file_path := filepath.Dir(local_menu_file)
|
||||
|
||||
if fileExists(local_menu_file) {
|
||||
|
||||
Reference in New Issue
Block a user