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;
|
save_data_path = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::filesystem::path> getGameDirectories() {
|
const std::vector<std::filesystem::path> getGameDirectories() {
|
||||||
std::vector<std::filesystem::path> enabled_dirs;
|
std::vector<std::filesystem::path> enabled_dirs;
|
||||||
for (const auto& dir : settings_directories) {
|
for (const auto& dir : settings_directories) {
|
||||||
if (dir.enabled) {
|
if (dir.enabled) {
|
||||||
@ -496,12 +496,12 @@ std::vector<std::filesystem::path> getGameDirectories() {
|
|||||||
return enabled_dirs;
|
return enabled_dirs;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<bool> getGameDirectoriesEnabled() {
|
const std::vector<bool> getGameDirectoriesEnabled() {
|
||||||
std::vector<bool> enabled;
|
std::vector<bool> enabled_dirs;
|
||||||
for (const auto& dir : settings_directories) {
|
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() {
|
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 setGameDirectoriesEnabled(const std::filesystem::path& dir, bool enabled);
|
||||||
void setAddonDirectories(const std::filesystem::path& dir);
|
void setAddonDirectories(const std::filesystem::path& dir);
|
||||||
|
|
||||||
std::vector<std::filesystem::path> getGameDirectories();
|
const std::vector<std::filesystem::path> getGameDirectories();
|
||||||
std::vector<bool> getGameDirectoriesEnabled();
|
const std::vector<bool> getGameDirectoriesEnabled();
|
||||||
std::filesystem::path getAddonDirectory();
|
std::filesystem::path getAddonDirectory();
|
||||||
|
|
||||||
void setDefaultValues();
|
void setDefaultValues();
|
||||||
|
@ -39,10 +39,10 @@ GameInfoClass::~GameInfoClass() = default;
|
|||||||
|
|
||||||
void GameInfoClass::GetGameInfo(QWidget* parent) {
|
void GameInfoClass::GetGameInfo(QWidget* parent) {
|
||||||
QStringList filePaths;
|
QStringList filePaths;
|
||||||
for (const auto& installLoc : Config::getGameDirectories()) {
|
for (const auto& directoriesLoc : Config::getGameDirectories()) {
|
||||||
QString Directories;
|
QString directories;
|
||||||
Common::FS::PathToQString(Directories, installLoc);
|
Common::FS::PathToQString(directories, directoriesLoc);
|
||||||
ScanDirectoryRecursively(Directories, filePaths, 0);
|
ScanDirectoryRecursively(directories, filePaths, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_games = QtConcurrent::mapped(filePaths, [&](const QString& path) {
|
m_games = QtConcurrent::mapped(filePaths, [&](const QString& path) {
|
||||||
|
@ -826,7 +826,7 @@ void SettingsDialog::ResetInstallFolders() {
|
|||||||
if (data.contains("GUI")) {
|
if (data.contains("GUI")) {
|
||||||
const toml::value& gui = data.at("GUI");
|
const toml::value& gui = data.at("GUI");
|
||||||
const auto directories_array =
|
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;
|
std::vector<bool> directories_enabled;
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user