mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 06:48:33 +00:00
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:
parent
ae84837320
commit
f8064316b1
6 changed files with 272 additions and 378 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue