Moved PatchVersionCheck to MDota.cpp, moved detours from MDota.cpp to MDota_Detours.h and added dota.setWaitForPlayersCount because d2fixup's wasn't quite working with my production servers.