mirror of
https://git.citron-emu.org/citron/emu
synced 2025-05-13 03:10:36 +01:00

Update fmt library to version 11.0.2 and make necessary adjustments: - Replace fmt/format.h includes with fmt/ranges.h - Add const qualifiers to formatter::format functions - Update CMake to require fmt version 11 Additional dependency updates: - Update SDL2 bundled version from 2.28.2 to 2.32.0 - Update catch2 to version 3.8.0 - Update vcpkg baseline to c82f74667287d3dc386bce81e44964370c91a289
32 lines
870 B
C++
32 lines
870 B
C++
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <fmt/ranges.h>
|
|
|
|
#include "common/fs/fs.h"
|
|
#include "common/fs/path_util.h"
|
|
#include "common/nvidia_flags.h"
|
|
|
|
namespace Common {
|
|
|
|
void ConfigureNvidiaEnvironmentFlags() {
|
|
#ifdef _WIN32
|
|
const auto nvidia_shader_dir =
|
|
Common::FS::GetCitronPath(Common::FS::CitronPath::ShaderDir) / "nvidia";
|
|
|
|
if (!Common::FS::CreateDirs(nvidia_shader_dir)) {
|
|
return;
|
|
}
|
|
|
|
const auto windows_path_string =
|
|
Common::FS::PathToUTF8String(nvidia_shader_dir.lexically_normal());
|
|
|
|
void(_putenv(fmt::format("__GL_SHADER_DISK_CACHE_PATH={}", windows_path_string).c_str()));
|
|
void(_putenv("__GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1"));
|
|
void(_putenv("__GL_THREADED_OPTIMIZATIONS=1"));
|
|
#endif
|
|
}
|
|
|
|
} // namespace Common
|