mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
commit
b4a586f84a
@ -215,10 +215,8 @@ void TraversalClient::OnFailure(FailureReason reason)
|
|||||||
switch (reason)
|
switch (reason)
|
||||||
{
|
{
|
||||||
case TraversalClient::BadHost:
|
case TraversalClient::BadHost:
|
||||||
{
|
|
||||||
PanicAlertT("Couldn't look up central server %s", m_Server.c_str());
|
PanicAlertT("Couldn't look up central server %s", m_Server.c_str());
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case TraversalClient::VersionTooOld:
|
case TraversalClient::VersionTooOld:
|
||||||
PanicAlertT("Dolphin too old for traversal server");
|
PanicAlertT("Dolphin too old for traversal server");
|
||||||
break;
|
break;
|
||||||
@ -353,4 +351,4 @@ void ReleaseTraversalClient()
|
|||||||
|
|
||||||
g_TraversalClient.release();
|
g_TraversalClient.release();
|
||||||
g_MainNetHost.release();
|
g_MainNetHost.release();
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,6 @@ public:
|
|||||||
ServerForgotAboutUs,
|
ServerForgotAboutUs,
|
||||||
SocketSendError,
|
SocketSendError,
|
||||||
ResendTimeout,
|
ResendTimeout,
|
||||||
ConnectFailedError = 0x400,
|
|
||||||
};
|
};
|
||||||
TraversalClient(ENetHost* netHost, const std::string& server, const u16 port);
|
TraversalClient(ENetHost* netHost, const std::string& server, const u16 port);
|
||||||
~TraversalClient();
|
~TraversalClient();
|
||||||
|
@ -744,20 +744,19 @@ void NetPlayClient::OnConnectFailed(u8 reason)
|
|||||||
{
|
{
|
||||||
m_connecting = false;
|
m_connecting = false;
|
||||||
m_state = Failure;
|
m_state = Failure;
|
||||||
int swtch = TraversalClient::ConnectFailedError + reason;
|
switch (reason)
|
||||||
switch (swtch)
|
|
||||||
{
|
{
|
||||||
case TraversalClient::ConnectFailedError + TraversalConnectFailedClientDidntRespond:
|
case TraversalConnectFailedClientDidntRespond:
|
||||||
PanicAlertT("Traversal server timed out connecting to the host");
|
PanicAlertT("Traversal server timed out connecting to the host");
|
||||||
break;
|
break;
|
||||||
case TraversalClient::ConnectFailedError + TraversalConnectFailedClientFailure:
|
case TraversalConnectFailedClientFailure:
|
||||||
PanicAlertT("Server rejected traversal attempt");
|
PanicAlertT("Server rejected traversal attempt");
|
||||||
break;
|
break;
|
||||||
case TraversalClient::ConnectFailedError + TraversalConnectFailedNoSuchClient:
|
case TraversalConnectFailedNoSuchClient:
|
||||||
PanicAlertT("Invalid host");
|
PanicAlertT("Invalid host");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
PanicAlertT("Unknown error %x", swtch);
|
PanicAlertT("Unknown error %x", reason);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
CARCodeAddEdit::CARCodeAddEdit(int _selection, const std::vector<ActionReplay::ARCode>& _arCodes, wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style)
|
CARCodeAddEdit::CARCodeAddEdit(int _selection, const std::vector<ActionReplay::ARCode>& _arCodes, wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style)
|
||||||
: wxDialog(parent, id, title, position, size, style)
|
: wxDialog(parent, id, title, position, size, style)
|
||||||
, selection(_selection)
|
|
||||||
, arCodes(_arCodes)
|
, arCodes(_arCodes)
|
||||||
|
, selection(_selection)
|
||||||
{
|
{
|
||||||
Bind(wxEVT_BUTTON, &CARCodeAddEdit::SaveCheatData, this, wxID_OK);
|
Bind(wxEVT_BUTTON, &CARCodeAddEdit::SaveCheatData, this, wxID_OK);
|
||||||
|
|
||||||
|
@ -54,4 +54,4 @@ u8* D3DBlob::Data()
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace DX11
|
} // namespace DX11
|
||||||
|
@ -37,4 +37,4 @@ private:
|
|||||||
ID3D10Blob* blob;
|
ID3D10Blob* blob;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
@ -54,4 +54,4 @@ namespace D3D
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace DX11
|
} // namespace DX11
|
||||||
|
@ -296,4 +296,4 @@ extern StateManager* stateman;
|
|||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
} // namespace DX11
|
} // namespace DX11
|
||||||
|
@ -110,4 +110,4 @@ D3DTexture2D::~D3DTexture2D()
|
|||||||
SAFE_RELEASE(tex);
|
SAFE_RELEASE(tex);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace DX11
|
} // namespace DX11
|
||||||
|
@ -44,4 +44,4 @@ private:
|
|||||||
UINT ref;
|
UINT ref;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace DX11
|
} // namespace DX11
|
||||||
|
@ -69,4 +69,4 @@ namespace D3D
|
|||||||
void drawColorQuad(u32 Color, float x1, float y1, float x2, float y2);
|
void drawColorQuad(u32 Color, float x1, float y1, float x2, float y2);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
#define CON_BLACK 0
|
#define CON_BLACK 0
|
||||||
#define CON_RED 1
|
#define CON_RED 1
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
// Stubs to make DSPCore compile as part of DSPSpy.
|
// Stubs to make DSPCore compile as part of DSPSpy.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -9,17 +9,17 @@
|
|||||||
// Use Dolphin's dsptool to generate a new dsp_code.h.
|
// Use Dolphin's dsptool to generate a new dsp_code.h.
|
||||||
// Originally written by duddie and modified by FIRES. Then further modified by ector.
|
// Originally written by duddie and modified by FIRES. Then further modified by ector.
|
||||||
|
|
||||||
|
#include <debug.h>
|
||||||
|
#include <fat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
#include <gccore.h>
|
#include <gccore.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#include <network.h>
|
||||||
|
#include <ogcsys.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <network.h>
|
|
||||||
#include <ogcsys.h>
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <fat.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <ogc/color.h>
|
#include <ogc/color.h>
|
||||||
|
@ -1 +1 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
|
@ -27,14 +27,14 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <limits.h>
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
#include <limits.h>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <memory.h>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <memory.h>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
// Licensed under GPLv2
|
// Licensed under GPLv2
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
#include "Common/Event.h"
|
#include "Common/Event.h"
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
// Licensed under GPLv2
|
// Licensed under GPLv2
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
#include "Common/FifoQueue.h"
|
#include "Common/FifoQueue.h"
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <gtest/gtest.h>
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
#include "Common/Flag.h"
|
#include "Common/Flag.h"
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
// Licensed under GPLv2
|
// Licensed under GPLv2
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <random>
|
#include <random>
|
||||||
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
#include "Common/MathUtil.h"
|
#include "Common/MathUtil.h"
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
// Licensed under GPLv2
|
// Licensed under GPLv2
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
#include <cstring>
|
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
|
#include <cstring>
|
||||||
#include <disasm.h> // From Bochs, fallback included in Externals.
|
#include <disasm.h> // From Bochs, fallback included in Externals.
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "Core/PowerPC/JitCommon/JitBase.h"
|
#include "Core/PowerPC/JitCommon/JitBase.h"
|
||||||
|
|
||||||
// include order is important
|
// include order is important
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h> // NOLINT
|
||||||
|
|
||||||
#if _M_X86_64 || _M_ARM_32
|
#if _M_X86_64 || _M_ARM_32
|
||||||
enum
|
enum
|
||||||
|
Loading…
x
Reference in New Issue
Block a user