mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88f63ca373 | ||
|
|
643ac57a30 | ||
|
|
4561a6929c |
Vendored
+1
-1
@@ -3,7 +3,7 @@ Name=Cemu
|
|||||||
Type=Application
|
Type=Application
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Icon=info.cemu.Cemu
|
Icon=info.cemu.Cemu
|
||||||
Exec=cemu
|
Exec=Cemu
|
||||||
GenericName=Wii U Emulator
|
GenericName=Wii U Emulator
|
||||||
GenericName[fi]=Wii U -emulaattori
|
GenericName[fi]=Wii U -emulaattori
|
||||||
GenericName[el]=Πρόγραμμα προσομοίωσης Wii U
|
GenericName[el]=Πρόγραμμα προσομοίωσης Wii U
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ void DSUControllerProvider::reader_thread()
|
|||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_DSU_CLIENT
|
#ifdef DEBUG_DSU_CLIENT
|
||||||
printf(" DSUControllerProvider::ReaderThread: exception %s\n", ex.what());
|
printf(" DSUControllerProvider::ReaderThread: exception %s\n", ec.what());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// there's probably no server listening on the given address:port
|
// 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);
|
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
|
#ifdef DEBUG_DSU_CLIENT
|
||||||
printf(" DSUControllerProvider::WriterThread: exception %s\n", ex.what());
|
printf(" DSUControllerProvider::WriterThread: exception %s\n", ec.what());
|
||||||
#endif
|
#endif
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(250));
|
std::this_thread::sleep_for(std::chrono::milliseconds(250));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,14 @@ void MessageHeader::Finalize(size_t size)
|
|||||||
|
|
||||||
uint32_t MessageHeader::CRC32(size_t size) const
|
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; }
|
bool MessageHeader::IsClientMessage() const { return m_magic == kMagicClient; }
|
||||||
|
|||||||
Reference in New Issue
Block a user