#!/bin/bash

SNAME="$(dirname $0)"
export SHIP_HOME="$HOME/Library/Application Support/com.2ship2harkinian.2s2h"
export SNAME
export RESPATH="${SNAME%/MacOS*}/Resources"
export LIBPATH="${SNAME%/MacOS*}/Frameworks"
export DYLD_FALLBACK_LIBRARY_PATH="$LIBPATH"

if [ ! -e "$SHIP_HOME" ]; then 
	mkdir "$SHIP_HOME";
fi

if [ ! -e "$SHIP_HOME"/mods ]; then
	mkdir -p "$SHIP_HOME"/mods
	touch "$SHIP_HOME"/mods/custom_otr_files_go_here.txt
fi

"$RESPATH"/2s2h-macos

exit
