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
This commit is contained in:
nakeee 2009-01-31 21:49:06 +00:00
parent ae84837320
commit f8064316b1
6 changed files with 272 additions and 378 deletions

View file

@ -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(),