core/sourcemod.cpp
changeset 177 d29ade52d953
parent 176 c1699993453c
child 180 fe406c5f2aeb
     1.1 --- a/core/sourcemod.cpp	Sat Nov 11 05:49:52 2006 +0000
     1.2 +++ b/core/sourcemod.cpp	Sat Nov 11 11:10:24 2006 +0000
     1.3 @@ -111,12 +111,17 @@
     1.4  		return false;
     1.5  	}
     1.6  
     1.7 +#if 0
     1.8  	g_SMAPI->PathFormat(file, sizeof(file), "%s/addons/sourcemod/plugins/test.smx", g_BaseDir.c_str());
     1.9  	IPlugin *pPlugin = g_PluginMngr.LoadPlugin(file, false, PluginType_Global, error, err_max);
    1.10 -	IPluginFunction *func = pPlugin->GetFunctionByName("OnPluginInit");
    1.11 -	cell_t result;
    1.12 -	func->CallFunction(NULL, 0, &result);
    1.13 +	IPluginFunction *func = pPlugin->GetFunctionByName("Test");
    1.14 +	cell_t result = 2;
    1.15 +	cell_t val = 6;
    1.16 +	func->PushCell(1);
    1.17 +	func->PushCellByRef(&val, SMFUNC_COPYBACK_ONCE);
    1.18 +	func->Execute(&result, NULL);
    1.19  	g_PluginMngr.UnloadPlugin(pPlugin);
    1.20 +#endif
    1.21  
    1.22  	return true;
    1.23  }