mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-25 19:44:57 +00:00
* Added a trophy viewer (right click on game ==> trophy viewer) * Enabled Run button. * Added region in list mode. * Added a simple temp elf list widget. * Switched gui settings to toml. * Added messages when extracting pkg (ex: installing a patch before the game...etc) * Added recent files (6 max) * Fixed several bugs and crashes.
58 lines
1.5 KiB
C++
58 lines
1.5 KiB
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include "types.h"
|
|
|
|
namespace Config {
|
|
void load(const std::filesystem::path& path);
|
|
void save(const std::filesystem::path& path);
|
|
|
|
bool isNeoMode();
|
|
std::string getLogFilter();
|
|
std::string getLogType();
|
|
|
|
u32 getScreenWidth();
|
|
u32 getScreenHeight();
|
|
s32 getGpuId();
|
|
|
|
bool debugDump();
|
|
bool isLleLibc();
|
|
bool showSplash();
|
|
bool nullGpu();
|
|
|
|
void setMainWindowGeometry(u32 x, u32 y, u32 w, u32 h);
|
|
void setGameInstallDir(const std::string& dir);
|
|
void setMainWindowTheme(u32 theme);
|
|
void setIconSize(u32 size);
|
|
void setIconSizeGrid(u32 size);
|
|
void setSliderPositon(u32 pos);
|
|
void setSliderPositonGrid(u32 pos);
|
|
void setTableMode(u32 mode);
|
|
void setMainWindowWidth(u32 width);
|
|
void setMainWindowHeight(u32 height);
|
|
void setPkgViewer(std::vector<std::string> pkgList);
|
|
void setElfViewer(std::vector<std::string> elfList);
|
|
void setRecentFiles(std::vector<std::string> recentFiles);
|
|
|
|
u32 getMainWindowGeometryX();
|
|
u32 getMainWindowGeometryY();
|
|
u32 getMainWindowGeometryW();
|
|
u32 getMainWindowGeometryH();
|
|
std::string getGameInstallDir();
|
|
u32 getMainWindowTheme();
|
|
u32 getIconSize();
|
|
u32 getIconSizeGrid();
|
|
u32 getSliderPositon();
|
|
u32 getSliderPositonGrid();
|
|
u32 getTableMode();
|
|
u32 getMainWindowWidth();
|
|
u32 getMainWindowHeight();
|
|
std::vector<std::string> getPkgViewer();
|
|
std::vector<std::string> getElfViewer();
|
|
std::vector<std::string> getRecentFiles();
|
|
|
|
}; // namespace Config
|