dotg

a bitreich fosdem adventure
git clone https://git.parazyd.org/dotg
Log | Files | Refs

use.dcgi (405B)


      1 #!/bin/sh
      2 
      3 . config
      4 . functions
      5 
      6 fullpath="$2"
      7 itemname="$(basename $fullpath)"
      8 
      9 currentloc="$(cat $savegame/room)"
     10 
     11 call="$(find_usecase $itemname $currentloc)"
     12 
     13 case "$call" in
     14 	No*)
     15 		echo "$call"
     16 		;;
     17 	use-generic*)
     18 		use_generic "$itemname"
     19 		;;
     20 	use-specific*)
     21 		use_specific "$(echo $call | awk -F, '{print $2}')" "$itemname"
     22 		;;
     23 esac
     24 
     25 _msg "[1|Exit|$path/$(cat $savegame/room).dcgi|server|port]"