Skip to content

Commit 461a0b0

Browse files
committed
trying again
1 parent 06ea87b commit 461a0b0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

source/AttractState.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class AttractState extends FlxState
5757
new FlxTimer().start(1.0, _ -> FlxG.switchState(() -> new GameSelectState()));
5858
return;
5959
}
60+
startNextVideo();
6061

6162

6263

source/GameSelectState.hx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,14 @@ class GameSelectState extends FlxState
190190
case "DESC": (g.description != null) ? g.description : "";
191191
case "BOX": (g.box != null) ? g.box : "";
192192
case "CART": (g.cartPath != null) ? g.cartPath : (g.box != null ? g.box : "");
193-
case "PLAYERS": (Reflect.hasField(g, "players") && g.players != null) ? g.players : "";
193+
case "PLAYERS":
194+
var val = (Reflect.hasField(g, "players") && g.players != null) ? Std.string(g.players) : "";
195+
val = val.trim();
196+
if (val == "1") return "1 Player";
197+
else if (val == "2") return "2 Players";
198+
else if (val == "1,2" || val == "1-2") return "1-2 Players";
199+
else if (val != "") return val + " Players";
200+
else return "";
194201
default: "";
195202
}
196203
}

0 commit comments

Comments
 (0)