summaryrefslogtreecommitdiff
path: root/launch/emu
diff options
context:
space:
mode:
Diffstat (limited to 'launch/emu')
-rwxr-xr-xlaunch/emu4
1 files changed, 2 insertions, 2 deletions
diff --git a/launch/emu b/launch/emu
index df24b10..7f9c8ec 100755
--- a/launch/emu
+++ b/launch/emu
@@ -3,7 +3,7 @@
# This only works for collections with a common extension. You can rename all your roms to use the same extension and (in any decent emulator at least) they should work regardless of the actual header type
gamedir=${XDG_DATA_HOME:-$HOME/.local/share}/games
dmenuprompt="dmenu -l 25"
-resolution=`cat /sys/class/drm/*/modes | head -1`
+resolution() { cat /sys/class/drm/*/modes | head -1 }
case "$1" in
2600)
dmenucolors="-nb #111 -nf #e4963c -sb #6c3b17 -sf #fff -nhb #121212 -nhf #fc5231 -shb #804f2d -shf #fc5231"
@@ -27,7 +27,7 @@ case "$1" in
;;
n64)
dmenucolors="-nb #223 -nf #fff -sb #069330 -sf #fff -nhb #c20d02 -nhf #ffc001 -shb #011da9 -shf #ffc001"
- emulator="mupen64plus --fullscreen --gfx mupen64plus-video-glide64mk2 --resolution $resolution"
+ emulator="mupen64plus --fullscreen --gfx mupen64plus-video-glide64mk2 --resolution $(resolution)"
ext=z64
;;
gcn)