Skip to content

Instantly share code, notes, and snippets.

@Vavius
Created August 19, 2015 12:27
Show Gist options
  • Save Vavius/aeaf807717518726801e to your computer and use it in GitHub Desktop.
Save Vavius/aeaf807717518726801e to your computer and use it in GitHub Desktop.
#include <moai-core/host.h>
#include <moai-android/moaiext-jni.h>
#include <jni.h>
#include "game_script.h"
#include "crash_handler.h"
void AKURunGame () {
AKULoadFuncFromBuffer ( crash_handler, crash_handler_SIZE, AKU_DATA_STRING, AKU_DATA_ZIPPED );
AKUCallFunc ();
AKULoadFuncFromBuffer ( game_script, game_script_SIZE, AKU_DATA_STRING, AKU_DATA_ZIPPED );
AKUCallFunc ();
}
extern "C" void Java_com_ziplinegames_moai_Moai_AKURunGame ( JNIEnv* env, jclass obj ) {
AKURunGame ();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment