3 Commits
3 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ Name=Cemu
Type=Application
Terminal=false
Icon=info.cemu.Cemu
Exec=cemu
Exec=Cemu
GenericName=Wii U Emulator
GenericName[fi]=Wii U -emulaattori
GenericName[el]=Πρόγραμμα προσομοίωσης Wii U
+3 -3
View File
@@ -263,7 +263,7 @@ void DSUControllerProvider::reader_thread()
if (ec)
{
#ifdef DEBUG_DSU_CLIENT
printf(" DSUControllerProvider::ReaderThread: exception %s\n", ex.what());
printf(" DSUControllerProvider::ReaderThread: exception %s\n", ec.what());
#endif
// there's probably no server listening on the given address:port
@@ -406,10 +406,10 @@ void DSUControllerProvider::writer_thread()
{
m_socket.send_to(boost::asio::buffer(msg.get(), msg->GetSize()), m_receiver_endpoint);
}
catch (const std::exception&)
catch (const std::exception& ec)
{
#ifdef DEBUG_DSU_CLIENT
printf(" DSUControllerProvider::WriterThread: exception %s\n", ex.what());
printf(" DSUControllerProvider::WriterThread: exception %s\n", ec.what());
#endif
std::this_thread::sleep_for(std::chrono::milliseconds(250));
}
+8 -1
View File
@@ -16,7 +16,14 @@ void MessageHeader::Finalize(size_t size)
uint32_t MessageHeader::CRC32(size_t size) const
{
return crc32_calc(this, size);
uint32_t tmp, tmp2;
tmp = m_crc32;
m_crc32 = 0;
tmp2 = crc32_calc(this, size);
m_crc32 = tmp;
return tmp2;
}
bool MessageHeader::IsClientMessage() const { return m_magic == kMagicClient; }