- In commit b3facaa6bb, the copyright header was
updated to include "Citron Homebrew Project" across multiple files, regardless
of whether any contributions were made.
- This commit removes the incorrect attribution and reverts the copyright header
to its previous state.
- Copyright attribution should only be added when meaningful contributions have
been made to the file.
- This commit ensures proper compliance with copyright standards and maintains
correct attribution to the respective contributors.
- Special thanks to Tachi for pointing out the need for these corrections and
ensuring that proper attribution practices are followed.
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/format.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
|