Skip to content

Commit 99de929

Browse files
committed
dockspaceId
1 parent 2c92073 commit 99de929

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/core/arguments.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ PCSX::Arguments::Arguments(const CommandLine::args& args) {
3333
auto portablePath = args.get<std::string_view>("portable");
3434
if (portablePath.has_value()) m_portablePath = portablePath.value();
3535
if (std::filesystem::exists("pcsx.json")) m_portable = true;
36-
if (std::filesystem::exists("Makefile")) m_portable = true;
36+
if (std::filesystem::exists(std::filesystem::path("vsprojects") / "pcsx-redux.sln")) m_portable = true;
3737
if (std::filesystem::exists(std::filesystem::path("..") / "pcsx-redux.sln")) m_portable = true;
3838
if (args.get<bool>("safe") || args.get<bool>("testmode") || args.get<bool>("cli")) m_safeModeEnabled = true;
3939
if (args.get<bool>("resetui")) m_uiResetRequested = true;

src/gui/gui.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,12 +1127,12 @@ void PCSX::GUI::endFrame() {
11271127
m_offscreenShaderEditor.configure(this);
11281128
m_outputShaderEditor.configure(this);
11291129

1130-
ImGuiID dockspace = ImGui::DockSpaceOverViewport(0, nullptr, ImGuiDockNodeFlags_PassthruCentralNode);
1130+
ImGuiID dockspaceId = ImGui::DockSpaceOverViewport(0, nullptr, ImGuiDockNodeFlags_PassthruCentralNode);
11311131
ImGuiContext* context = ImGui::GetCurrentContext();
1132-
ImGuiDockNode* dockspaceNode = ImGui::DockContextFindNodeByID(context, dockspace);
1132+
ImGuiDockNode* dockspaceNode = ImGui::DockContextFindNodeByID(context, dockspaceId);
11331133
if (m_fullWindowRender && !dockspaceNode->IsEmpty()) {
11341134
m_fullWindowRender = false;
1135-
ImGui::SetNextWindowDockID(dockspace);
1135+
ImGui::SetNextWindowDockID(dockspaceId);
11361136
}
11371137
if (m_fullWindowRender) {
11381138
ImTextureID texture = m_offscreenTextures[m_currentTexture];
@@ -1186,7 +1186,7 @@ void PCSX::GUI::endFrame() {
11861186
if (!outputWindowShown) {
11871187
m_fullWindowRender = true;
11881188
// full window render mode can't have anything docked in the dockspace
1189-
ImGui::DockContextClearNodes(context, dockspace, true);
1189+
ImGui::DockContextClearNodes(context, dockspaceId, true);
11901190
}
11911191
}
11921192

@@ -1451,7 +1451,7 @@ in Configuration->Emulation, restart PCSX-Redux, then try again.)"));
14511451
if (ImGui::MenuItem(_("Full window render"), nullptr, &m_fullWindowRender)) {
14521452
m_setupScreenSize = true;
14531453
// full window render mode can't have anything docked in the dockspace
1454-
ImGui::DockContextClearNodes(context, dockspace, true);
1454+
ImGui::DockContextClearNodes(context, dockspaceId, true);
14551455
}
14561456
if (ImGui::MenuItem(_("Fullscreen"), nullptr, &m_fullscreen)) {
14571457
setFullscreen(m_fullscreen);

0 commit comments

Comments
 (0)