[AutoRecorder] Add native to determine if recording.
This commit is contained in:
parent
5e45af2f68
commit
5cca9ae651
@ -32,6 +32,8 @@ public Plugin myinfo =
|
|||||||
|
|
||||||
public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
|
public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
|
||||||
{
|
{
|
||||||
|
CreateNative("IsDemoRecording", Native_IsDemoRecording);
|
||||||
|
|
||||||
CreateNative("GetDemoRecordingNumber", Native_GetDemoRecordingNumber);
|
CreateNative("GetDemoRecordingNumber", Native_GetDemoRecordingNumber);
|
||||||
CreateNative("GetDemoRecordingTick", Native_GetDemoRecordingTick);
|
CreateNative("GetDemoRecordingTick", Native_GetDemoRecordingTick);
|
||||||
|
|
||||||
@ -236,6 +238,11 @@ void StopRecord()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int Native_IsDemoRecording(Handle hPlugin, int numParams)
|
||||||
|
{
|
||||||
|
return g_bIsRecording;
|
||||||
|
}
|
||||||
|
|
||||||
public int Native_GetDemoRecordingNumber(Handle hPlugin, int numParams)
|
public int Native_GetDemoRecordingNumber(Handle hPlugin, int numParams)
|
||||||
{
|
{
|
||||||
return g_iRecordingNumber;
|
return g_iRecordingNumber;
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
#endif
|
#endif
|
||||||
#define AutoRecorder_included
|
#define AutoRecorder_included
|
||||||
|
|
||||||
|
native bool IsDemoRecording();
|
||||||
|
|
||||||
native int GetDemoRecordingNumber();
|
native int GetDemoRecordingNumber();
|
||||||
native int GetDemoRecordingTick();
|
native int GetDemoRecordingTick();
|
||||||
|
|
||||||
@ -20,6 +22,7 @@ public SharedPlugin __pl_AutoRecorder =
|
|||||||
#if !defined REQUIRE_PLUGIN
|
#if !defined REQUIRE_PLUGIN
|
||||||
public void __pl_AutoRecorder_SetNTVOptional()
|
public void __pl_AutoRecorder_SetNTVOptional()
|
||||||
{
|
{
|
||||||
|
MarkNativeAsOptional("IsDemoRecording");
|
||||||
MarkNativeAsOptional("GetDemoRecordingNumber");
|
MarkNativeAsOptional("GetDemoRecordingNumber");
|
||||||
MarkNativeAsOptional("GetDemoRecordingTick");
|
MarkNativeAsOptional("GetDemoRecordingTick");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user