[Audio] split log startup

This commit is contained in:
zilmar 2017-09-12 08:16:45 +10:00
parent a658753305
commit 26e4d0a6e1
3 changed files with 11 additions and 6 deletions

View File

@ -111,6 +111,7 @@ void PluginInit(void)
}
SetupTrace();
SetupAudioSettings();
StartTrace();
g_PluginInit = true;
}
@ -758,9 +759,9 @@ EXPORT void CALL GetDllInfo(PLUGIN_INFO * PluginInfo)
PluginInfo->Version = 0x0101;
PluginInfo->Type = PLUGIN_TYPE_AUDIO;
#ifdef _DEBUG
sprintf(PluginInfo->Name, "Android Audio Debug Plugin %s", VER_FILE_VERSION_STR);
sprintf(PluginInfo->Name, "Project64 Audio Plugin (Debug): %s", VER_FILE_VERSION_STR);
#else
sprintf(PluginInfo->Name, "Android Audio Plugin %s", VER_FILE_VERSION_STR);
sprintf(PluginInfo->Name, "Project64 Audio Plugin: %s", VER_FILE_VERSION_STR);
#endif
PluginInfo->MemoryBswaped = true;
PluginInfo->NormalMemory = false;

View File

@ -60,7 +60,11 @@ void SetupTrace(void)
#endif
TraceSetModuleName(TraceAudioInitShutdown, "AudioInitShutdown");
TraceSetModuleName(TraceAudioInterface, "AudioInterface");
TraceSetModuleName(TraceAudioDriver, "AudioDriver");
}
void StartTrace(void)
{
char log_dir[260];
memset(log_dir, 0, sizeof(log_dir));
short logDirSetting = FindSystemSettingId("Dir:Log");
@ -75,7 +79,7 @@ void SetupTrace(void)
return;
}
CPath LogFilePath(log_dir,"PluginAudio.log");
CPath LogFilePath(log_dir, "Project64-audio.log");
if (!LogFilePath.DirectoryExists())
{
LogFilePath.DirectoryCreate();

View File

@ -14,9 +14,9 @@
enum TraceModuleAndroidAudio
{
TraceSettings = MaxTraceModuleCommon,
TraceAudioInitShutdown,
TraceAudioInitShutdown = MaxTraceModuleCommon,
TraceAudioInterface,
TraceAudioDriver,
MaxTraceModulePluginAudio,
};