+void display_text_file(const std::string& filename)
+{
+ std::string file
+ = ScriptInterpreter::current()->get_working_directory() + filename;
+ ::display_text_file(file);
+}
+
+void import(HSQUIRRELVM v, const std::string& filename)
+{
+ std::string file
+ = ScriptInterpreter::current()->get_working_directory() + filename;
+ if(sqstd_loadfile(v, file.c_str(), true) < 0) {
+ std::cerr << "Warning couldn't load script '" << filename << "' ("
+ << file << ").\n";
+ return;
+ }
+
+ sq_push(v, -2);
+ if(sq_call(v, 1, false) < 0) {
+ std::cerr << "Couldn't execute script '" << filename << "' ("
+ << file << ").\n";
+ return;
+ }
+}
+