From: <sag...@us...> - 2014-11-19 21:33:44
|
Revision: 4604 http://sourceforge.net/p/modplug/code/4604 Author: saga-games Date: 2014-11-19 21:33:29 +0000 (Wed, 19 Nov 2014) Log Message: ----------- [Fix] VST: Regularly send effEditIdle to plugins with open editors. [New] Debug mode: Added /noTests command line switch which disables testing. [Mod] OpenMPT: Version is now 1.24.00.17 Modified Paths: -------------- trunk/OpenMPT/common/versionNumber.h trunk/OpenMPT/mptrack/Mptrack.cpp trunk/OpenMPT/soundlib/plugins/PluginManager.cpp Modified: trunk/OpenMPT/common/versionNumber.h =================================================================== --- trunk/OpenMPT/common/versionNumber.h 2014-11-19 21:31:48 UTC (rev 4603) +++ trunk/OpenMPT/common/versionNumber.h 2014-11-19 21:33:29 UTC (rev 4604) @@ -19,7 +19,7 @@ #define VER_MAJORMAJOR 1 #define VER_MAJOR 24 #define VER_MINOR 00 -#define VER_MINORMINOR 16 +#define VER_MINORMINOR 17 //Version string. For example "1.17.02.28" #define MPT_VERSION_STR VER_STRINGIZE(VER_MAJORMAJOR) "." VER_STRINGIZE(VER_MAJOR) "." VER_STRINGIZE(VER_MINOR) "." VER_STRINGIZE(VER_MINORMINOR) Modified: trunk/OpenMPT/mptrack/Mptrack.cpp =================================================================== --- trunk/OpenMPT/mptrack/Mptrack.cpp 2014-11-19 21:31:48 UTC (rev 4603) +++ trunk/OpenMPT/mptrack/Mptrack.cpp 2014-11-19 21:33:29 UTC (rev 4604) @@ -327,12 +327,18 @@ public: bool m_bNoDls, m_bNoPlugins, m_bNoAssembly, m_bPortable; +#ifdef _DEBUG + bool m_bNoTests; +#endif public: CMPTCommandLineInfo() { m_bNoDls = m_bNoPlugins = m_bNoAssembly = m_bPortable = false; +#ifdef _DEBUG + m_bNoTests = false; +#endif } virtual void ParseParam(LPCTSTR lpszParam, BOOL bFlag, BOOL bLast) { @@ -344,6 +350,9 @@ if (!lstrcmpi(lpszParam, _T("portable"))) { m_bPortable = true; return; } if (!lstrcmpi(lpszParam, _T("fullMemDump"))) { ExceptionHandler::fullMemDump = true; return; } if (!lstrcmpi(lpszParam, _T("noAssembly"))) { m_bNoAssembly = true; return; } +#ifdef _DEBUG + if (!lstrcmpi(lpszParam, _T("noTests"))) { m_bNoTests = true; return; } +#endif } CCommandLineInfo::ParseParam(lpszParam, bFlag, bLast); } @@ -1019,7 +1028,10 @@ EndWaitCursor(); - Test::DoTests(); +#ifdef _DEBUG + if(!cmdInfo.m_bNoTests) + Test::DoTests(); +#endif if(TrackerSettings::Instance().m_SoundSettingsOpenDeviceAtStartup) { @@ -1390,7 +1402,7 @@ { DWORD curTime = timeGetTime(); //rewbs.vstCompliance: call @ 50Hz - if (curTime - m_dwLastPluginIdleCall > 20) //20ms since last call? + if (curTime - m_dwLastPluginIdleCall > 20 || curTime < m_dwLastPluginIdleCall) { m_pPluginManager->OnIdle(); m_dwLastPluginIdleCall = curTime; Modified: trunk/OpenMPT/soundlib/plugins/PluginManager.cpp =================================================================== --- trunk/OpenMPT/soundlib/plugins/PluginManager.cpp 2014-11-19 21:31:48 UTC (rev 4603) +++ trunk/OpenMPT/soundlib/plugins/PluginManager.cpp 2014-11-19 21:33:29 UTC (rev 4604) @@ -620,6 +620,7 @@ if (editor && editor->m_hWnd) { editor->UpdateParamDisplays(); + p->Dispatch(effEditIdle, 0, 0, nullptr, 0.0f); } //end rewbs. VSTCompliance: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |