Пример #1
0
PLUGIN_EXPORT int PLUGIN_CALL AmxLoad(AMX *amx) {
  CrashDetect::CreateInstance(amx)->Load();

  amx_SetDebugHook(amx, AmxDebug);
  amx_SetCallback(amx, AmxCallback);
  amx_SetExecErrorHandler(amx, AmxExecError);

  RegisterNatives(amx);
  return AMX_ERR_NONE;
}
Пример #2
0
bool DDE::Initialize(HINSTANCE hInstance, JNIEnv* env, dictionary* ini)
{
	// Check for enabled flag
	char* ddeEnabled = iniparser_getstr(ini, DDE_ENABLED);
	if(ddeEnabled == NULL || strcmp("true", ddeEnabled) != 0)
		return false;

	// Store ini file reference
	Log::Info("Initializing DDE");
	g_ini = ini;

	// Attach JNI methods
	if (!RegisterNatives(env, ini))
		return false;

	// Create Thread to manage the window
	CreateThread(0, 0, DdeWindowThreadProc, (LPVOID) hInstance, 0, 0);
	return true;
}
Пример #3
0
void ModelSizesLoadNatives()
{
	RegisterNatives(native_list);
}