Example #1
0
	JNIEXPORT void JNICALL Java_org_vega_VegaActivity_executeAppScript(JNIEnv *env, jobject obj, jstring s)
	{
		Log::Info("Executing entry point script...");
		App::SetScriptThreadJavaEnv(env);
		Log::Info("Creating App instance...");
		App app;
		string scriptName = env->GetStringUTFChars(s, 0);
		Log::Info("Preparing to execute script:");
		Log::Info(scriptName);
		app.Execute(scriptName);
	}
Example #2
0
int SDL_main(int argc, char *argv[])
{
  using namespace boost::filesystem;
  
  LOG( FMT("Start path: %s") % argv[0] );

  #ifndef WIN32
    current_path( system_complete(argv[0]).parent_path() );
  #endif
  
  App theApp;

  return theApp.Execute( EngineParams()->GetInitialScreenSize() );
}