diff --git a/ZSharp/builtin.h b/ZSharp/builtin.h index 4fda055..83f8306 100644 --- a/ZSharp/builtin.h +++ b/ZSharp/builtin.h @@ -13,6 +13,7 @@ #include #include #include +#include // for console command printing #include "strops.h" #include "graphics.h" @@ -467,6 +468,8 @@ boost::any ZSFunction(const string& name, const vector& args) Vec2 v(AnyAsFloat(args.at(0)), AnyAsFloat(args.at(1))); return v; } + else if (name == "ZS.System.Command") + temp = system(StringRaw(AnyAsString(args.at(0)))); else LogWarning("ZS function \'" + name + "\' does not exist.");