# HG changeset patch # User arpi # Date 1041778197 0 # Node ID b16c91194e40d001b160193012ce3525fa0c599b # Parent 97a26dea07bbcab1d955af86c6cba9ee3621a3dc qt vs. voxware fixed (hopefully), also some qt speedup diff -r 97a26dea07bb -r b16c91194e40 loader/win32.c --- a/loader/win32.c Sun Jan 05 14:35:35 2003 +0000 +++ b/loader/win32.c Sun Jan 05 14:49:57 2003 +0000 @@ -3283,8 +3283,10 @@ static HANDLE WINAPI expFindFirstFileA(LPCSTR s, LPWIN32_FIND_DATAA lpfd) { + dbgprintf("FindFirstFileA(0x%x='%s', 0x%x) => 0\n", s, s, lpfd); +// printf("\n### FindFirstFileA('%s')...\n",s); #ifdef QTX - if(strstr(s, "*.QTX")){ + if(strstr(s, "quicktime\\*.QTX")){ dbgprintf("FindFirstFileA(0x%x='%s', 0x%x) => QTX\n", s, s, lpfd); printf("\n### Searching for QuickTime plugins (*.qtx) at %s...\n",def_path); qtx_dir=opendir(def_path); @@ -3295,6 +3297,7 @@ printf("loader: Couldn't find the QuickTime plugins (.qtx files) at %s\n",def_path); return (HANDLE)-1; } +#if 0 if(strstr(s, "QuickTime.qts")){ dbgprintf("FindFirstFileA(0x%x='%s', 0x%x) => QTS\n", s, s, lpfd); // if(!strcmp(s,"C:\\windows\\QuickTime.qts\\QuickTime.qts\\*.QTX")) @@ -3304,11 +3307,15 @@ return FILE_HANDLE_quicktimeqts; } #endif - printf("\n### FindFirstFileA('%s')...\n",s); - dbgprintf("FindFirstFileA(0x%x='%s', 0x%x) => 0\n", s, s, lpfd); - strcpy(lpfd->cFileName, "msms001.vwp"); - strcpy(lpfd->cAlternateFileName, "msms001.vwp"); - return (HANDLE)0; +#endif + if(strstr(s, "*.vwp")){ + // hack for VoxWare codec plugins: + strcpy(lpfd->cFileName, "msms001.vwp"); + strcpy(lpfd->cAlternateFileName, "msms001.vwp"); + return (HANDLE)0; + } + // return 'file not found' + return (HANDLE)-1; } static WIN_BOOL WINAPI expFindClose(HANDLE h)