From: <sag...@us...> - 2011-05-26 18:39:28
|
Revision: 883 http://modplug.svn.sourceforge.net/modplug/?rev=883&view=rev Author: saga-games Date: 2011-05-26 18:39:22 +0000 (Thu, 26 May 2011) Log Message: ----------- [Mod] (Debugging mode only) When LoadLibrary fails because a plugin DLL is not found, its error code is not displayed anymore (we already have our own error box for that) [Fix] VST: When a plugin requests song position in nano secods, the correct value should now be returned. [Mod] OpenMPT: Version is now 1.19.02.01 Modified Paths: -------------- trunk/OpenMPT/mptrack/Vstplug.cpp trunk/OpenMPT/mptrack/version.h Modified: trunk/OpenMPT/mptrack/Vstplug.cpp =================================================================== --- trunk/OpenMPT/mptrack/Vstplug.cpp 2011-05-26 18:35:33 UTC (rev 882) +++ trunk/OpenMPT/mptrack/Vstplug.cpp 2011-05-26 18:39:22 UTC (rev 883) @@ -283,11 +283,11 @@ hLib = LoadLibrary(pszDllPath); //rewbs.VSTcompliance #ifdef _DEBUG - if (!hLib) + DWORD dw = GetLastError(); + if (!hLib && dw != ERROR_MOD_NOT_FOUND) // "File not found errors" are annoying. { TCHAR szBuf[256]; LPVOID lpMsgBuf; - DWORD dw = GetLastError(); FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, dw, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) &lpMsgBuf, 0, NULL ); wsprintf(szBuf, "Warning: encountered problem when loading plugin dll. Error %d: %s", dw, lpMsgBuf); MessageBox(NULL, szBuf, "DEBUG: Error when loading plugin dll", MB_OK); @@ -785,7 +785,7 @@ if ((value & kVstNanosValid)) { timeInfo.flags |= kVstNanosValid; - timeInfo.nanoSeconds = pVstPlugin->GetTimeAtStartOfProcess(); + timeInfo.nanoSeconds = timeGetTime() * 1000000; } if ((value & kVstPpqPosValid) && pSndFile) { Modified: trunk/OpenMPT/mptrack/version.h =================================================================== --- trunk/OpenMPT/mptrack/version.h 2011-05-26 18:35:33 UTC (rev 882) +++ trunk/OpenMPT/mptrack/version.h 2011-05-26 18:39:22 UTC (rev 883) @@ -15,7 +15,7 @@ #define VER_MAJORMAJOR 1 #define VER_MAJOR 19 #define VER_MINOR 02 -#define VER_MINORMINOR 00 +#define VER_MINORMINOR 01 //Creates version number from version parts that appears in version string. //For example MAKE_VERSION_NUMERIC(1,17,02,28) gives version number of This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |