yes i had to modify my patch created by tortoise manualy.. cuz i had sooo much stuff that had to be removed..
I was working on dozen of things. Just return int then, it shouldnt matter anyways, because it doesnt get checked only if positive but the return value itself.
the motion plus code is also not needed, same reason, cuz were passing code directly to the core via iowrite/ioread, however i added it up to my dll as well.
dont do it like this:
if (wm->event == WIIUSE_UNEXPECTED_DISCONNECT)
{
#ifdef WIN32
CloseHandle(wm->dev_handle);
#else
close(wm->out_sock);
close(wm->in_sock);
#endif
}
Every OS handles all that stupid connection handler stuff different, i dont know if linux has problems with leaking handlers nor do i know if mac does, i suggest atm keeping it like this:
+ if (wm->event == WIIUSE_UNEXPECTED_DISCONNECT)
+ CloseHandle(wm->dev_handle);
+ else
+ wm->event = WIIUSE_DISCONNECT;
+
+ #ifndef WIN32
+ wm->out_sock = -1;
+ wm->in_sock = -1;
+ #else
+ wm->dev_handle = 0;
+ #endif
that shouldnt break mac/linux
ps the dlls which i posted above where my dlls which also had various different other patches.. so its not just the plain patch above.. so better dont submit those dlls to svn. I ll do a clean compilation now.
However the re-pair part in dolphin/windows works, i tested it 100nds of times.
ps2: as a note, wiiuse_unexpected_disconnect was implemented in linux i think, so best atm dont change anything concerning the linux code, and well macosx i dont know havent checked there, but mainly cuz its not my area and most ppl wont care about osx
my code shouldnt touch osx either.
ok done, recompiled, there they are.
http://uploaded.to/file/vu5jzu
I was working on dozen of things. Just return int then, it shouldnt matter anyways, because it doesnt get checked only if positive but the return value itself.
the motion plus code is also not needed, same reason, cuz were passing code directly to the core via iowrite/ioread, however i added it up to my dll as well.
dont do it like this:
if (wm->event == WIIUSE_UNEXPECTED_DISCONNECT)
{
#ifdef WIN32
CloseHandle(wm->dev_handle);
#else
close(wm->out_sock);
close(wm->in_sock);
#endif
}
Every OS handles all that stupid connection handler stuff different, i dont know if linux has problems with leaking handlers nor do i know if mac does, i suggest atm keeping it like this:
+ if (wm->event == WIIUSE_UNEXPECTED_DISCONNECT)
+ CloseHandle(wm->dev_handle);
+ else
+ wm->event = WIIUSE_DISCONNECT;
+
+ #ifndef WIN32
+ wm->out_sock = -1;
+ wm->in_sock = -1;
+ #else
+ wm->dev_handle = 0;
+ #endif
that shouldnt break mac/linux
ps the dlls which i posted above where my dlls which also had various different other patches.. so its not just the plain patch above.. so better dont submit those dlls to svn. I ll do a clean compilation now.
However the re-pair part in dolphin/windows works, i tested it 100nds of times.
ps2: as a note, wiiuse_unexpected_disconnect was implemented in linux i think, so best atm dont change anything concerning the linux code, and well macosx i dont know havent checked there, but mainly cuz its not my area and most ppl wont care about osx
my code shouldnt touch osx either.
ok done, recompiled, there they are.
http://uploaded.to/file/vu5jzu
C2D 2.4Ghz; 4GB; Geforce 9700M; Win7/X64.
...::: Join us on: irc.efnet.org #dolphin-emu :::...
http://snzgoo.blogspot.com/
...::: Join us on: irc.efnet.org #dolphin-emu :::...
http://snzgoo.blogspot.com/