This commit is contained in:
cuu
2019-06-26 23:20:32 +08:00
parent 6980b93262
commit 1a790ae4d4
4 changed files with 22 additions and 15 deletions

View File

@@ -76,13 +76,15 @@ func ReunionPagesIcons(self *UI.MainScreen) {
}
var tmpswap []Tup
for i,x := range tmp {
onlyone := false
for _,x := range tmp {
if strings.HasPrefix(x.FileName,retro_games_dir) == false{
tmpswap = append(tmpswap,x)
}
if strings.HasPrefix(x.FileName,retro_games_dir) == true && i==retro_games_idx[0] {
if strings.HasPrefix(x.FileName,retro_games_dir) == true && onlyone == false {
tmpswap = append(tmpswap,x)
onlyone = true
}
}