lizzie
3 months ago
committed by
crueter
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
5 changed files with
0 additions and
50 deletions
src/common/CMakeLists.txt
src/common/nvidia_flags.cpp
src/common/nvidia_flags.h
src/yuzu/main.cpp
src/yuzu_cmd/yuzu.cpp
@ -97,8 +97,6 @@ add_library(
m e m o r y _ d e t e c t . h
m e m o r y _ d e t e c t . h
m u l t i _ l e v e l _ p a g e _ t a b l e . c p p
m u l t i _ l e v e l _ p a g e _ t a b l e . c p p
m u l t i _ l e v e l _ p a g e _ t a b l e . h
m u l t i _ l e v e l _ p a g e _ t a b l e . h
n v i d i a _ f l a g s . c p p
n v i d i a _ f l a g s . h
o v e r f l o w . h
o v e r f l o w . h
p a g e _ t a b l e . c p p
p a g e _ t a b l e . c p p
p a g e _ t a b l e . h
p a g e _ t a b l e . h
@ -1,32 +0,0 @@
// 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 : : GetEdenPath ( Common : : FS : : EdenPath : : 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
@ -1,11 +0,0 @@
/ / SPDX - FileCopyrightText : Copyright 2021 yuzu Emulator Project
/ / SPDX - License - Identifier : GPL - 2.0 - or - later
# pragma once
namespace Common {
/ / / Configure platform specific flags for Nvidia ' s driver
void ConfigureNvidiaEnvironmentFlags ( ) ;
} / / namespace Common
@ -35,7 +35,6 @@
# include "applets/qt_profile_select.h"
# include "applets/qt_profile_select.h"
# include "applets/qt_software_keyboard.h"
# include "applets/qt_software_keyboard.h"
# include "applets/qt_web_browser.h"
# include "applets/qt_web_browser.h"
# include "common/nvidia_flags.h"
# include "common/settings_enums.h"
# include "common/settings_enums.h"
# include "configuration/configure_input.h"
# include "configuration/configure_input.h"
# include "configuration/configure_per_game.h"
# include "configuration/configure_per_game.h"
@ -4917,7 +4916,6 @@ int main(int argc, char* argv[]) {
# endif
# endif
Common : : DetachedTasks detached_tasks ;
Common : : DetachedTasks detached_tasks ;
Common : : ConfigureNvidiaEnvironmentFlags ( ) ;
// Init settings params
// Init settings params
QCoreApplication : : setOrganizationName ( QStringLiteral ( " eden " ) ) ;
QCoreApplication : : setOrganizationName ( QStringLiteral ( " eden " ) ) ;
@ -16,7 +16,6 @@
# include "common/detached_tasks.h"
# include "common/detached_tasks.h"
# include "common/logging/backend.h"
# include "common/logging/backend.h"
# include "common/logging/log.h"
# include "common/logging/log.h"
# include "common/nvidia_flags.h"
# include "common/scm_rev.h"
# include "common/scm_rev.h"
# include "common/scope_exit.h"
# include "common/scope_exit.h"
# include "common/settings.h"
# include "common/settings.h"
@ -334,8 +333,6 @@ int main(int argc, char** argv) {
LocalFree ( argv_w ) ;
LocalFree ( argv_w ) ;
# endif
# endif
Common : : ConfigureNvidiaEnvironmentFlags ( ) ;
if ( filepath . empty ( ) ) {
if ( filepath . empty ( ) ) {
LOG_CRITICAL ( Frontend , " Failed to load ROM: No ROM specified " ) ;
LOG_CRITICAL ( Frontend , " Failed to load ROM: No ROM specified " ) ;
return - 1 ;
return - 1 ;