From b68e9b57a92c8463dc1f49c3e3fc575ae9ba63f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 11 Sep 2012 00:04:39 +0200 Subject: Allow to manually cleanup after a game (for whatever unknown reason) --- play.sh | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/play.sh b/play.sh index 9c881da..db42fd7 100755 --- a/play.sh +++ b/play.sh @@ -282,12 +282,19 @@ _run () { #{{{2 _list exit 1 else - out "Launching '$GAME'" - _load - setenv - prepare - startX - cleanup + if [[ $2 == "cleanup" ]]; then + out "Cleaning up after '$GAME'" + _load + setenv + cleanup + else + out "Launching '$GAME'" + _load + setenv + prepare + startX + cleanup + fi fi } -- cgit v1.2.3