"""Prepare ctypes library at ./libplomrogue.so"""
libpath = ("./libplomrogue.so")
if not os.access(libpath, os.F_OK):
- raise SystemExit("No library " + libpath +
- ", run ./compile-server.sh first?")
+ raise SystemExit("No library " + libpath + ", run ./redo first?")
libpr = ctypes.cdll.LoadLibrary(libpath)
libpr.seed_rrand.restype = ctypes.c_uint32
return libpr
# Give helpful message to players that want to start without compiling first.
if [ ! -e ./roguelike-client ]
then
- echo 'No ./roguelike-client file found to execute. Try "./redo" first?'
+ echo 'No ./roguelike-client executable found. Try "./redo" first?'
+ false
+fi
+if [ ! -e ./libplomrogue.so ]
+then
+ echo 'No ./libplomrogue.so library found. Try "./redo" first?'
false
fi