mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
25 lines
553 B
C++
25 lines
553 B
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];
|
|
if (sscanf(line, "disassembly_cli=%511[^\n]", str) == 1) {
|
|
Options.disassembly_cli = str;
|
|
return;
|
|
}
|
|
}
|
|
|
|
void SerializeOptionsConfig(ImGuiTextBuffer* buf) {
|
|
buf->appendf("disassembly_cli=%s\n", Options.disassembly_cli.c_str());
|
|
}
|
|
|
|
} // namespace Core::Devtools
|