mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-03-24 19:38:42 -06:00
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
* devtools: memory map viewer * devtools: batch highlight only for non-group viewer * devtools: fix not showing entire user data * devtools: shader debug viewer * devtools: add more reg naming
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include <imgui.h>
|
|
|
|
#include "options.h"
|
|
|
|
namespace Core::Devtools {
|
|
|
|
TOptions Options;
|
|
|
|
void LoadOptionsConfig(const char* line) {
|
|
char str[512];
|
|
int i;
|
|
if (sscanf(line, "disassembler_cli_isa=%511[^\n]", str) == 1) {
|
|
Options.disassembler_cli_isa = str;
|
|
return;
|
|
}
|
|
if (sscanf(line, "disassembler_cli_spv=%511[^\n]", str) == 1) {
|
|
Options.disassembler_cli_spv = str;
|
|
return;
|
|
}
|
|
if (sscanf(line, "frame_dump_render_on_collapse=%d", &i) == 1) {
|
|
Options.frame_dump_render_on_collapse = i != 0;
|
|
return;
|
|
}
|
|
}
|
|
|
|
void SerializeOptionsConfig(ImGuiTextBuffer* buf) {
|
|
buf->appendf("disassembler_cli_isa=%s\n", Options.disassembler_cli_isa.c_str());
|
|
buf->appendf("disassembler_cli_spv=%s\n", Options.disassembler_cli_spv.c_str());
|
|
buf->appendf("frame_dump_render_on_collapse=%d\n", Options.frame_dump_render_on_collapse);
|
|
}
|
|
|
|
} // namespace Core::Devtools
|