Updated for NWNEE 37-13
Updated for NWNEE 37-13. Updated NWNxEE scripts. CODI Core AI tweaks. Added Diamond Golem AI. Full compile. Updated release archive.
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
/// @remark These functions are for advanced users.
|
||||
/// @{
|
||||
/// @file nwnx_profiler.nss
|
||||
#include "nwnx"
|
||||
|
||||
const string NWNX_Profiler = "NWNX_Profiler"; ///< @private
|
||||
|
||||
@@ -39,22 +38,17 @@ void NWNX_Profiler_PopPerfScope();
|
||||
|
||||
void NWNX_Profiler_PushPerfScope(string name, string tag0_tag = "", string tag0_value = "")
|
||||
{
|
||||
string sFunc = "PushPerfScope";
|
||||
|
||||
NWNX_PushArgumentString(name);
|
||||
|
||||
if (tag0_value != "" && tag0_tag != "")
|
||||
{
|
||||
NWNX_PushArgumentString(tag0_value);
|
||||
NWNX_PushArgumentString(tag0_tag);
|
||||
NWNXPushString(tag0_value);
|
||||
NWNXPushString(tag0_tag);
|
||||
}
|
||||
|
||||
NWNX_CallFunction(NWNX_Profiler, sFunc);
|
||||
NWNXPushString(name);
|
||||
NWNXCall(NWNX_Profiler, "PushPerfScope");
|
||||
}
|
||||
|
||||
void NWNX_Profiler_PopPerfScope()
|
||||
{
|
||||
string sFunc = "PopPerfScope";
|
||||
NWNXCall(NWNX_Profiler, "PopPerfScope");
|
||||
}
|
||||
|
||||
NWNX_CallFunction(NWNX_Profiler, sFunc);
|
||||
}
|
Reference in New Issue
Block a user