From ea934759e15c94ad2fa67e76e11f5d469ebfccf4 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Wed, 16 Jul 2008 20:50:16 +0000 Subject: Mostly cleanup and some better crash messages. Also enabled partial block linking (see JitCache.cpp), should give a small speedup but may cause problems, please report! git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@12 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/src/PluginManager.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Source/Core/DolphinWX/src/PluginManager.cpp') diff --git a/Source/Core/DolphinWX/src/PluginManager.cpp b/Source/Core/DolphinWX/src/PluginManager.cpp index 63bcb4ab24..07f7594bd7 100644 --- a/Source/Core/DolphinWX/src/PluginManager.cpp +++ b/Source/Core/DolphinWX/src/PluginManager.cpp @@ -18,10 +18,11 @@ #include #include -#include "Globals.h" #include "Common.h" -#include "PluginManager.h" +#include "Globals.h" #include "FileSearch.h" +#include "FileUtil.h" +#include "PluginManager.h" #include "StringUtil.h" CPluginManager CPluginManager::m_Instance; @@ -57,7 +58,7 @@ CPluginManager::ScanForPlugins(wxWindow* _wxWindow) { wxProgressDialog dialog(_T("Scanning for Plugins"), _T("Scanning..."), - rFilenames.size(), // range + (int)rFilenames.size(), // range _wxWindow, // parent wxPD_CAN_ABORT | wxPD_APP_MODAL | @@ -67,8 +68,6 @@ CPluginManager::ScanForPlugins(wxWindow* _wxWindow) wxPD_REMAINING_TIME | wxPD_SMOOTH // - makes indeterminate mode bar on WinXP very small ); - - dialog.CenterOnParent(); for (size_t i = 0; i < rFilenames.size(); i++) @@ -85,7 +84,7 @@ CPluginManager::ScanForPlugins(wxWindow* _wxWindow) wxString msg; msg.Printf("Scanning %s", FileName.c_str()); - bool Cont = dialog.Update(i, msg); + bool Cont = dialog.Update((int)i, msg); if (!Cont) { @@ -154,7 +153,11 @@ CPluginInfo::CPluginInfo(const std::string& _rFileName) } else { - PanicAlert("Failed to load plugin %s\nhello world", _rFileName.c_str()); + if (!File::Exists(_rFileName)) { + PanicAlert("Could not load plugin %s - file does not exist", _rFileName.c_str()); + } else { + PanicAlert("Failed to load plugin %s - unknown error.\n", _rFileName.c_str()); + } } } -- cgit v1.2.3