});
WidgetUtil.trySubscribe(this, "load", new ActivateEventListener() {
@Override
public void onActivated(UIWidget button) {
GameInfo gameInfo = gameList.getSelection();
if (gameInfo != null) {
loadGame(gameInfo);
}
}
});
WidgetUtil.trySubscribe(this, "delete", new ActivateEventListener() {
@Override
public void onActivated(UIWidget button) {
GameInfo gameInfo = gameList.getSelection();
if (gameInfo != null) {
Path world = PathManager.getInstance().getSavePath(gameInfo.getManifest().getTitle());
try {
FilesUtil.recursiveDelete(world);
gameList.getList().remove(gameInfo);
gameList.setSelection(null);
} catch (Exception e) {