forked from UNLOZE/sm-plugins
[AutoRecorder] Add native to determine if recording.
This commit is contained in:
@@ -32,6 +32,8 @@ public Plugin myinfo =
|
||||
|
||||
public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
|
||||
{
|
||||
CreateNative("IsDemoRecording", Native_IsDemoRecording);
|
||||
|
||||
CreateNative("GetDemoRecordingNumber", Native_GetDemoRecordingNumber);
|
||||
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)
|
||||
{
|
||||
return g_iRecordingNumber;
|
||||
|
||||
Reference in New Issue
Block a user