From aed55be570c1d40939f02ce585b4bbfe099326dd Mon Sep 17 00:00:00 2001 From: Andrew Klapp Date: Thu, 17 May 2018 21:06:57 -0500 Subject: [PATCH] Initial commit. --- wine_starter_template.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 wine_starter_template.sh diff --git a/wine_starter_template.sh b/wine_starter_template.sh new file mode 100755 index 0000000..2ba85be --- /dev/null +++ b/wine_starter_template.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env sh + +configure() +{ + # The WINEPREFIX for the program + WINEPREFIX="" + # The path to the exe starting from your prefix's dosdevices folder. + # example: "c:/GOG Games/Some Game/startTheGame.exe" + native_path="" +} + +configure +wine_exec_full="${WINEPREFIX}/dosdevices/${native_path}" +# TODO: Print a useful error message when the path is wrong. +cd "$(dirname "${wine_exec_full}")" || exit 1 +wine "./$(basename "${wine_exec_full}")"