diff options
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/fs/file.cpp | 4 | ||||
| -rw-r--r-- | src/common/fs/file.h | 3 | ||||
| -rw-r--r-- | src/common/host_memory.cpp | 2 | ||||
| -rw-r--r-- | src/common/settings.cpp | 3 | ||||
| -rw-r--r-- | src/common/settings.h | 4 |
5 files changed, 9 insertions, 7 deletions
diff --git a/src/common/fs/file.cpp b/src/common/fs/file.cpp index c84f31f3e..710e88b39 100644 --- a/src/common/fs/file.cpp +++ b/src/common/fs/file.cpp | |||
| @@ -183,10 +183,6 @@ size_t WriteStringToFile(const std::filesystem::path& path, FileType type, | |||
| 183 | 183 | ||
| 184 | size_t AppendStringToFile(const std::filesystem::path& path, FileType type, | 184 | size_t AppendStringToFile(const std::filesystem::path& path, FileType type, |
| 185 | std::string_view string) { | 185 | std::string_view string) { |
| 186 | if (!Exists(path)) { | ||
| 187 | return WriteStringToFile(path, type, string); | ||
| 188 | } | ||
| 189 | |||
| 190 | if (!IsFile(path)) { | 186 | if (!IsFile(path)) { |
| 191 | return 0; | 187 | return 0; |
| 192 | } | 188 | } |
diff --git a/src/common/fs/file.h b/src/common/fs/file.h index 50e270c5b..0f10b6003 100644 --- a/src/common/fs/file.h +++ b/src/common/fs/file.h | |||
| @@ -71,7 +71,7 @@ template <typename Path> | |||
| 71 | 71 | ||
| 72 | /** | 72 | /** |
| 73 | * Writes a string to a file at path and returns the number of characters successfully written. | 73 | * Writes a string to a file at path and returns the number of characters successfully written. |
| 74 | * If an file already exists at path, its contents will be erased. | 74 | * If a file already exists at path, its contents will be erased. |
| 75 | * If the filesystem object at path is not a file, this function returns 0. | 75 | * If the filesystem object at path is not a file, this function returns 0. |
| 76 | * | 76 | * |
| 77 | * @param path Filesystem path | 77 | * @param path Filesystem path |
| @@ -95,7 +95,6 @@ template <typename Path> | |||
| 95 | 95 | ||
| 96 | /** | 96 | /** |
| 97 | * Appends a string to a file at path and returns the number of characters successfully written. | 97 | * Appends a string to a file at path and returns the number of characters successfully written. |
| 98 | * If a file does not exist at path, WriteStringToFile is called instead. | ||
| 99 | * If the filesystem object at path is not a file, this function returns 0. | 98 | * If the filesystem object at path is not a file, this function returns 0. |
| 100 | * | 99 | * |
| 101 | * @param path Filesystem path | 100 | * @param path Filesystem path |
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp index 8bd70abc7..2a5a7596c 100644 --- a/src/common/host_memory.cpp +++ b/src/common/host_memory.cpp | |||
| @@ -34,7 +34,7 @@ constexpr size_t HugePageSize = 0x200000; | |||
| 34 | 34 | ||
| 35 | // Manually imported for MinGW compatibility | 35 | // Manually imported for MinGW compatibility |
| 36 | #ifndef MEM_RESERVE_PLACEHOLDER | 36 | #ifndef MEM_RESERVE_PLACEHOLDER |
| 37 | #define MEM_RESERVE_PLACEHOLDER 0x0004000 | 37 | #define MEM_RESERVE_PLACEHOLDER 0x00040000 |
| 38 | #endif | 38 | #endif |
| 39 | #ifndef MEM_REPLACE_PLACEHOLDER | 39 | #ifndef MEM_REPLACE_PLACEHOLDER |
| 40 | #define MEM_REPLACE_PLACEHOLDER 0x00004000 | 40 | #define MEM_REPLACE_PLACEHOLDER 0x00004000 |
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 360e878d6..6397308ec 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -55,6 +55,7 @@ void LogSettings() { | |||
| 55 | log_setting("Renderer_UseAsynchronousGpuEmulation", | 55 | log_setting("Renderer_UseAsynchronousGpuEmulation", |
| 56 | values.use_asynchronous_gpu_emulation.GetValue()); | 56 | values.use_asynchronous_gpu_emulation.GetValue()); |
| 57 | log_setting("Renderer_UseNvdecEmulation", values.use_nvdec_emulation.GetValue()); | 57 | log_setting("Renderer_UseNvdecEmulation", values.use_nvdec_emulation.GetValue()); |
| 58 | log_setting("Renderer_AccelerateASTC", values.accelerate_astc.GetValue()); | ||
| 58 | log_setting("Renderer_UseVsync", values.use_vsync.GetValue()); | 59 | log_setting("Renderer_UseVsync", values.use_vsync.GetValue()); |
| 59 | log_setting("Renderer_UseAssemblyShaders", values.use_assembly_shaders.GetValue()); | 60 | log_setting("Renderer_UseAssemblyShaders", values.use_assembly_shaders.GetValue()); |
| 60 | log_setting("Renderer_UseAsynchronousShaders", values.use_asynchronous_shaders.GetValue()); | 61 | log_setting("Renderer_UseAsynchronousShaders", values.use_asynchronous_shaders.GetValue()); |
| @@ -121,6 +122,7 @@ void RestoreGlobalState(bool is_powered_on) { | |||
| 121 | values.cpu_accuracy.SetGlobal(true); | 122 | values.cpu_accuracy.SetGlobal(true); |
| 122 | values.cpuopt_unsafe_unfuse_fma.SetGlobal(true); | 123 | values.cpuopt_unsafe_unfuse_fma.SetGlobal(true); |
| 123 | values.cpuopt_unsafe_reduce_fp_error.SetGlobal(true); | 124 | values.cpuopt_unsafe_reduce_fp_error.SetGlobal(true); |
| 125 | values.cpuopt_unsafe_ignore_standard_fpcr.SetGlobal(true); | ||
| 124 | values.cpuopt_unsafe_inaccurate_nan.SetGlobal(true); | 126 | values.cpuopt_unsafe_inaccurate_nan.SetGlobal(true); |
| 125 | values.cpuopt_unsafe_fastmem_check.SetGlobal(true); | 127 | values.cpuopt_unsafe_fastmem_check.SetGlobal(true); |
| 126 | 128 | ||
| @@ -135,6 +137,7 @@ void RestoreGlobalState(bool is_powered_on) { | |||
| 135 | values.gpu_accuracy.SetGlobal(true); | 137 | values.gpu_accuracy.SetGlobal(true); |
| 136 | values.use_asynchronous_gpu_emulation.SetGlobal(true); | 138 | values.use_asynchronous_gpu_emulation.SetGlobal(true); |
| 137 | values.use_nvdec_emulation.SetGlobal(true); | 139 | values.use_nvdec_emulation.SetGlobal(true); |
| 140 | values.accelerate_astc.SetGlobal(true); | ||
| 138 | values.use_vsync.SetGlobal(true); | 141 | values.use_vsync.SetGlobal(true); |
| 139 | values.use_assembly_shaders.SetGlobal(true); | 142 | values.use_assembly_shaders.SetGlobal(true); |
| 140 | values.use_asynchronous_shaders.SetGlobal(true); | 143 | values.use_asynchronous_shaders.SetGlobal(true); |
diff --git a/src/common/settings.h b/src/common/settings.h index 1af8c5ac2..85554eac4 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -129,6 +129,7 @@ struct Values { | |||
| 129 | 129 | ||
| 130 | Setting<bool> cpuopt_unsafe_unfuse_fma; | 130 | Setting<bool> cpuopt_unsafe_unfuse_fma; |
| 131 | Setting<bool> cpuopt_unsafe_reduce_fp_error; | 131 | Setting<bool> cpuopt_unsafe_reduce_fp_error; |
| 132 | Setting<bool> cpuopt_unsafe_ignore_standard_fpcr; | ||
| 132 | Setting<bool> cpuopt_unsafe_inaccurate_nan; | 133 | Setting<bool> cpuopt_unsafe_inaccurate_nan; |
| 133 | Setting<bool> cpuopt_unsafe_fastmem_check; | 134 | Setting<bool> cpuopt_unsafe_fastmem_check; |
| 134 | 135 | ||
| @@ -147,7 +148,9 @@ struct Values { | |||
| 147 | Setting<GPUAccuracy> gpu_accuracy; | 148 | Setting<GPUAccuracy> gpu_accuracy; |
| 148 | Setting<bool> use_asynchronous_gpu_emulation; | 149 | Setting<bool> use_asynchronous_gpu_emulation; |
| 149 | Setting<bool> use_nvdec_emulation; | 150 | Setting<bool> use_nvdec_emulation; |
| 151 | Setting<bool> accelerate_astc; | ||
| 150 | Setting<bool> use_vsync; | 152 | Setting<bool> use_vsync; |
| 153 | Setting<bool> disable_fps_limit; | ||
| 151 | Setting<bool> use_assembly_shaders; | 154 | Setting<bool> use_assembly_shaders; |
| 152 | Setting<bool> use_asynchronous_shaders; | 155 | Setting<bool> use_asynchronous_shaders; |
| 153 | Setting<bool> use_fast_gpu_time; | 156 | Setting<bool> use_fast_gpu_time; |
| @@ -218,6 +221,7 @@ struct Values { | |||
| 218 | std::string program_args; | 221 | std::string program_args; |
| 219 | bool dump_exefs; | 222 | bool dump_exefs; |
| 220 | bool dump_nso; | 223 | bool dump_nso; |
| 224 | bool enable_fs_access_log; | ||
| 221 | bool reporting_services; | 225 | bool reporting_services; |
| 222 | bool quest_flag; | 226 | bool quest_flag; |
| 223 | bool disable_macro_jit; | 227 | bool disable_macro_jit; |