mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 18:15:14 +00:00
test to fix sdl
This commit is contained in:
parent
bba608b1ca
commit
cb954f4a05
@ -486,7 +486,7 @@ void setSaveDataPath(const std::filesystem::path& path) {
|
||||
save_data_path = path;
|
||||
}
|
||||
|
||||
std::vector<std::filesystem::path> getGameDirectories() {
|
||||
const std::vector<std::filesystem::path> getGameDirectories() {
|
||||
std::vector<std::filesystem::path> enabled_dirs;
|
||||
for (const auto& dir : settings_directories) {
|
||||
if (dir.enabled) {
|
||||
@ -496,12 +496,12 @@ std::vector<std::filesystem::path> getGameDirectories() {
|
||||
return enabled_dirs;
|
||||
}
|
||||
|
||||
std::vector<bool> getGameDirectoriesEnabled() {
|
||||
std::vector<bool> enabled;
|
||||
const std::vector<bool> getGameDirectoriesEnabled() {
|
||||
std::vector<bool> enabled_dirs;
|
||||
for (const auto& dir : settings_directories) {
|
||||
enabled.push_back(dir.enabled);
|
||||
enabled_dirs.push_back(dir.enabled);
|
||||
}
|
||||
return enabled;
|
||||
return enabled_dirs;
|
||||
}
|
||||
|
||||
std::filesystem::path getAddonDirectory() {
|
||||
|
@ -121,8 +121,8 @@ void removeGameDirectories(const std::filesystem::path& dir);
|
||||
void setGameDirectoriesEnabled(const std::filesystem::path& dir, bool enabled);
|
||||
void setAddonDirectories(const std::filesystem::path& dir);
|
||||
|
||||
std::vector<std::filesystem::path> getGameDirectories();
|
||||
std::vector<bool> getGameDirectoriesEnabled();
|
||||
const std::vector<std::filesystem::path> getGameDirectories();
|
||||
const std::vector<bool> getGameDirectoriesEnabled();
|
||||
std::filesystem::path getAddonDirectory();
|
||||
|
||||
void setDefaultValues();
|
||||
|
@ -39,10 +39,10 @@ GameInfoClass::~GameInfoClass() = default;
|
||||
|
||||
void GameInfoClass::GetGameInfo(QWidget* parent) {
|
||||
QStringList filePaths;
|
||||
for (const auto& installLoc : Config::getGameDirectories()) {
|
||||
QString Directories;
|
||||
Common::FS::PathToQString(Directories, installLoc);
|
||||
ScanDirectoryRecursively(Directories, filePaths, 0);
|
||||
for (const auto& directoriesLoc : Config::getGameDirectories()) {
|
||||
QString directories;
|
||||
Common::FS::PathToQString(directories, directoriesLoc);
|
||||
ScanDirectoryRecursively(directories, filePaths, 0);
|
||||
}
|
||||
|
||||
m_games = QtConcurrent::mapped(filePaths, [&](const QString& path) {
|
||||
|
@ -826,7 +826,7 @@ void SettingsDialog::ResetInstallFolders() {
|
||||
if (data.contains("GUI")) {
|
||||
const toml::value& gui = data.at("GUI");
|
||||
const auto directories_array =
|
||||
toml::find_or<std::vector<std::u8string>>(gui, "directories", {});
|
||||
toml::find_or<std::vector<std::u8string>>(gui, "installDirs", {});
|
||||
|
||||
std::vector<bool> directories_enabled;
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user