2024-02-23 22:32:32 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2023-08-14 19:17:01 +02:00
|
|
|
#pragma once
|
2024-02-23 22:32:32 +01:00
|
|
|
|
2023-08-14 19:17:01 +02:00
|
|
|
#include <filesystem>
|
2024-06-11 04:42:21 +02:00
|
|
|
#include <vector>
|
2024-06-11 04:44:16 +02:00
|
|
|
#include "types.h"
|
2023-08-14 19:17:01 +02:00
|
|
|
|
|
|
|
namespace Config {
|
|
|
|
void load(const std::filesystem::path& path);
|
|
|
|
void save(const std::filesystem::path& path);
|
|
|
|
|
|
|
|
bool isNeoMode();
|
2024-06-09 12:25:00 +02:00
|
|
|
bool isFullscreenMode();
|
2024-02-27 23:10:34 +01:00
|
|
|
std::string getLogFilter();
|
2024-03-11 13:06:39 +01:00
|
|
|
std::string getLogType();
|
2023-08-16 09:34:04 +02:00
|
|
|
|
|
|
|
u32 getScreenWidth();
|
|
|
|
u32 getScreenHeight();
|
2024-04-29 23:19:12 +02:00
|
|
|
s32 getGpuId();
|
2023-08-16 09:34:04 +02:00
|
|
|
|
2024-03-11 12:26:33 +01:00
|
|
|
bool debugDump();
|
2024-03-25 08:26:59 +01:00
|
|
|
bool isLleLibc();
|
2024-05-16 15:58:14 +02:00
|
|
|
bool showSplash();
|
2024-05-22 20:19:42 +02:00
|
|
|
bool nullGpu();
|
2024-05-27 00:07:46 +02:00
|
|
|
bool dumpShaders();
|
2024-06-01 22:50:03 +02:00
|
|
|
bool dumpPM4();
|
2024-03-11 12:26:33 +01:00
|
|
|
|
2024-06-07 09:12:43 +02:00
|
|
|
bool vkValidationEnabled();
|
|
|
|
bool vkValidationSyncEnabled();
|
|
|
|
|
2024-06-11 04:42:21 +02:00
|
|
|
// Gui
|
|
|
|
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();
|
|
|
|
|
2024-02-23 21:57:57 +01:00
|
|
|
}; // namespace Config
|