diff options
| author | hrydgard <hrydgard@gmail.com> | 2008-07-16 20:50:16 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2008-07-16 20:50:16 +0000 |
| commit | ea934759e15c94ad2fa67e76e11f5d469ebfccf4 (patch) | |
| tree | 43dd6f2fa6a3e747e0d81c602d5490d02b10b087 /Source/Core/DolphinWX/src/PluginManager.cpp | |
| parent | cb5072c3e4cf66d33d30697984a9179534334b38 (diff) | |
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
Diffstat (limited to 'Source/Core/DolphinWX/src/PluginManager.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/src/PluginManager.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
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 <string>
#include <vector>
-#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());
+ }
}
}
|
