mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-26 04:06:32 +00:00
Compiling. Online and rollback work. Replays broken currently
This commit is contained in:
parent
6228f14bb6
commit
ced28d629d
9 changed files with 51 additions and 7 deletions
|
@ -582,10 +582,12 @@ PUBLIC
|
|||
videoogl
|
||||
videosoftware
|
||||
videovulkan
|
||||
semver
|
||||
SlippiLib
|
||||
vcdcom
|
||||
vcddec
|
||||
vcdenc
|
||||
z
|
||||
|
||||
PRIVATE
|
||||
fmt::fmt
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "Core/ConfigManager.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "Core/Debugger/Debugger_SymbolMap.h"
|
||||
#include "Host.h"
|
||||
#include "Core/HW/EXI/EXI_DeviceSlippi.h"
|
||||
#include "Core/HW/Memmap.h"
|
||||
#include "Core/HW/SystemTimers.h"
|
||||
|
@ -44,15 +45,14 @@
|
|||
|
||||
//#define LOCAL_TESTING
|
||||
//#define CREATE_DIFF_FILES
|
||||
extern std::unique_ptr<SlippiPlaybackStatus> g_playbackStatus;
|
||||
extern std::unique_ptr<SlippiReplayComm> g_replayComm;
|
||||
|
||||
namespace ExpansionInterface {
|
||||
|
||||
static std::unordered_map<u8, std::string> slippi_names;
|
||||
static std::unordered_map<u8, std::string> slippi_connect_codes;
|
||||
|
||||
extern std::unique_ptr<SlippiPlaybackStatus> g_playbackStatus;
|
||||
extern std::unique_ptr<SlippiReplayComm> g_replayComm;
|
||||
|
||||
template <typename T> bool isFutureReady(std::future<T>& t)
|
||||
{
|
||||
return t.wait_for(std::chrono::seconds(0)) == std::future_status::ready;
|
||||
|
@ -1988,7 +1988,7 @@ void CEXISlippi::handleLogInRequest()
|
|||
if (!logInRes)
|
||||
{
|
||||
//#ifndef LINUX_LOCAL_DEV
|
||||
//main_frame->LowerRenderWindow(); SLIPPITODO: figure out replacement.
|
||||
Host_LowerWindow();
|
||||
//#endif
|
||||
user->OpenLogInPage();
|
||||
user->ListenForLogIn();
|
||||
|
@ -2007,7 +2007,7 @@ void CEXISlippi::handleUpdateAppRequest()
|
|||
#else
|
||||
// main_frame->LowerRenderWindow(); SLIPPITODO: figure out replacement // mainwindow hide render widget
|
||||
user->UpdateApp();
|
||||
main_frame->DoExit();
|
||||
Host_Exit();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -2036,7 +2036,7 @@ void CEXISlippi::prepareOnlineStatus()
|
|||
|
||||
// Write connect code (10 bytes)
|
||||
std::string connectCode = userInfo.connectCode;
|
||||
char shiftJisHashtag[] = { (char)0x81, (char)0x94, (char)0x00 };
|
||||
char shiftJisHashtag[] = { '\x81', '\x94', '\x00' };
|
||||
connectCode.resize(CONNECT_CODE_LENGTH);
|
||||
connectCode = ReplaceAll(connectCode, "#", shiftJisHashtag);
|
||||
auto codeBuf = connectCode.c_str();
|
||||
|
|
|
@ -44,3 +44,5 @@ void Host_UpdateMainFrame();
|
|||
void Host_UpdateTitle(const std::string& title);
|
||||
void Host_YieldToUI();
|
||||
void Host_TitleChanged();
|
||||
void Host_LowerWindow();
|
||||
void Host_Exit();
|
||||
|
|
|
@ -106,6 +106,9 @@ void Host_TitleChanged()
|
|||
#endif
|
||||
}
|
||||
|
||||
void Host_LowerWindow() {}
|
||||
void Host_Exit() {}
|
||||
|
||||
static std::unique_ptr<Platform> GetPlatform(const optparse::Values& options)
|
||||
{
|
||||
std::string platform_name = static_cast<const char*>(options.get("platform"));
|
||||
|
|
|
@ -173,3 +173,13 @@ void Host_TitleChanged()
|
|||
Discord::UpdateDiscordPresence();
|
||||
#endif
|
||||
}
|
||||
|
||||
void Host_LowerWindow()
|
||||
{
|
||||
Host::GetInstance()->RequestLowerWindow();
|
||||
}
|
||||
|
||||
void Host_Exit()
|
||||
{
|
||||
Host::GetInstance()->RequestExit();
|
||||
}
|
||||
|
|
|
@ -37,6 +37,8 @@ signals:
|
|||
void RequestRenderSize(int w, int h);
|
||||
void UpdateDisasmDialog();
|
||||
void NotifyMapLoaded();
|
||||
void RequestLowerWindow();
|
||||
void RequestExit();
|
||||
|
||||
private:
|
||||
Host();
|
||||
|
|
|
@ -57,7 +57,8 @@ RenderWidget::RenderWidget(QWidget* parent) : QWidget(parent)
|
|||
|
||||
resize(w / dpr, h / dpr);
|
||||
});
|
||||
|
||||
connect(Host::GetInstance(), &Host::RequestLowerWindow, this, &RenderWidget::LowerWindow);
|
||||
connect(Host::GetInstance(), &Host::RequestExit, this, &RenderWidget::Exit);
|
||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [this](Core::State state) {
|
||||
if (state == Core::State::Running)
|
||||
SetImGuiKeyMap();
|
||||
|
@ -334,3 +335,18 @@ void RenderWidget::SetImGuiKeyMap()
|
|||
for (auto entry : key_map)
|
||||
ImGui::GetIO().KeyMap[entry[0]] = entry[1] & 0x1FF;
|
||||
}
|
||||
|
||||
void RenderWidget::LowerWindow()
|
||||
{
|
||||
if (Config::Get(Config::MAIN_RENDER_TO_MAIN))
|
||||
return;
|
||||
|
||||
lower();
|
||||
}
|
||||
|
||||
void RenderWidget::Exit()
|
||||
{
|
||||
close();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ signals:
|
|||
void SizeChanged(int new_width, int new_height);
|
||||
void FocusChanged(bool focus);
|
||||
|
||||
|
||||
private:
|
||||
void HandleCursorTimer();
|
||||
void OnHideCursorChanged();
|
||||
|
@ -38,6 +39,8 @@ private:
|
|||
void SetImGuiKeyMap();
|
||||
void dragEnterEvent(QDragEnterEvent* event) override;
|
||||
void dropEvent(QDropEvent* event) override;
|
||||
void LowerWindow();
|
||||
void Exit();
|
||||
|
||||
static constexpr int MOUSE_HIDE_DELAY = 3000;
|
||||
QTimer* m_mouse_timer;
|
||||
|
|
|
@ -49,3 +49,9 @@ void Host_YieldToUI()
|
|||
void Host_TitleChanged()
|
||||
{
|
||||
}
|
||||
void Host_LowerWindow()
|
||||
{
|
||||
}
|
||||
void Host_Exit()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue