diff options
| author | nakeee <nakeee@gmail.com> | 2009-01-31 21:49:06 +0000 |
|---|---|---|
| committer | nakeee <nakeee@gmail.com> | 2009-01-31 21:49:06 +0000 |
| commit | f8064316b13154de67bb6e4b384e1487f6b14d6f (patch) | |
| tree | 4e86d5b2ecc544f26c011d27c94845344b8c48d1 /Source/Core/Common/Src/DynamicLibrary.cpp | |
| parent | ae84837320e056a5c8e0028a0bac342dfa5a056e (diff) | |
Some code clean up
console now prints to file and stderr on windows someone feels like creating a wxw version?
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2046 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/DynamicLibrary.cpp')
| -rw-r--r-- | Source/Core/Common/Src/DynamicLibrary.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/DynamicLibrary.cpp b/Source/Core/Common/Src/DynamicLibrary.cpp index 7344461592..bb97fe8a27 100644 --- a/Source/Core/Common/Src/DynamicLibrary.cpp +++ b/Source/Core/Common/Src/DynamicLibrary.cpp @@ -65,7 +65,7 @@ std::string GetLastErrorAsString() static std::string errstr; char *tmp = dlerror(); if (tmp) - errstr = tmp; + errstr = tmp; return errstr; #endif @@ -121,7 +121,8 @@ int DynamicLibrary::Unload() Console::Print("FreeLibrary: %i\n", library_file.c_str()); retval = FreeLibrary(library); #else - retval = dlclose(library)?0:1; + Console::Print("FreeLibrary: %i\n", library_file.c_str()); + retval = dlclose(library)?0:1; #endif if (!retval) { PanicAlert("Error unloading DLL %s: %s", library_file.c_str(), |
