#!/bin/bash
if [ -z $TLKEDIT_HOME ]; then
  echo "TLKEDIT_HOME not set !"
  fullpath=`which $0`
  TLKEDIT_HOME=`dirname $fullpath`
  echo "using TLKEDIT_HOME="$TLKEDIT_HOME
fi
#tlkedit.charsetOverride sample :
#-Dtlkedit.charsetOverride=NWN1:2:ASCII;NWN2:0:UTF-16

java -Xmx128M -Dswing.aatext=true \
  -Dcom.apple.macos.useScreenMenuBar=true \
  -Dtlkedit.defaultNwnVersion=NWN2 \
  -jar "$TLKEDIT_HOME/tlkedit.jar" "$@" 1>/dev/null &

