mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Various miscelaneous changes (#6496)
This commit is contained in:
		
							parent
							
								
									41f13456c0
								
							
						
					
					
						commit
						34de77d429
					
				
					 74 changed files with 44 additions and 81 deletions
				
			
		|  | @ -2,7 +2,6 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <cstring> |  | ||||||
| #include <string> | #include <string> | ||||||
| 
 | 
 | ||||||
| #include "common/common_types.h" | #include "common/common_types.h" | ||||||
|  |  | ||||||
|  | @ -4,7 +4,6 @@ | ||||||
| 
 | 
 | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
| #include <map> |  | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <string> | #include <string> | ||||||
| #include "core/frontend/input.h" | #include "core/frontend/input.h" | ||||||
|  |  | ||||||
|  | @ -3,8 +3,6 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <iostream> |  | ||||||
| #include <regex> |  | ||||||
| #include <thread> | #include <thread> | ||||||
| 
 | 
 | ||||||
| #include <android/api-level.h> | #include <android/api-level.h> | ||||||
|  | @ -666,6 +664,7 @@ void Java_org_citra_citra_1emu_NativeLibrary_InstallCIAS(JNIEnv* env, [[maybe_un | ||||||
|                                                          jobjectArray path) { |                                                          jobjectArray path) { | ||||||
|     const jsize count{env->GetArrayLength(path)}; |     const jsize count{env->GetArrayLength(path)}; | ||||||
|     std::vector<std::string> paths; |     std::vector<std::string> paths; | ||||||
|  |     paths.reserve(count); | ||||||
|     for (jsize idx{0}; idx < count; ++idx) { |     for (jsize idx{0}; idx < count; ++idx) { | ||||||
|         paths.emplace_back( |         paths.emplace_back( | ||||||
|             GetJString(env, static_cast<jstring>(env->GetObjectArrayElement(path, idx)))); |             GetJString(env, static_cast<jstring>(env->GetObjectArrayElement(path, idx)))); | ||||||
|  |  | ||||||
|  | @ -69,6 +69,7 @@ Dsp1::Dsp1(const std::vector<u8>& raw) { | ||||||
|     Header header; |     Header header; | ||||||
|     std::memcpy(&header, raw.data(), sizeof(header)); |     std::memcpy(&header, raw.data(), sizeof(header)); | ||||||
|     recv_data_on_start = header.recv_data_on_start != 0; |     recv_data_on_start = header.recv_data_on_start != 0; | ||||||
|  |     segments.reserve(header.num_segments); | ||||||
|     for (u32 i = 0; i < header.num_segments; ++i) { |     for (u32 i = 0; i < header.num_segments; ++i) { | ||||||
|         Segment segment; |         Segment segment; | ||||||
|         segment.data = |         segment.data = | ||||||
|  |  | ||||||
|  | @ -6,7 +6,6 @@ | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <sstream> | #include <sstream> | ||||||
| #include <type_traits> | #include <type_traits> | ||||||
| #include <unordered_map> |  | ||||||
| #include <SDL.h> | #include <SDL.h> | ||||||
| #include <inih/cpp/INIReader.h> | #include <inih/cpp/INIReader.h> | ||||||
| #include "citra/config.h" | #include "citra/config.h" | ||||||
|  |  | ||||||
|  | @ -4,8 +4,8 @@ | ||||||
| 
 | 
 | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
| #include <memory> |  | ||||||
| #include <utility> | #include <utility> | ||||||
|  | #include "common/common_types.h" | ||||||
| #include "core/frontend/emu_window.h" | #include "core/frontend/emu_window.h" | ||||||
| 
 | 
 | ||||||
| struct SDL_Window; | struct SDL_Window; | ||||||
|  |  | ||||||
|  | @ -10,6 +10,7 @@ | ||||||
| #include <glad/glad.h> | #include <glad/glad.h> | ||||||
| #include "citra/emu_window/emu_window_sdl2_gl.h" | #include "citra/emu_window/emu_window_sdl2_gl.h" | ||||||
| #include "common/scm_rev.h" | #include "common/scm_rev.h" | ||||||
|  | #include "common/settings.h" | ||||||
| #include "video_core/renderer_base.h" | #include "video_core/renderer_base.h" | ||||||
| #include "video_core/video_core.h" | #include "video_core/video_core.h" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -11,6 +11,7 @@ | ||||||
| #include "citra/emu_window/emu_window_sdl2_sw.h" | #include "citra/emu_window/emu_window_sdl2_sw.h" | ||||||
| #include "common/color.h" | #include "common/color.h" | ||||||
| #include "common/scm_rev.h" | #include "common/scm_rev.h" | ||||||
|  | #include "common/settings.h" | ||||||
| #include "core/frontend/emu_window.h" | #include "core/frontend/emu_window.h" | ||||||
| #include "core/hw/gpu.h" | #include "core/hw/gpu.h" | ||||||
| #include "core/memory.h" | #include "core/memory.h" | ||||||
|  |  | ||||||
|  | @ -4,7 +4,6 @@ | ||||||
| 
 | 
 | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
| #include <unordered_map> |  | ||||||
| #include <QDialog> | #include <QDialog> | ||||||
| #include "core/frontend/applets/mii_selector.h" | #include "core/frontend/applets/mii_selector.h" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
|  | #include <unordered_map> | ||||||
| #include <QDialogButtonBox> | #include <QDialogButtonBox> | ||||||
| #include <QLabel> | #include <QLabel> | ||||||
| #include <QLineEdit> | #include <QLineEdit> | ||||||
|  |  | ||||||
|  | @ -4,7 +4,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <array> | #include <array> | ||||||
| #include <unordered_map> |  | ||||||
| #include <QKeySequence> | #include <QKeySequence> | ||||||
| #include <QSettings> | #include <QSettings> | ||||||
| #include "citra_qt/configuration/config.h" | #include "citra_qt/configuration/config.h" | ||||||
|  |  | ||||||
|  | @ -9,7 +9,6 @@ | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <optional> | #include <optional> | ||||||
| #include <string> | #include <string> | ||||||
| #include <unordered_map> |  | ||||||
| #include <QKeySequence> | #include <QKeySequence> | ||||||
| #include <QWidget> | #include <QWidget> | ||||||
| #include "common/param_package.h" | #include "common/param_package.h" | ||||||
|  |  | ||||||
|  | @ -4,9 +4,7 @@ | ||||||
| 
 | 
 | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
| #include <map> |  | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <unordered_map> |  | ||||||
| #include <QDockWidget> | #include <QDockWidget> | ||||||
| #include "core/hle/kernel/ipc_debugger/recorder.h" | #include "core/hle/kernel/ipc_debugger/recorder.h" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -214,6 +214,7 @@ void MicroProfileDrawLine2D(u32 vertices_length, float* vertices, u32 hex_color) | ||||||
|     // the allocation across calls.
 |     // the allocation across calls.
 | ||||||
|     static std::vector<QPointF> point_buf; |     static std::vector<QPointF> point_buf; | ||||||
| 
 | 
 | ||||||
|  |     point_buf.reserve(vertices_length); | ||||||
|     for (u32 i = 0; i < vertices_length; ++i) { |     for (u32 i = 0; i < vertices_length; ++i) { | ||||||
|         point_buf.emplace_back(vertices[i * 2 + 0], vertices[i * 2 + 1]); |         point_buf.emplace_back(vertices[i * 2 + 0], vertices[i * 2 + 1]); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  | @ -77,8 +77,9 @@ std::size_t WaitTreeItem::Row() const { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| std::vector<std::unique_ptr<WaitTreeThread>> WaitTreeItem::MakeThreadItemList() { | std::vector<std::unique_ptr<WaitTreeThread>> WaitTreeItem::MakeThreadItemList() { | ||||||
|     u32 num_cores = Core::GetNumCores(); |     const u32 num_cores = Core::GetNumCores(); | ||||||
|     std::vector<std::unique_ptr<WaitTreeThread>> item_list; |     std::vector<std::unique_ptr<WaitTreeThread>> item_list; | ||||||
|  |     item_list.reserve(num_cores); | ||||||
|     for (u32 i = 0; i < num_cores; ++i) { |     for (u32 i = 0; i < num_cores; ++i) { | ||||||
|         const auto& threads = |         const auto& threads = | ||||||
|             Core::System::GetInstance().Kernel().GetThreadManager(i).GetThreadList(); |             Core::System::GetInstance().Kernel().GetThreadManager(i).GetThreadList(); | ||||||
|  |  | ||||||
|  | @ -32,6 +32,7 @@ | ||||||
| #include "common/settings.h" | #include "common/settings.h" | ||||||
| #include "core/file_sys/archive_extsavedata.h" | #include "core/file_sys/archive_extsavedata.h" | ||||||
| #include "core/file_sys/archive_source_sd_savedata.h" | #include "core/file_sys/archive_source_sd_savedata.h" | ||||||
|  | #include "core/hle/service/am/am.h" | ||||||
| #include "core/hle/service/fs/archive.h" | #include "core/hle/service/fs/archive.h" | ||||||
| #include "qcursor.h" | #include "qcursor.h" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -5,10 +5,8 @@ | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
| #include <atomic> | #include <atomic> | ||||||
| #include <map> |  | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <string> | #include <string> | ||||||
| #include <unordered_map> |  | ||||||
| #include <QList> | #include <QList> | ||||||
| #include <QObject> | #include <QObject> | ||||||
| #include <QRunnable> | #include <QRunnable> | ||||||
|  |  | ||||||
|  | @ -3,8 +3,6 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <clocale> | #include <clocale> | ||||||
| #include <filesystem> |  | ||||||
| #include <fstream> |  | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <thread> | #include <thread> | ||||||
| #include <QDesktopWidget> | #include <QDesktopWidget> | ||||||
|  | @ -87,6 +85,7 @@ | ||||||
| #include "core/file_sys/archive_source_sd_savedata.h" | #include "core/file_sys/archive_source_sd_savedata.h" | ||||||
| #include "core/frontend/applets/default_applets.h" | #include "core/frontend/applets/default_applets.h" | ||||||
| #include "core/gdbstub/gdbstub.h" | #include "core/gdbstub/gdbstub.h" | ||||||
|  | #include "core/hle/service/am/am.h" | ||||||
| #include "core/hle/service/cfg/cfg.h" | #include "core/hle/service/cfg/cfg.h" | ||||||
| #include "core/hle/service/fs/archive.h" | #include "core/hle/service/fs/archive.h" | ||||||
| #include "core/hle/service/nfc/nfc.h" | #include "core/hle/service/nfc/nfc.h" | ||||||
|  |  | ||||||
|  | @ -13,7 +13,6 @@ | ||||||
| #include "citra_qt/hotkeys.h" | #include "citra_qt/hotkeys.h" | ||||||
| #include "common/announce_multiplayer_room.h" | #include "common/announce_multiplayer_room.h" | ||||||
| #include "core/core.h" | #include "core/core.h" | ||||||
| #include "core/hle/service/am/am.h" |  | ||||||
| #include "core/savestate.h" | #include "core/savestate.h" | ||||||
| 
 | 
 | ||||||
| #ifdef __unix__ | #ifdef __unix__ | ||||||
|  | @ -58,6 +57,10 @@ namespace Ui { | ||||||
| class MainWindow; | class MainWindow; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | namespace Service::AM { | ||||||
|  | enum class InstallStatus : u32; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| class GMainWindow : public QMainWindow { | class GMainWindow : public QMainWindow { | ||||||
|     Q_OBJECT |     Q_OBJECT | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -141,7 +141,8 @@ std::vector<std::string> GetFilesName(const std::string& filepath) { | ||||||
|     jstring j_filepath = env->NewStringUTF(filepath.c_str()); |     jstring j_filepath = env->NewStringUTF(filepath.c_str()); | ||||||
|     auto j_object = |     auto j_object = | ||||||
|         (jobjectArray)env->CallStaticObjectMethod(native_library, get_files_name, j_filepath); |         (jobjectArray)env->CallStaticObjectMethod(native_library, get_files_name, j_filepath); | ||||||
|     jsize j_size = env->GetArrayLength(j_object); |     const jsize j_size = env->GetArrayLength(j_object); | ||||||
|  |     vector.reserve(j_size); | ||||||
|     for (int i = 0; i < j_size; i++) { |     for (int i = 0; i < j_size; i++) { | ||||||
|         auto string = (jstring)(env->GetObjectArrayElement(j_object, i)); |         auto string = (jstring)(env->GetObjectArrayElement(j_object, i)); | ||||||
|         vector.emplace_back(env->GetStringUTFChars(string, nullptr)); |         vector.emplace_back(env->GetStringUTFChars(string, nullptr)); | ||||||
|  |  | ||||||
|  | @ -33,7 +33,6 @@ | ||||||
| #include <cstddef> | #include <cstddef> | ||||||
| #include <limits> | #include <limits> | ||||||
| #include <type_traits> | #include <type_traits> | ||||||
| #include "common/common_funcs.h" |  | ||||||
| #include "common/swap.h" | #include "common/swap.h" | ||||||
| 
 | 
 | ||||||
| /*
 | /*
 | ||||||
|  |  | ||||||
|  | @ -3,6 +3,7 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <array> | #include <array> | ||||||
|  | #include <fstream> | ||||||
| #include <limits> | #include <limits> | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <sstream> | #include <sstream> | ||||||
|  |  | ||||||
|  | @ -6,8 +6,8 @@ | ||||||
| 
 | 
 | ||||||
| #include <array> | #include <array> | ||||||
| #include <cstdio> | #include <cstdio> | ||||||
| #include <fstream> |  | ||||||
| #include <functional> | #include <functional> | ||||||
|  | #include <ios> | ||||||
| #include <limits> | #include <limits> | ||||||
| #include <optional> | #include <optional> | ||||||
| #include <string> | #include <string> | ||||||
|  |  | ||||||
|  | @ -3,12 +3,10 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <atomic> |  | ||||||
| #include <chrono> | #include <chrono> | ||||||
| #include <condition_variable> | #include <condition_variable> | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <mutex> | #include <mutex> | ||||||
| #include <regex> |  | ||||||
| #include <thread> | #include <thread> | ||||||
| #include <vector> | #include <vector> | ||||||
| #ifdef _WIN32 | #ifdef _WIN32 | ||||||
|  |  | ||||||
|  | @ -5,7 +5,6 @@ | ||||||
| #define CITRA_IGNORE_EXIT(x) | #define CITRA_IGNORE_EXIT(x) | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <cinttypes> |  | ||||||
| #include <cstdio> | #include <cstdio> | ||||||
| #include "common/common_types.h" | #include "common/common_types.h" | ||||||
| #include "common/logging/log.h" | #include "common/logging/log.h" | ||||||
|  |  | ||||||
|  | @ -32,7 +32,6 @@ | ||||||
| 
 | 
 | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
| #include <cstdio> |  | ||||||
| #include "common/common_types.h" | #include "common/common_types.h" | ||||||
| #include "core/arm/skyeye_common/armstate.h" | #include "core/arm/skyeye_common/armstate.h" | ||||||
| #include "core/arm/skyeye_common/vfp/asm_vfp.h" | #include "core/arm/skyeye_common/vfp/asm_vfp.h" | ||||||
|  |  | ||||||
|  | @ -2,7 +2,6 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <fstream> |  | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <stdexcept> | #include <stdexcept> | ||||||
| #include <utility> | #include <utility> | ||||||
|  | @ -377,6 +376,7 @@ System::ResultStatus System::Init(Frontend::EmuWindow& emu_window, | ||||||
|         *memory, *timing, [this] { PrepareReschedule(); }, system_mode, num_cores, n3ds_mode); |         *memory, *timing, [this] { PrepareReschedule(); }, system_mode, num_cores, n3ds_mode); | ||||||
| 
 | 
 | ||||||
|     exclusive_monitor = MakeExclusiveMonitor(*memory, num_cores); |     exclusive_monitor = MakeExclusiveMonitor(*memory, num_cores); | ||||||
|  |     cpu_cores.reserve(num_cores); | ||||||
|     if (Settings::values.use_cpu_jit) { |     if (Settings::values.use_cpu_jit) { | ||||||
| #if CITRA_ARCH(x86_64) || CITRA_ARCH(arm64) | #if CITRA_ARCH(x86_64) || CITRA_ARCH(arm64) | ||||||
|         for (u32 i = 0; i < num_cores; ++i) { |         for (u32 i = 0; i < num_cores; ++i) { | ||||||
|  |  | ||||||
|  | @ -3,7 +3,6 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <cinttypes> |  | ||||||
| #include <tuple> | #include <tuple> | ||||||
| #include "common/assert.h" | #include "common/assert.h" | ||||||
| #include "common/logging/log.h" | #include "common/logging/log.h" | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <unordered_set> | #include <unordered_map> | ||||||
| #include "common/assert.h" | #include "common/assert.h" | ||||||
| #include "common/file_util.h" | #include "common/file_util.h" | ||||||
| #include "common/logging/log.h" | #include "common/logging/log.h" | ||||||
|  |  | ||||||
|  | @ -3,7 +3,6 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <cinttypes> |  | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <utility> | #include <utility> | ||||||
| #include <vector> | #include <vector> | ||||||
|  |  | ||||||
|  | @ -3,7 +3,6 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <array> | #include <array> | ||||||
| #include <cinttypes> |  | ||||||
| #include "common/archives.h" | #include "common/archives.h" | ||||||
| #include "common/common_types.h" | #include "common/common_types.h" | ||||||
| #include "common/logging/log.h" | #include "common/logging/log.h" | ||||||
|  |  | ||||||
|  | @ -2,7 +2,6 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <cinttypes> |  | ||||||
| #include <cryptopp/sha.h> | #include <cryptopp/sha.h> | ||||||
| #include "common/alignment.h" | #include "common/alignment.h" | ||||||
| #include "common/file_util.h" | #include "common/file_util.h" | ||||||
|  |  | ||||||
|  | @ -3,7 +3,6 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <cstdio> |  | ||||||
| #include <memory> | #include <memory> | ||||||
| #include "common/archives.h" | #include "common/archives.h" | ||||||
| #include "common/common_types.h" | #include "common/common_types.h" | ||||||
|  |  | ||||||
|  | @ -2,7 +2,6 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <cinttypes> |  | ||||||
| #include <cstring> | #include <cstring> | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <cryptopp/aes.h> | #include <cryptopp/aes.h> | ||||||
|  |  | ||||||
|  | @ -112,6 +112,7 @@ Loader::ResultStatus FileSys::Plugin3GXLoader::Load( | ||||||
|                          header.targets.count * sizeof(u32))) { |                          header.targets.count * sizeof(u32))) { | ||||||
|             return Loader::ResultStatus::Error; |             return Loader::ResultStatus::Error; | ||||||
|         } |         } | ||||||
|  |         compatible_TID.reserve(header.targets.count); // compatible_TID should be empty right now
 | ||||||
|         for (u32 i = 0; i < u32(header.targets.count); i++) { |         for (u32 i = 0; i < u32(header.targets.count); i++) { | ||||||
|             compatible_TID.push_back( |             compatible_TID.push_back( | ||||||
|                 u32_le(*reinterpret_cast<u32*>(raw_TID_data.data() + i * sizeof(u32)))); |                 u32_le(*reinterpret_cast<u32*>(raw_TID_data.data() + i * sizeof(u32)))); | ||||||
|  |  | ||||||
|  | @ -2,7 +2,6 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <cinttypes> |  | ||||||
| #include <cryptopp/sha.h> | #include <cryptopp/sha.h> | ||||||
| #include "common/alignment.h" | #include "common/alignment.h" | ||||||
| #include "common/file_util.h" | #include "common/file_util.h" | ||||||
|  |  | ||||||
|  | @ -4,7 +4,6 @@ | ||||||
| 
 | 
 | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
| #include <unordered_map> |  | ||||||
| #include <utility> | #include <utility> | ||||||
| #include <vector> | #include <vector> | ||||||
| #include "common/assert.h" | #include "common/assert.h" | ||||||
|  |  | ||||||
|  | @ -5,7 +5,10 @@ | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
| #include "common/math_util.h" | #include "common/math_util.h" | ||||||
| #include "common/settings.h" | 
 | ||||||
|  | namespace Settings { | ||||||
|  | enum class LayoutOption : u32; | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| namespace Layout { | namespace Layout { | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -6,7 +6,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <atomic> | #include <atomic> | ||||||
| #include <climits> |  | ||||||
| #include <csignal> | #include <csignal> | ||||||
| #include <cstdarg> | #include <cstdarg> | ||||||
| #include <cstdio> | #include <cstdio> | ||||||
|  |  | ||||||
|  | @ -18,23 +18,6 @@ | ||||||
| #include "core/hle/applets/swkbd.h" | #include "core/hle/applets/swkbd.h" | ||||||
| #include "core/hle/result.h" | #include "core/hle/result.h" | ||||||
| 
 | 
 | ||||||
| ////////////////////////////////////////////////////////////////////////////////////////////////////
 |  | ||||||
| 
 |  | ||||||
| // Specializes std::hash for AppletId, so that we can use it in std::unordered_map.
 |  | ||||||
| // Workaround for libstdc++ bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60970
 |  | ||||||
| namespace std { |  | ||||||
| template <> |  | ||||||
| struct hash<Service::APT::AppletId> { |  | ||||||
|     typedef Service::APT::AppletId argument_type; |  | ||||||
|     typedef std::size_t result_type; |  | ||||||
| 
 |  | ||||||
|     result_type operator()(const argument_type& id_code) const { |  | ||||||
|         typedef std::underlying_type<argument_type>::type Type; |  | ||||||
|         return std::hash<Type>()(static_cast<Type>(id_code)); |  | ||||||
|     } |  | ||||||
| }; |  | ||||||
| } // namespace std
 |  | ||||||
| 
 |  | ||||||
| namespace HLE::Applets { | namespace HLE::Applets { | ||||||
| 
 | 
 | ||||||
| static std::unordered_map<Service::APT::AppletId, std::shared_ptr<Applet>> applets; | static std::unordered_map<Service::APT::AppletId, std::shared_ptr<Applet>> applets; | ||||||
|  |  | ||||||
|  | @ -3,7 +3,6 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <map> |  | ||||||
| #include <vector> | #include <vector> | ||||||
| #include "common/archives.h" | #include "common/archives.h" | ||||||
| #include "common/assert.h" | #include "common/assert.h" | ||||||
|  |  | ||||||
|  | @ -3,8 +3,6 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <cinttypes> |  | ||||||
| #include <map> |  | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <utility> | #include <utility> | ||||||
| #include <vector> | #include <vector> | ||||||
|  |  | ||||||
|  | @ -2,7 +2,6 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <map> |  | ||||||
| #include <vector> | #include <vector> | ||||||
| #include "common/archives.h" | #include "common/archives.h" | ||||||
| #include "common/assert.h" | #include "common/assert.h" | ||||||
|  |  | ||||||
|  | @ -4,8 +4,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <array> | #include <array> | ||||||
| #include <cinttypes> |  | ||||||
| #include <map> |  | ||||||
| #include <fmt/format.h> | #include <fmt/format.h> | ||||||
| #include "common/logging/log.h" | #include "common/logging/log.h" | ||||||
| #include "common/microprofile.h" | #include "common/microprofile.h" | ||||||
|  |  | ||||||
|  | @ -4,7 +4,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <list> | #include <list> | ||||||
| #include <unordered_map> |  | ||||||
| #include <vector> | #include <vector> | ||||||
| #include <boost/serialization/string.hpp> | #include <boost/serialization/string.hpp> | ||||||
| #include "common/archives.h" | #include "common/archives.h" | ||||||
|  |  | ||||||
|  | @ -2,8 +2,6 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <cinttypes> |  | ||||||
| #include <unordered_map> |  | ||||||
| #include "common/archives.h" | #include "common/archives.h" | ||||||
| #include "common/assert.h" | #include "common/assert.h" | ||||||
| #include "common/logging/log.h" | #include "common/logging/log.h" | ||||||
|  |  | ||||||
|  | @ -3,7 +3,6 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <cinttypes> |  | ||||||
| #include <cstddef> | #include <cstddef> | ||||||
| #include <cstring> | #include <cstring> | ||||||
| #include <cryptopp/aes.h> | #include <cryptopp/aes.h> | ||||||
|  |  | ||||||
|  | @ -14,6 +14,7 @@ | ||||||
| #include <boost/serialization/vector.hpp> | #include <boost/serialization/vector.hpp> | ||||||
| #include "common/common_types.h" | #include "common/common_types.h" | ||||||
| #include "common/construct.h" | #include "common/construct.h" | ||||||
|  | #include "common/swap.h" | ||||||
| #include "core/file_sys/cia_container.h" | #include "core/file_sys/cia_container.h" | ||||||
| #include "core/file_sys/file_backend.h" | #include "core/file_sys/file_backend.h" | ||||||
| #include "core/global.h" | #include "core/global.h" | ||||||
|  |  | ||||||
|  | @ -2,7 +2,6 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <cinttypes> |  | ||||||
| #include "core/core.h" | #include "core/core.h" | ||||||
| #include "core/hle/service/am/am.h" | #include "core/hle/service/am/am.h" | ||||||
| #include "core/hle/service/apt/ns.h" | #include "core/hle/service/apt/ns.h" | ||||||
|  |  | ||||||
|  | @ -4,6 +4,7 @@ | ||||||
| 
 | 
 | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
|  | #include "common/common_types.h" | ||||||
| #include "core/hle/kernel/process.h" | #include "core/hle/kernel/process.h" | ||||||
| #include "core/hle/service/fs/archive.h" | #include "core/hle/service/fs/archive.h" | ||||||
| #include "core/hle/service/service.h" | #include "core/hle/service/service.h" | ||||||
|  |  | ||||||
|  | @ -313,7 +313,7 @@ void Module::Interface::GetRegionCanadaUSA(Kernel::HLERequestContext& ctx) { | ||||||
| void Module::Interface::GetSystemModel(Kernel::HLERequestContext& ctx) { | void Module::Interface::GetSystemModel(Kernel::HLERequestContext& ctx) { | ||||||
|     IPC::RequestParser rp(ctx, 0x05, 0, 0); |     IPC::RequestParser rp(ctx, 0x05, 0, 0); | ||||||
|     IPC::RequestBuilder rb = rp.MakeBuilder(2, 0); |     IPC::RequestBuilder rb = rp.MakeBuilder(2, 0); | ||||||
|     u32 data; |     u32 data{}; | ||||||
| 
 | 
 | ||||||
|     // TODO(Subv): Find out the correct error codes
 |     // TODO(Subv): Find out the correct error codes
 | ||||||
|     rb.Push(cfg->GetConfigInfoBlock(ConsoleModelBlockID, 4, 0x8, reinterpret_cast<u8*>(&data))); |     rb.Push(cfg->GetConfigInfoBlock(ConsoleModelBlockID, 4, 0x8, reinterpret_cast<u8*>(&data))); | ||||||
|  | @ -879,13 +879,13 @@ ResultCode Module::SetConsoleUniqueId(u32 random_number, u64 console_id) { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| u64 Module::GetConsoleUniqueId() { | u64 Module::GetConsoleUniqueId() { | ||||||
|     u64_le console_id_le; |     u64_le console_id_le{}; | ||||||
|     GetConfigInfoBlock(ConsoleUniqueID2BlockID, sizeof(console_id_le), 0xE, &console_id_le); |     GetConfigInfoBlock(ConsoleUniqueID2BlockID, sizeof(console_id_le), 0xE, &console_id_le); | ||||||
|     return console_id_le; |     return console_id_le; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| EULAVersion Module::GetEULAVersion() { | EULAVersion Module::GetEULAVersion() { | ||||||
|     u32_le data; |     u32_le data{}; | ||||||
|     GetConfigInfoBlock(EULAVersionBlockID, sizeof(data), 0xE, &data); |     GetConfigInfoBlock(EULAVersionBlockID, sizeof(data), 0xE, &data); | ||||||
|     EULAVersion version; |     EULAVersion version; | ||||||
|     version.minor = data & 0xFF; |     version.minor = data & 0xFF; | ||||||
|  |  | ||||||
|  | @ -3,7 +3,6 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <cinttypes> |  | ||||||
| #include <cstddef> | #include <cstddef> | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <system_error> | #include <system_error> | ||||||
|  |  | ||||||
|  | @ -2,7 +2,6 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <cinttypes> |  | ||||||
| #include "common/archives.h" | #include "common/archives.h" | ||||||
| #include "common/assert.h" | #include "common/assert.h" | ||||||
| #include "common/common_types.h" | #include "common/common_types.h" | ||||||
|  |  | ||||||
|  | @ -3,6 +3,7 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <atomic> | #include <atomic> | ||||||
|  | #include <unordered_map> | ||||||
| #include <cryptopp/aes.h> | #include <cryptopp/aes.h> | ||||||
| #include <cryptopp/modes.h> | #include <cryptopp/modes.h> | ||||||
| #include "common/archives.h" | #include "common/archives.h" | ||||||
|  |  | ||||||
|  | @ -2,7 +2,6 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <cinttypes> |  | ||||||
| #include "common/archives.h" | #include "common/archives.h" | ||||||
| #include "common/common_paths.h" | #include "common/common_paths.h" | ||||||
| #include "common/file_util.h" | #include "common/file_util.h" | ||||||
|  |  | ||||||
|  | @ -5,6 +5,7 @@ | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <cstring> | #include <cstring> | ||||||
| #include <type_traits> | #include <type_traits> | ||||||
|  | #include <unordered_map> | ||||||
| #include <vector> | #include <vector> | ||||||
| #include "common/archives.h" | #include "common/archives.h" | ||||||
| #include "common/assert.h" | #include "common/assert.h" | ||||||
|  |  | ||||||
|  | @ -4,6 +4,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <exception> | #include <exception> | ||||||
|  | #include <fstream> | ||||||
| #include <optional> | #include <optional> | ||||||
| #include <sstream> | #include <sstream> | ||||||
| #include <boost/iostreams/device/file_descriptor.hpp> | #include <boost/iostreams/device/file_descriptor.hpp> | ||||||
|  |  | ||||||
|  | @ -3,7 +3,6 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <cinttypes> |  | ||||||
| #include <codecvt> | #include <codecvt> | ||||||
| #include <cstring> | #include <cstring> | ||||||
| #include <locale> | #include <locale> | ||||||
|  |  | ||||||
|  | @ -67,6 +67,7 @@ static bool ValidateSaveState(const CSTHeader& header, SaveStateInfo& info, u64 | ||||||
| 
 | 
 | ||||||
| std::vector<SaveStateInfo> ListSaveStates(u64 program_id) { | std::vector<SaveStateInfo> ListSaveStates(u64 program_id) { | ||||||
|     std::vector<SaveStateInfo> result; |     std::vector<SaveStateInfo> result; | ||||||
|  |     result.reserve(SaveStateSlotCount); | ||||||
|     for (u32 slot = 1; slot <= SaveStateSlotCount; ++slot) { |     for (u32 slot = 1; slot <= SaveStateSlotCount; ++slot) { | ||||||
|         const auto path = GetSaveStatePath(program_id, slot); |         const auto path = GetSaveStatePath(program_id, slot); | ||||||
|         if (!FileUtil::Exists(path)) { |         if (!FileUtil::Exists(path)) { | ||||||
|  |  | ||||||
|  | @ -6,7 +6,6 @@ | ||||||
| #include <fstream> | #include <fstream> | ||||||
| #include <iostream> | #include <iostream> | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <regex> |  | ||||||
| #include <string> | #include <string> | ||||||
| #include <thread> | #include <thread> | ||||||
| #include <cryptopp/base64.h> | #include <cryptopp/base64.h> | ||||||
|  |  | ||||||
|  | @ -9,7 +9,6 @@ | ||||||
| #include <functional> | #include <functional> | ||||||
| #include <mutex> | #include <mutex> | ||||||
| #include <thread> | #include <thread> | ||||||
| #include <unordered_map> |  | ||||||
| #include <vector> | #include <vector> | ||||||
| #include "common/common_types.h" | #include "common/common_types.h" | ||||||
| #include "common/threadsafe_queue.h" | #include "common/threadsafe_queue.h" | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ | ||||||
| #include <atomic> | #include <atomic> | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <thread> | #include <thread> | ||||||
|  | #include <unordered_map> | ||||||
| #include "common/settings.h" | #include "common/settings.h" | ||||||
| #include "common/threadsafe_queue.h" | #include "common/threadsafe_queue.h" | ||||||
| #include "input_common/sdl/sdl.h" | #include "input_common/sdl/sdl.h" | ||||||
|  |  | ||||||
|  | @ -4,7 +4,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <algorithm> | #include <algorithm> | ||||||
| #include <atomic> | #include <atomic> | ||||||
| #include <iomanip> |  | ||||||
| #include <mutex> | #include <mutex> | ||||||
| #include <random> | #include <random> | ||||||
| #include <regex> | #include <regex> | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ | ||||||
| #include "common/alignment.h" | #include "common/alignment.h" | ||||||
| #include "common/logging/log.h" | #include "common/logging/log.h" | ||||||
| #include "common/microprofile.h" | #include "common/microprofile.h" | ||||||
|  | #include "common/settings.h" | ||||||
| #include "core/memory.h" | #include "core/memory.h" | ||||||
| #include "video_core/custom_textures/custom_tex_manager.h" | #include "video_core/custom_textures/custom_tex_manager.h" | ||||||
| #include "video_core/rasterizer_cache/rasterizer_cache.h" | #include "video_core/rasterizer_cache/rasterizer_cache.h" | ||||||
|  |  | ||||||
|  | @ -6,6 +6,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <array> | #include <array> | ||||||
| #include "common/bit_field.h" | #include "common/bit_field.h" | ||||||
|  | #include "common/common_funcs.h" | ||||||
| #include "common/math_util.h" | #include "common/math_util.h" | ||||||
| #include "common/vector_math.h" | #include "common/vector_math.h" | ||||||
| #include "video_core/pica_types.h" | #include "video_core/pica_types.h" | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
|  | #include "common/settings.h" | ||||||
| #include "core/core.h" | #include "core/core.h" | ||||||
| #include "core/frontend/emu_window.h" | #include "core/frontend/emu_window.h" | ||||||
| #include "core/tracer/recorder.h" | #include "core/tracer/recorder.h" | ||||||
|  |  | ||||||
|  | @ -4,7 +4,6 @@ | ||||||
| 
 | 
 | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
| #include <unordered_map> |  | ||||||
| #include "common/math_util.h" | #include "common/math_util.h" | ||||||
| #include "video_core/rasterizer_cache/pixel_format.h" | #include "video_core/rasterizer_cache/pixel_format.h" | ||||||
| #include "video_core/renderer_opengl/gl_resource_manager.h" | #include "video_core/renderer_opengl/gl_resource_manager.h" | ||||||
|  |  | ||||||
|  | @ -11,7 +11,6 @@ | ||||||
| #include <string> | #include <string> | ||||||
| #include <tuple> | #include <tuple> | ||||||
| #include <unordered_map> | #include <unordered_map> | ||||||
| #include <unordered_set> |  | ||||||
| #include <utility> | #include <utility> | ||||||
| #include <vector> | #include <vector> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
| #include <unordered_map> | #include <unordered_map> | ||||||
| #include <variant> | #include <variant> | ||||||
| #include "common/scope_exit.h" | #include "common/scope_exit.h" | ||||||
|  | #include "core/frontend/emu_window.h" | ||||||
| #include "video_core/renderer_opengl/gl_driver.h" | #include "video_core/renderer_opengl/gl_driver.h" | ||||||
| #include "video_core/renderer_opengl/gl_resource_manager.h" | #include "video_core/renderer_opengl/gl_resource_manager.h" | ||||||
| #include "video_core/renderer_opengl/gl_shader_disk_cache.h" | #include "video_core/renderer_opengl/gl_shader_disk_cache.h" | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
|  | #include <fstream> | ||||||
| #include <sstream> | #include <sstream> | ||||||
| #include <string> | #include <string> | ||||||
| #include <vector> | #include <vector> | ||||||
|  |  | ||||||
|  | @ -35,8 +35,8 @@ std::tuple<Common::Vec4<u8>, Common::Vec4<u8>> ComputeFragmentsColors( | ||||||
|         shadow = Common::MakeVec(1.0f, 1.0f, 1.0f, 1.0f); |         shadow = Common::MakeVec(1.0f, 1.0f, 1.0f, 1.0f); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     Common::Vec3<float> surface_normal; |     Common::Vec3<float> surface_normal{}; | ||||||
|     Common::Vec3<float> surface_tangent; |     Common::Vec3<float> surface_tangent{}; | ||||||
| 
 | 
 | ||||||
|     if (lighting.config0.bump_mode != LightingRegs::LightingBumpMode::None) { |     if (lighting.config0.bump_mode != LightingRegs::LightingBumpMode::None) { | ||||||
|         Common::Vec3<float> perturbation = |         Common::Vec3<float> perturbation = | ||||||
|  |  | ||||||
|  | @ -15,7 +15,6 @@ | ||||||
| #include <vector> | #include <vector> | ||||||
| #include <nihstro/shader_bytecode.h> | #include <nihstro/shader_bytecode.h> | ||||||
| #include <xbyak/xbyak.h> | #include <xbyak/xbyak.h> | ||||||
| #include "common/bit_set.h" |  | ||||||
| #include "common/common_types.h" | #include "common/common_types.h" | ||||||
| #include "video_core/shader/shader.h" | #include "video_core/shader/shader.h" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ | ||||||
| #include "common/logging/log.h" | #include "common/logging/log.h" | ||||||
| #include "common/settings.h" | #include "common/settings.h" | ||||||
| #include "core/core.h" | #include "core/core.h" | ||||||
|  | #include "core/frontend/emu_window.h" | ||||||
| #include "video_core/pica.h" | #include "video_core/pica.h" | ||||||
| #include "video_core/pica_state.h" | #include "video_core/pica_state.h" | ||||||
| #include "video_core/renderer_base.h" | #include "video_core/renderer_base.h" | ||||||
|  |  | ||||||
|  | @ -6,9 +6,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <atomic> | #include <atomic> | ||||||
| #include <functional> | #include <functional> | ||||||
| #include <iostream> |  | ||||||
| #include <memory> | #include <memory> | ||||||
| #include "core/frontend/emu_window.h" |  | ||||||
| 
 | 
 | ||||||
| namespace Frontend { | namespace Frontend { | ||||||
| class EmuWindow; | class EmuWindow; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue