Merge remote-tracking branch 'GliniakRepo/patchingSystem' into canary_pr
This commit is contained in:
@@ -1004,6 +1004,10 @@ void EmulatorWindow::UpdateTitle() {
|
||||
sb.Append(u8" (Preloading shaders\u2026)");
|
||||
}
|
||||
|
||||
patcher::Patcher* patcher = emulator()->patcher();
|
||||
if (patcher && patcher->IsAnyPatchApplied()) {
|
||||
sb.Append(u8" [Patches Applied]");
|
||||
}
|
||||
window_->SetTitle(sb.to_string_view());
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ project("xenia-app")
|
||||
"xenia-ui",
|
||||
"xenia-ui-spirv",
|
||||
"xenia-ui-vulkan",
|
||||
"xenia-patcher",
|
||||
"xenia-vfs",
|
||||
})
|
||||
links({
|
||||
|
||||
@@ -509,6 +509,10 @@ void EmulatorApp::EmulatorThread() {
|
||||
});
|
||||
});
|
||||
|
||||
emulator_->on_patch_apply.AddListener([this]() {
|
||||
app_context().CallInUIThread([this]() { emulator_window_->UpdateTitle(); });
|
||||
});
|
||||
|
||||
emulator_->on_terminate.AddListener([]() {
|
||||
if (cvars::discord) {
|
||||
discord::DiscordPresence::NotPlaying();
|
||||
|
||||
Reference in New Issue
Block a user