VERY experimental Nintendo Switch 2 emulator
C++
general: fix spelling mistakes
Liam5be8a74b0cc4
diff --git a/.ci/scripts/windows/scan_dll.py b/.ci/scripts/windows/scan_dll.pyindex f374e0d78e..a536f73759 100644--- a/.ci/scripts/windows/scan_dll.py+++ b/.ci/scripts/windows/scan_dll.py@@ -40,7 +40,7 @@ def parse_imports(file_name):def parse_imports_recursive(file_name, path_list=[]):q = queue.Queue() # create a FIFO queue- # file_name can be a string or a list for the convience+ # file_name can be a string or a list for the convenienceif isinstance(file_name, str):q.put(file_name)elif isinstance(file_name, list):diff --git a/.codespellrc b/.codespellrcindex acef5478fc..786a991ebc 100644--- a/.codespellrc+++ b/.codespellrc@@ -1,3 +1,6 @@+; SPDX-FileCopyrightText: 2023 yuzu Emulator Project+; SPDX-License-Identifier: GPL-2.0-or-later+[codespell]skip = ./.git,./build,./dist,./Doxyfile,./externals,./LICENSES-ignore-words-list = aci,allright,ba,deques,froms,hda,inout,lod,masia,nax,nd,pullrequests,pullrequest,te,transfered,unstall,uscaled,zink+ignore-words-list = aci,allright,ba,deques,froms,hda,inout,lod,masia,nam,nax,nd,pullrequests,pullrequest,te,transfered,unstall,uscaled,zinkdiff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.ymlindex 4667b24240..d873fb725c 100644--- a/.github/workflows/codespell.yml+++ b/.github/workflows/codespell.yml@@ -1,3 +1,5 @@+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project+# SPDX-License-Identifier: GPL-2.0-or-later# GitHub Action to automate the identification of common misspellings in text files.# https://github.com/codespell-project/actions-codespell# https://github.com/codespell-project/codespelldiff --git a/CMakeLists.txt b/CMakeLists.txtindex 91ec50befe..6932b6fab9 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -344,12 +344,12 @@ if(ENABLE_QT)find_package(PkgConfig REQUIRED)pkg_check_modules(QT_DEP_GLU QUIET glu>=9.0.0)if (NOT QT_DEP_GLU_FOUND)- message(FATAL_ERROR "Qt bundled pacakge dependency `glu` not found. \+ message(FATAL_ERROR "Qt bundled package dependency `glu` not found. \Perhaps `libglu1-mesa-dev` needs to be installed?")endif()pkg_check_modules(QT_DEP_MESA QUIET dri>=20.0.8)if (NOT QT_DEP_MESA_FOUND)- message(FATAL_ERROR "Qt bundled pacakge dependency `dri` not found. \+ message(FATAL_ERROR "Qt bundled package dependency `dri` not found. \Perhaps `mesa-common-dev` needs to be installed?")endif()diff --git a/CMakeModules/FindFFmpeg.cmake b/CMakeModules/FindFFmpeg.cmakeindex eedf28aea4..5cb1f3c8a4 100644--- a/CMakeModules/FindFFmpeg.cmake+++ b/CMakeModules/FindFFmpeg.cmake@@ -14,7 +14,7 @@# FFmpeg_LIBRARIES: aggregate all the paths to the libraries# FFmpeg_FOUND: True if all components have been found#-# This module defines the following targets, which are prefered over variables:+# This module defines the following targets, which are preferred over variables:## FFmpeg::<component>: Target to use <component> directly, with include path,# library and dependencies set up. If you are using a static build, you arediff --git a/src/CMakeLists.txt b/src/CMakeLists.txtindex c7283e82ca..0eca8e90e7 100644--- a/src/CMakeLists.txt+++ b/src/CMakeLists.txt@@ -83,7 +83,7 @@ if (MSVC))if (USE_CCACHE OR YUZU_USE_PRECOMPILED_HEADERS)- # when caching, we need to use /Z7 to downgrade debug info to use an older but more cachable format+ # when caching, we need to use /Z7 to downgrade debug info to use an older but more cacheable format# Precompiled headers are deleted if not using /Z7. See https://github.com/nanoant/CMakePCHCompiler/issues/21add_compile_options(/Z7)else()diff --git a/src/audio_core/audio_out_manager.h b/src/audio_core/audio_out_manager.hindex 24981e08f2..1e05ec5ed4 100644--- a/src/audio_core/audio_out_manager.h+++ b/src/audio_core/audio_out_manager.h@@ -58,7 +58,7 @@ public:/*** Get a list of audio out device names.*- * @oaram names - Output container to write names to.+ * @param names - Output container to write names to.* @return Number of names written.*/u32 GetAudioOutDeviceNames(diff --git a/src/audio_core/device/audio_buffer.h b/src/audio_core/device/audio_buffer.hindex 7128ef72a7..4eb80c2bad 100644--- a/src/audio_core/device/audio_buffer.h+++ b/src/audio_core/device/audio_buffer.h@@ -16,7 +16,7 @@ struct AudioBuffer {s64 played_timestamp;/// Game memory address for these samples.VAddr samples;- /// Unqiue identifier for this buffer.+ /// Unique identifier for this buffer.u64 tag;/// Size of the samples buffer.u64 size;diff --git a/src/audio_core/renderer/adsp/audio_renderer.cpp b/src/audio_core/renderer/adsp/audio_renderer.cppindex 0e437e7799..42b4b167a0 100644--- a/src/audio_core/renderer/adsp/audio_renderer.cpp+++ b/src/audio_core/renderer/adsp/audio_renderer.cpp@@ -165,7 +165,7 @@ void AudioRenderer::ThreadFunc() {// Check this buffer is valid, as it may not be used.if (command_buffer.buffer != 0) {// If there are no remaining commands (from the previous list),- // this is a new command list, initalize it.+ // this is a new command list, initialize it.if (command_buffer.remaining_command_count == 0) {command_list_processor.Initialize(system, command_buffer.buffer,command_buffer.size, streams[index]);diff --git a/src/audio_core/renderer/behavior/behavior_info.h b/src/audio_core/renderer/behavior/behavior_info.hindex 15c9483442..b523402294 100644--- a/src/audio_core/renderer/behavior/behavior_info.h+++ b/src/audio_core/renderer/behavior/behavior_info.h@@ -155,7 +155,7 @@ public:/*** Check if a variadic command buffer is supported.* As of Rev 5 with the added optional performance metric logging, the command- * buffer can be a variable size, so take that into account for calcualting its size.+ * buffer can be a variable size, so take that into account for calculating its size.** @return True if supported, otherwise false.*/diff --git a/src/audio_core/renderer/effect/effect_info_base.h b/src/audio_core/renderer/effect/effect_info_base.hindex 8525fde05c..dbdccf2784 100644--- a/src/audio_core/renderer/effect/effect_info_base.h+++ b/src/audio_core/renderer/effect/effect_info_base.h@@ -192,7 +192,7 @@ public:/*** Get this effect's parameter data.*- * @return Pointer to the parametter, must be cast to the correct type.+ * @return Pointer to the parameter, must be cast to the correct type.*/u8* GetParameter() {return parameter.data();@@ -201,7 +201,7 @@ public:/*** Get this effect's parameter data.*- * @return Pointer to the parametter, must be cast to the correct type.+ * @return Pointer to the parameter, must be cast to the correct type.*/u8* GetStateBuffer() {return state.data();diff --git a/src/audio_core/renderer/memory/memory_pool_info.h b/src/audio_core/renderer/memory/memory_pool_info.hindex 537a466ec7..80c571bc1e 100644--- a/src/audio_core/renderer/memory/memory_pool_info.h+++ b/src/audio_core/renderer/memory/memory_pool_info.h@@ -29,7 +29,7 @@ public:*/enum class State {Invalid,- Aquired,+ Acquired,RequestDetach,Detached,RequestAttach,diff --git a/src/audio_core/renderer/mix/mix_context.h b/src/audio_core/renderer/mix/mix_context.hindex da3aa28291..bcd9637daa 100644--- a/src/audio_core/renderer/mix/mix_context.h+++ b/src/audio_core/renderer/mix/mix_context.h@@ -93,7 +93,7 @@ public:* Splitter sort, traverse the splitter node graph and sort the sorted mixes from results.** @param splitter_context - Splitter context for the sort.- * @return True if the sort was successful, othewise false.+ * @return True if the sort was successful, otherwise false.*/bool TSortInfo(const SplitterContext& splitter_context);diff --git a/src/audio_core/renderer/performance/performance_detail.h b/src/audio_core/renderer/performance/performance_detail.hindex 3a4897e606..f603b9026f 100644--- a/src/audio_core/renderer/performance/performance_detail.h+++ b/src/audio_core/renderer/performance/performance_detail.h@@ -33,7 +33,7 @@ struct PerformanceDetailVersion1 {/* 0x0D */ PerformanceEntryType entry_type;};static_assert(sizeof(PerformanceDetailVersion1) == 0x10,- "PerformanceDetailVersion1 has the worng size!");+ "PerformanceDetailVersion1 has the wrong size!");struct PerformanceDetailVersion2 {/* 0x00 */ u32 node_id;@@ -45,6 +45,6 @@ struct PerformanceDetailVersion2 {/* 0x14 */ char unk14[0x4];};static_assert(sizeof(PerformanceDetailVersion2) == 0x18,- "PerformanceDetailVersion2 has the worng size!");+ "PerformanceDetailVersion2 has the wrong size!");} // namespace AudioCore::AudioRendererdiff --git a/src/audio_core/renderer/performance/performance_entry.h b/src/audio_core/renderer/performance/performance_entry.hindex d1b21406b5..d6b1158db5 100644--- a/src/audio_core/renderer/performance/performance_entry.h+++ b/src/audio_core/renderer/performance/performance_entry.h@@ -22,7 +22,7 @@ struct PerformanceEntryVersion1 {/* 0x0C */ PerformanceEntryType entry_type;};static_assert(sizeof(PerformanceEntryVersion1) == 0x10,- "PerformanceEntryVersion1 has the worng size!");+ "PerformanceEntryVersion1 has the wrong size!");struct PerformanceEntryVersion2 {/* 0x00 */ u32 node_id;@@ -32,6 +32,6 @@ struct PerformanceEntryVersion2 {/* 0x0D */ char unk0D[0xB];};static_assert(sizeof(PerformanceEntryVersion2) == 0x18,- "PerformanceEntryVersion2 has the worng size!");+ "PerformanceEntryVersion2 has the wrong size!");} // namespace AudioCore::AudioRendererdiff --git a/src/audio_core/renderer/performance/performance_frame_header.h b/src/audio_core/renderer/performance/performance_frame_header.hindex 707cc0afb2..b1848284e3 100644--- a/src/audio_core/renderer/performance/performance_frame_header.h+++ b/src/audio_core/renderer/performance/performance_frame_header.h@@ -16,7 +16,7 @@ struct PerformanceFrameHeaderVersion1 {/* 0x14 */ u32 frame_index;};static_assert(sizeof(PerformanceFrameHeaderVersion1) == 0x18,- "PerformanceFrameHeaderVersion1 has the worng size!");+ "PerformanceFrameHeaderVersion1 has the wrong size!");struct PerformanceFrameHeaderVersion2 {/* 0x00 */ u32 magic; // "PERF"@@ -31,6 +31,6 @@ struct PerformanceFrameHeaderVersion2 {/* 0x25 */ char unk25[0xB];};static_assert(sizeof(PerformanceFrameHeaderVersion2) == 0x30,- "PerformanceFrameHeaderVersion2 has the worng size!");+ "PerformanceFrameHeaderVersion2 has the wrong size!");} // namespace AudioCore::AudioRendererdiff --git a/src/audio_core/renderer/splitter/splitter_context.h b/src/audio_core/renderer/splitter/splitter_context.hindex cfd092b4fb..1a63db1d30 100644--- a/src/audio_core/renderer/splitter/splitter_context.h+++ b/src/audio_core/renderer/splitter/splitter_context.h@@ -55,7 +55,7 @@ public:/*** Get the total number of splitter destinations.*- * @return Number of destiantions.+ * @return Number of destinations.*/u32 GetDataCount() const;diff --git a/src/audio_core/renderer/splitter/splitter_destinations_data.h b/src/audio_core/renderer/splitter/splitter_destinations_data.hindex bd3d55748a..d55ce0ad3d 100644--- a/src/audio_core/renderer/splitter/splitter_destinations_data.h+++ b/src/audio_core/renderer/splitter/splitter_destinations_data.h@@ -87,7 +87,7 @@ public:/*** Update this destination.*- * @param params - Inpout parameters to update the destination.+ * @param params - Input parameters to update the destination.*/void Update(const InParameter& params);@@ -126,9 +126,9 @@ private:std::array<f32, MaxMixBuffers> prev_mix_volumes{0.0f};/// Next destination in the mix chainSplitterDestinationData* next{};- /// Is this destiantion in use?+ /// Is this destination in use?bool in_use{};- /// Does this destiantion need its volumes updated?+ /// Does this destination need its volumes updated?bool need_update{};};diff --git a/src/audio_core/renderer/splitter/splitter_info.h b/src/audio_core/renderer/splitter/splitter_info.hindex d1d75064cc..b0ad01fe07 100644--- a/src/audio_core/renderer/splitter/splitter_info.h+++ b/src/audio_core/renderer/splitter/splitter_info.h@@ -49,14 +49,14 @@ public:/*** Get the number of destinations in this splitter.*- * @return The number of destiantions.+ * @return The number of destinations.*/u32 GetDestinationCount() const;/*** Set the number of destinations in this splitter.*- * @param count - The new number of destiantions.+ * @param count - The new number of destinations.*/void SetDestinationCount(u32 count);diff --git a/src/audio_core/renderer/system.h b/src/audio_core/renderer/system.hindex 429196e41d..e328783b63 100644--- a/src/audio_core/renderer/system.h+++ b/src/audio_core/renderer/system.h@@ -154,7 +154,7 @@ public:ExecutionMode GetExecutionMode() const;/**- * Get the rendering deivce for this system.+ * Get the rendering device for this system.* This is unused.** @return Rendering device for this system.@@ -241,7 +241,7 @@ private:std::span<u8> command_workbuffer{};/// Size of command workbufferu64 command_workbuffer_size{};- /// Numebr of commands in the workbuffer+ /// Number of commands in the workbufferu64 command_buffer_size{};/// Manager for upsamplersUpsamplerManager* upsampler_manager{};diff --git a/src/audio_core/renderer/system_manager.h b/src/audio_core/renderer/system_manager.hindex 81457a3a18..415ddb74fd 100644--- a/src/audio_core/renderer/system_manager.h+++ b/src/audio_core/renderer/system_manager.h@@ -36,7 +36,7 @@ public:/*** Initialize the system manager, called when any system is registered.*- * @return True if sucessfully initialized, otherwise false.+ * @return True if successfully initialized, otherwise false.*/bool InitializeUnsafe();@@ -50,7 +50,7 @@ public:* The manager does not own the system, so do not free it without calling Remove.** @param system - The system to add.- * @return True if succesfully added, otherwise false.+ * @return True if successfully added, otherwise false.*/bool Add(System& system);@@ -58,7 +58,7 @@ public:* Remove an audio render system from the manager.** @param system - The system to remove.- * @return True if succesfully removed, otherwise false.+ * @return True if successfully removed, otherwise false.*/bool Remove(System& system);diff --git a/src/audio_core/renderer/voice/voice_info.h b/src/audio_core/renderer/voice/voice_info.hindex 930180895b..3c5d3e04f7 100644--- a/src/audio_core/renderer/voice/voice_info.h+++ b/src/audio_core/renderer/voice/voice_info.h@@ -183,7 +183,7 @@ public:void Initialize();/**- * Does this voice ned an update?+ * Does this voice need an update?** @param params - Input parameters to check matching.*@@ -236,7 +236,7 @@ public:** @param error_info - Output array of errors.* @param wave_buffer - The wavebuffer to be updated.- * @param wave_buffer_internal - Input parametters to be used for the update.+ * @param wave_buffer_internal - Input parameters to be used for the update.* @param sample_format - Sample format of the wavebuffer.* @param valid - Is this wavebuffer valid?* @param pool_mapper - Used to map the wavebuffers.diff --git a/src/common/announce_multiplayer_room.h b/src/common/announce_multiplayer_room.hindex 4a3100fa4a..f320601967 100644--- a/src/common/announce_multiplayer_room.h+++ b/src/common/announce_multiplayer_room.h@@ -66,7 +66,7 @@ public:* @param description The room description* @param port The port of the room* @param net_version The version of the libNetwork that gets used- * @param has_password True if the room is passowrd protected+ * @param has_password True if the room is password protected* @param preferred_game The preferred game of the room* @param preferred_game_id The title id of the preferred game*/diff --git a/src/common/fiber.cpp b/src/common/fiber.cppindex bc92b360b4..c991b7cf1a 100644--- a/src/common/fiber.cpp+++ b/src/common/fiber.cpp@@ -90,7 +90,7 @@ Fiber::~Fiber() {}void Fiber::Exit() {- ASSERT_MSG(impl->is_thread_fiber, "Exitting non main thread fiber");+ ASSERT_MSG(impl->is_thread_fiber, "Exiting non main thread fiber");if (!impl->is_thread_fiber) {return;}diff --git a/src/common/fixed_point.h b/src/common/fixed_point.hindex f899b0d540..b0f3ae2ccb 100644--- a/src/common/fixed_point.h+++ b/src/common/fixed_point.h@@ -22,7 +22,7 @@ class FixedPoint;namespace detail {// helper templates to make magic with types :)-// these allow us to determine resonable types from+// these allow us to determine reasonable types from// a desired size, they also let us infer the next largest type// from a type which is nice for the division optemplate <size_t T>diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cppindex 611c7d1a31..8e4f1f97a3 100644--- a/src/common/host_memory.cpp+++ b/src/common/host_memory.cpp@@ -322,7 +322,7 @@ private:}/// Return true when a given memory region is a "nieche" and the placeholders don't have to be- /// splitted.+ /// split.bool IsNiechePlaceholder(size_t virtual_offset, size_t length) const {const auto it = placeholders.upper_bound({virtual_offset, virtual_offset + length});if (it != placeholders.end() && it->lower() == virtual_offset + length) {@@ -484,7 +484,7 @@ class HostMemory::Impl {public:explicit Impl(size_t /*backing_size */, size_t /* virtual_size */) {// This is just a place holder.- // Please implement fastmem in a propper way on your platform.+ // Please implement fastmem in a proper way on your platform.throw std::bad_alloc{};}diff --git a/src/common/input.h b/src/common/input.hindex 98e9346850..51b277c1f9 100644--- a/src/common/input.h+++ b/src/common/input.h@@ -15,7 +15,7 @@namespace Common::Input {-// Type of data that is expected to recieve or send+// Type of data that is expected to receive or sendenum class InputType {None,Battery,@@ -103,7 +103,7 @@ enum class VibrationAmplificationType {struct AnalogProperties {// Anything below this value will be detected as zerofloat deadzone{};- // Anyting above this values will be detected as one+ // Anything above this values will be detected as onefloat range{1.0f};// Minimum value to be detected as activefloat threshold{0.5f};@@ -209,7 +209,7 @@ struct LedStatus {bool led_4{};};-// Raw data fom camera+// Raw data from camerastruct CameraStatus {CameraFormat format{CameraFormat::None};std::vector<u8> data{};@@ -428,7 +428,7 @@ inline void UnregisterOutputFactory(const std::string& name) {}/**- * Create an input device from given paramters.+ * Create an input device from given parameters.* @tparam InputDeviceType the type of input devices to create* @param params a serialized ParamPackage string that contains all parameters for creating the* devicediff --git a/src/common/swap.h b/src/common/swap.hindex 037b82781a..085baaf9a1 100644--- a/src/common/swap.h+++ b/src/common/swap.h@@ -229,7 +229,7 @@ public:value = swap(swap() - 1);return old;}- // Comparaison+ // Comparison// v == ibool operator==(const swapped_t& i) const {return swap() == i.swap();@@ -368,7 +368,7 @@ public:// Member/** todo **/- // Arithmetics+ // Arithmetictemplate <typename S, typename T2, typename F2>friend S operator+(const S& p, const swapped_t v);@@ -384,7 +384,7 @@ public:template <typename S, typename T2, typename F2>friend S operator%(const S& p, const swapped_t v);- // Arithmetics + assignments+ // Arithmetic + assignmentstemplate <typename S, typename T2, typename F2>friend S operator+=(const S& p, const swapped_t v);@@ -415,7 +415,7 @@ public:friend bool operator==(const S& p, const swapped_t v);};-// Arithmetics+// Arithmetictemplate <typename S, typename T, typename F>S operator+(const S& i, const swap_struct_t<T, F> v) {return i + v.swap();@@ -441,7 +441,7 @@ S operator%(const S& i, const swap_struct_t<T, F> v) {return i % v.swap();}-// Arithmetics + assignments+// Arithmetic + assignmentstemplate <typename S, typename T, typename F>S& operator+=(S& i, const swap_struct_t<T, F> v) {i += v.swap();@@ -465,7 +465,7 @@ S operator&(const swap_struct_t<T, F> v, const S& i) {return static_cast<S>(v.swap() & i);}-// Comparaison+// Comparisontemplate <typename S, typename T, typename F>bool operator<(const S& p, const swap_struct_t<T, F> v) {return p < v.swap();diff --git a/src/core/core.cpp b/src/core/core.cppindex 4a1372d156..bd2082fd63 100644--- a/src/core/core.cpp+++ b/src/core/core.cpp@@ -358,7 +358,7 @@ struct System::Impl {void ShutdownMainProcess() {SetShuttingDown(true);- // Log last frame performance stats if game was loded+ // Log last frame performance stats if game was loadedif (perf_stats) {const auto perf_results = GetAndResetPerfStats();constexpr auto performance = Common::Telemetry::FieldType::Performance;diff --git a/src/core/core.h b/src/core/core.hindex 91e78672ef..5843696d4d 100644--- a/src/core/core.h+++ b/src/core/core.h@@ -146,7 +146,7 @@ public:/*** Initializes the system- * This function will initialize core functionaility used for system emulation+ * This function will initialize core functionality used for system emulation*/void Initialize();diff --git a/src/core/core_timing.h b/src/core/core_timing.hindex 4b89c0c39b..e7c4a949f6 100644--- a/src/core/core_timing.h+++ b/src/core/core_timing.h@@ -150,7 +150,7 @@ private:// The queue is a min-heap using std::make_heap/push_heap/pop_heap.// We don't use std::priority_queue because we need to be able to serialize, unserialize and// erase arbitrary events (RemoveEvent()) regardless of the queue order. These aren't- // accomodated by the standard adaptor class.+ // accommodated by the standard adaptor class.std::vector<Event> event_queue;u64 event_fifo_id = 0;diff --git a/src/core/crypto/ctr_encryption_layer.h b/src/core/crypto/ctr_encryption_layer.hindex 77f08d7762..d85ad8f78c 100644--- a/src/core/crypto/ctr_encryption_layer.h+++ b/src/core/crypto/ctr_encryption_layer.h@@ -11,7 +11,7 @@namespace Core::Crypto {-// Sits on top of a VirtualFile and provides CTR-mode AES decription.+// Sits on top of a VirtualFile and provides CTR-mode AES description.class CTREncryptionLayer : public EncryptionLayer {public:using IVData = std::array<u8, 16>;diff --git a/src/core/crypto/key_manager.h b/src/core/crypto/key_manager.hindex dbf9ebfe47..673cec463e 100644--- a/src/core/crypto/key_manager.h+++ b/src/core/crypto/key_manager.h@@ -249,7 +249,7 @@ public:static bool KeyFileExists(bool title);- // Call before using the sd seed to attempt to derive it if it dosen't exist. Needs system+ // Call before using the sd seed to attempt to derive it if it doesn't exist. Needs system// save 8*43 and the private file to exist.void DeriveSDSeedLazy();diff --git a/src/core/crypto/xts_encryption_layer.h b/src/core/crypto/xts_encryption_layer.hindex 735e660cb9..68b5643b1d 100644--- a/src/core/crypto/xts_encryption_layer.h+++ b/src/core/crypto/xts_encryption_layer.h@@ -9,7 +9,7 @@namespace Core::Crypto {-// Sits on top of a VirtualFile and provides XTS-mode AES decription.+// Sits on top of a VirtualFile and provides XTS-mode AES description.class XTSEncryptionLayer : public EncryptionLayer {public:XTSEncryptionLayer(FileSys::VirtualFile base, Key256 key);diff --git a/src/core/file_sys/content_archive.h b/src/core/file_sys/content_archive.hindex 7fdc45ea71..20f524f809 100644--- a/src/core/file_sys/content_archive.h+++ b/src/core/file_sys/content_archive.h@@ -93,7 +93,7 @@ inline bool IsDirectoryLogoPartition(const VirtualDir& pfs) {pfs->GetFile("StartupMovie.gif") != nullptr;}-// An implementation of VfsDirectory that represents a Nintendo Content Archive (NCA) conatiner.+// An implementation of VfsDirectory that represents a Nintendo Content Archive (NCA) container.// After construction, use GetStatus to determine if the file is valid and ready to be used.class NCA : public ReadOnlyVfsDirectory {public:diff --git a/src/core/file_sys/registered_cache.h b/src/core/file_sys/registered_cache.hindex 587f8cae8a..bd7f53eaf3 100644--- a/src/core/file_sys/registered_cache.h+++ b/src/core/file_sys/registered_cache.h@@ -162,7 +162,7 @@ public:InstallResult InstallEntry(const NSP& nsp, bool overwrite_if_exists = false,const VfsCopyFunction& copy = &VfsRawCopy);- // Due to the fact that we must use Meta-type NCAs to determine the existance of files, this+ // Due to the fact that we must use Meta-type NCAs to determine the existence of files, this// poses quite a challenge. Instead of creating a new meta NCA for this file, yuzu will create a// dir inside the NAND called 'yuzu_meta' and store the raw CNMT there.// TODO(DarkLordZach): Author real meta-type NCAs and install those.diff --git a/src/core/file_sys/vfs.h b/src/core/file_sys/vfs.hindex 8fc1738a42..a93e21f67d 100644--- a/src/core/file_sys/vfs.h+++ b/src/core/file_sys/vfs.h@@ -45,7 +45,7 @@ public:// Return whether or not the user has write permission on this filesystem.virtual bool IsWritable() const;- // Determine if the entry at path is non-existant, a file, or a directory.+ // Determine if the entry at path is non-existent, a file, or a directory.virtual VfsEntryType GetEntryType(std::string_view path) const;// Opens the file with path relative to root. If it doesn't exist, returns nullptr.@@ -58,7 +58,7 @@ public:// Moves the file from old_path to new_path, returning the moved file on success and nullptr on// failure.virtual VirtualFile MoveFile(std::string_view old_path, std::string_view new_path);- // Deletes the file with path relative to root, returing true on success.+ // Deletes the file with path relative to root, returning true on success.virtual bool DeleteFile(std::string_view path);// Opens the directory with path relative to root. If it doesn't exist, returns nullptr.@@ -71,7 +71,7 @@ public:// Moves the directory from old_path to new_path, returning the moved directory on success and// nullptr on failure.virtual VirtualDir MoveDirectory(std::string_view old_path, std::string_view new_path);- // Deletes the directory with path relative to root, returing true on success.+ // Deletes the directory with path relative to root, returning true on success.virtual bool DeleteDirectory(std::string_view path);protected:@@ -144,7 +144,7 @@ public:return Read(reinterpret_cast<u8*>(data), sizeof(T), offset);}- // Writes exactly one byte to offset in file and retuns whether or not the byte was written+ // Writes exactly one byte to offset in file and returns whether or not the byte was written// successfully.virtual bool WriteByte(u8 data, std::size_t offset = 0);// Writes a vector of bytes to offset in file and returns the number of bytes successfully@@ -191,13 +191,13 @@ public:VfsDirectory() = default;virtual ~VfsDirectory();- // Retrives the file located at path as if the current directory was root. Returns nullptr if+ // Retrieves the file located at path as if the current directory was root. Returns nullptr if// not found.virtual VirtualFile GetFileRelative(std::string_view path) const;// Calls GetFileRelative(path) on the root of the current directory.virtual VirtualFile GetFileAbsolute(std::string_view path) const;- // Retrives the directory located at path as if the current directory was root. Returns nullptr+ // Retrieves the directory located at path as if the current directory was root. Returns nullptr// if not found.virtual VirtualDir GetDirectoryRelative(std::string_view path) const;// Calls GetDirectoryRelative(path) on the root of the current directory.@@ -205,7 +205,7 @@ public:// Returns a vector containing all of the files in this directory.virtual std::vector<VirtualFile> GetFiles() const = 0;- // Returns the file with filename matching name. Returns nullptr if directory dosen't have a+ // Returns the file with filename matching name. Returns nullptr if directory doesn't have a// file with name.virtual VirtualFile GetFile(std::string_view name) const;@@ -214,7 +214,7 @@ public:// Returns a vector containing all of the subdirectories in this directory.virtual std::vector<VirtualDir> GetSubdirectories() const = 0;- // Returns the directory with name matching name. Returns nullptr if directory dosen't have a+ // Returns the directory with name matching name. Returns nullptr if directory doesn't have a// directory with name.virtual VirtualDir GetSubdirectory(std::string_view name) const;diff --git a/src/core/file_sys/vfs_real.h b/src/core/file_sys/vfs_real.hindex acde1ac895..b92c84316e 100644--- a/src/core/file_sys/vfs_real.h+++ b/src/core/file_sys/vfs_real.h@@ -38,7 +38,7 @@ private:boost::container::flat_map<std::string, std::weak_ptr<Common::FS::IOFile>> cache;};-// An implmentation of VfsFile that represents a file on the user's computer.+// An implementation of VfsFile that represents a file on the user's computer.class RealVfsFile : public VfsFile {friend class RealVfsDirectory;friend class RealVfsFilesystem;diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.hindex cf85ba29eb..1093800f61 100644--- a/src/core/frontend/emu_window.h+++ b/src/core/frontend/emu_window.h@@ -205,7 +205,7 @@ protected:}/**- * Converts a screen postion into the equivalent touchscreen position.+ * Converts a screen position into the equivalent touchscreen position.*/std::pair<f32, f32> MapToTouchScreen(u32 framebuffer_x, u32 framebuffer_y) const;diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.hindex a9da465a2a..4296553551 100644--- a/src/core/hid/emulated_controller.h+++ b/src/core/hid/emulated_controller.h@@ -132,7 +132,7 @@ struct ControllerStatus {RingAnalogValue ring_analog_value{};NfcValues nfc_values{};- // Data for HID serices+ // Data for HID servicesHomeButtonState home_button_state{};CaptureButtonState capture_button_state{};NpadButtonState npad_button_state{};@@ -357,7 +357,7 @@ public:/*** Sends a small vibration to the output device- * @return true if SetVibration was successfull+ * @return true if SetVibration was successful*/bool IsVibrationEnabled(std::size_t device_index);@@ -373,7 +373,7 @@ public:/*** Sets the desired camera format to be polled from a controller* @param camera_format size of each frame- * @return true if SetCameraFormat was successfull+ * @return true if SetCameraFormat was successful*/bool SetCameraFormat(Core::IrSensor::ImageTransferProcessorFormat camera_format);diff --git a/src/core/hid/emulated_devices.h b/src/core/hid/emulated_devices.hindex caf2ca659a..5eab693e46 100644--- a/src/core/hid/emulated_devices.h+++ b/src/core/hid/emulated_devices.h@@ -53,7 +53,7 @@ struct DeviceStatus {MouseWheelValues mouse_wheel_values{};MouseStickValue mouse_stick_value{};- // Data for HID serices+ // Data for HID servicesKeyboardKey keyboard_state{};KeyboardModifier keyboard_moddifier_state{};MouseButton mouse_button_state{};@@ -75,7 +75,7 @@ struct InterfaceUpdateCallback {class EmulatedDevices {public:/**- * Contains all input data related to external devices that aren't necesarily a controller+ * Contains all input data related to external devices that aren't necessarily a controller* This includes devices such as the keyboard or mouse*/explicit EmulatedDevices();diff --git a/src/core/hid/input_converter.cpp b/src/core/hid/input_converter.cppindex 3f7b8c0904..7cee39a538 100644--- a/src/core/hid/input_converter.cpp+++ b/src/core/hid/input_converter.cpp@@ -328,7 +328,7 @@ void SanitizeAnalog(Common::Input::AnalogStatus& analog, bool clamp_value) {// Apply center offsetraw_value -= properties.offset;- // Set initial values to be formated+ // Set initial values to be formattedvalue = raw_value;// Calculate vector size@@ -398,7 +398,7 @@ void SanitizeStick(Common::Input::AnalogStatus& analog_x, Common::Input::AnalogSraw_x = properties_x.inverted ? -raw_x : raw_x;raw_y = properties_y.inverted ? -raw_y : raw_y;- // Set initial values to be formated+ // Set initial values to be formattedx = raw_x;y = raw_y;diff --git a/src/core/hid/motion_input.h b/src/core/hid/motion_input.hindex e2c1bbf958..9f3fc1cf78 100644--- a/src/core/hid/motion_input.h+++ b/src/core/hid/motion_input.h@@ -84,7 +84,7 @@ private:// Gyroscope vector measurement in radians/s.Common::Vec3f gyro;- // Vector to be substracted from gyro measurements+ // Vector to be subtracted from gyro measurementsCommon::Vec3f gyro_bias;// Minimum gyro amplitude to detect if the device is movingdiff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cppindex d44f6e921b..74a04aa66d 100644--- a/src/core/hle/kernel/k_process.cpp+++ b/src/core/hle/kernel/k_process.cpp@@ -363,7 +363,7 @@ Result KProcess::LoadFromMetadata(const FileSys::ProgramMetadata& metadata, std:code_size + system_resource_size);R_RETURN(ResultLimitReached);}- // Initialize proces address space+ // Initialize process address spaceif (const Result result{page_table.InitializeForProcess(metadata.GetAddressSpaceType(), false, false, false, KMemoryManager::Pool::Application,0x8000000, code_size, &kernel.GetAppSystemResource(), resource_limit)};diff --git a/src/core/hle/kernel/k_process.h b/src/core/hle/kernel/k_process.hindex 5498090005..bd9b9f8764 100644--- a/src/core/hle/kernel/k_process.h+++ b/src/core/hle/kernel/k_process.h@@ -235,7 +235,7 @@ public:total_process_running_time_ticks += ticks;}- /// Gets the process schedule count, used for thread yelding+ /// Gets the process schedule count, used for thread yieldings64 GetScheduledCount() const {return schedule_count;}diff --git a/src/core/hle/kernel/svc/svc_event.cpp b/src/core/hle/kernel/svc/svc_event.cppindex a948493e87..8692b00f27 100644--- a/src/core/hle/kernel/svc/svc_event.cpp+++ b/src/core/hle/kernel/svc/svc_event.cpp@@ -85,7 +85,7 @@ Result CreateEvent(Core::System& system, Handle* out_write, Handle* out_read) {// Add the event to the handle table.R_TRY(handle_table.Add(out_write, event));- // Ensure that we maintaing a clean handle state on exit.+ // Ensure that we maintain a clean handle state on exit.auto handle_guard = SCOPE_GUARD({ handle_table.Remove(*out_write); });// Add the readable event to the handle table.diff --git a/src/core/hle/kernel/svc/svc_session.cpp b/src/core/hle/kernel/svc/svc_session.cppindex 00fd1605e7..6dd242dcf3 100644--- a/src/core/hle/kernel/svc/svc_session.cpp+++ b/src/core/hle/kernel/svc/svc_session.cpp@@ -81,7 +81,7 @@ Result CreateSession(Core::System& system, Handle* out_server, Handle* out_clienconst auto result = handle_table.Add(out_client, &session->GetClientSession());if (!R_SUCCEEDED(result)) {- // Ensure that we maintaing a clean handle state on exit.+ // Ensure that we maintain a clean handle state on exit.handle_table.Remove(*out_server);}diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cppindex 120282aa4d..6c29cb613e 100644--- a/src/core/hle/service/acc/acc.cpp+++ b/src/core/hle/service/acc/acc.cpp@@ -789,7 +789,7 @@ Result Module::Interface::InitializeApplicationInfoBase() {}LOG_WARNING(Service_ACC, "ApplicationInfo init required");- // TODO(ogniK): Actual initalization here+ // TODO(ogniK): Actual initialization herereturn ResultSuccess;}diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cppindex 97f7c66887..63fd5bfd6b 100644--- a/src/core/hle/service/acc/profile_manager.cpp+++ b/src/core/hle/service/acc/profile_manager.cpp@@ -287,7 +287,7 @@ void ProfileManager::StoreOpenedUsers() {});}-/// Return the users profile base and the unknown arbitary data.+/// Return the users profile base and the unknown arbitrary data.bool ProfileManager::GetProfileBaseAndData(std::optional<std::size_t> index, ProfileBase& profile,UserData& data) const {if (GetProfileBase(index, profile)) {@@ -297,13 +297,13 @@ bool ProfileManager::GetProfileBaseAndData(std::optional<std::size_t> index, Proreturn false;}-/// Return the users profile base and the unknown arbitary data.+/// Return the users profile base and the unknown arbitrary data.bool ProfileManager::GetProfileBaseAndData(UUID uuid, ProfileBase& profile, UserData& data) const {const auto idx = GetUserIndex(uuid);return GetProfileBaseAndData(idx, profile, data);}-/// Return the users profile base and the unknown arbitary data.+/// Return the users profile base and the unknown arbitrary data.bool ProfileManager::GetProfileBaseAndData(const ProfileInfo& user, ProfileBase& profile,UserData& data) const {return GetProfileBaseAndData(user.user_uuid, profile, data);diff --git a/src/core/hle/service/hid/controllers/gesture.cpp b/src/core/hle/service/hid/controllers/gesture.cppindex de0090cc52..03432f7cb6 100644--- a/src/core/hle/service/hid/controllers/gesture.cpp+++ b/src/core/hle/service/hid/controllers/gesture.cpp@@ -55,7 +55,7 @@ void Controller_Gesture::OnUpdate(const Core::Timing::CoreTiming& core_timing) {static_cast<f32>(shared_memory->gesture_lifo.timestamp - last_update_timestamp) /(1000 * 1000 * 1000);- // Only update if necesary+ // Only update if necessaryif (!ShouldUpdateGesture(gesture, time_difference)) {return;}diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cppindex 56c7275df9..4529ad643f 100644--- a/src/core/hle/service/hid/hid.cpp+++ b/src/core/hle/service/hid/hid.cpp@@ -690,7 +690,7 @@ void Hid::ResetSixAxisSensorFusionParameters(HLERequestContext& ctx) {const auto parameters{rp.PopRaw<Parameters>()};- // Since these parameters are unknow just use what HW outputs+ // Since these parameters are unknown just use what HW outputsconst Core::HID::SixAxisSensorFusionParameters fusion_parameters{.parameter1 = 0.03f,.parameter2 = 0.4f,diff --git a/src/core/hle/service/hid/irsensor/image_transfer_processor.cpp b/src/core/hle/service/hid/irsensor/image_transfer_processor.cppindex bc896a1e35..a268750cdf 100644--- a/src/core/hle/service/hid/irsensor/image_transfer_processor.cpp+++ b/src/core/hle/service/hid/irsensor/image_transfer_processor.cpp@@ -51,7 +51,7 @@ void ImageTransferProcessor::OnControllerUpdate(Core::HID::ControllerTriggerTypeconst auto camera_data = npad_device->GetCamera();- // This indicates how much ambient light is precent+ // This indicates how much ambient light is presentprocessor_state.ambient_noise_level = Core::IrSensor::CameraAmbientNoiseLevel::Low;processor_state.sampling_number = camera_data.sample;diff --git a/src/core/hle/service/nfp/amiibo_crypto.cpp b/src/core/hle/service/nfp/amiibo_crypto.cppindex ddf04b1d75..ad73edbdae 100644--- a/src/core/hle/service/nfp/amiibo_crypto.cpp+++ b/src/core/hle/service/nfp/amiibo_crypto.cpp@@ -137,7 +137,7 @@ EncryptedNTAG215File EncodedDataToNfcData(const NTAG215File& encoded_data) {}u32 GetTagPassword(const TagUuid& uuid) {- // Verifiy that the generated password is correct+ // Verify that the generated password is correctu32 password = 0xAA ^ (uuid.uid[1] ^ uuid.uid[3]);password &= (0x55 ^ (uuid.uid[2] ^ uuid.uid[4])) << 8;password &= (0xAA ^ (uuid.uid[3] ^ uuid.uid[5])) << 16;diff --git a/src/core/hle/service/nfp/amiibo_crypto.h b/src/core/hle/service/nfp/amiibo_crypto.hindex 1fa61174ed..c9fd67a39a 100644--- a/src/core/hle/service/nfp/amiibo_crypto.h+++ b/src/core/hle/service/nfp/amiibo_crypto.h@@ -94,7 +94,7 @@ bool LoadKeys(InternalKey& locked_secret, InternalKey& unfixed_info);/// Returns true if key_retail.bin existbool IsKeyAvailable();-/// Decodes encripted amiibo data returns true if output is valid+/// Decodes encrypted amiibo data returns true if output is validbool DecodeAmiibo(const EncryptedNTAG215File& encrypted_tag_data, NTAG215File& tag_data);/// Encodes plain amiibo data returns true if output is validdiff --git a/src/core/hle/service/ns/iplatform_service_manager.cpp b/src/core/hle/service/ns/iplatform_service_manager.cppindex cd27058817..6c2f5e70b3 100644--- a/src/core/hle/service/ns/iplatform_service_manager.cpp+++ b/src/core/hle/service/ns/iplatform_service_manager.cpp@@ -119,7 +119,7 @@ struct IPlatformServiceManager::Impl {break;}- // Derive key withing inverse xor+ // Derive key within inverse xorconst u32 KEY = GetU32Swapped(input.data() + cur_offset) ^ EXPECTED_MAGIC;const u32 SIZE = GetU32Swapped(input.data() + cur_offset + 4) ^ KEY;shared_font_regions.push_back(FontRegion{cur_offset + 8, SIZE});diff --git a/src/core/hle/service/nvdrv/devices/nvdevice.h b/src/core/hle/service/nvdrv/devices/nvdevice.hindex c562e04d21..ab1f30f9e6 100644--- a/src/core/hle/service/nvdrv/devices/nvdevice.h+++ b/src/core/hle/service/nvdrv/devices/nvdevice.h@@ -59,7 +59,7 @@ public:std::vector<u8>& output, std::vector<u8>& inline_output) = 0;/**- * Called once a device is openned+ * Called once a device is opened* @param fd The device fd*/virtual void OnOpen(DeviceFD fd) = 0;diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cppindex 277afe0b49..07417f0455 100644--- a/src/core/hle/service/nvdrv/devices/nvmap.cpp+++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp@@ -264,7 +264,7 @@ NvResult nvmap::IocFree(std::span<const u8> input, std::vector<u8>& output) {params.flags.raw = 0;params.flags.map_uncached.Assign(freeInfo->was_uncached);} else {- // This is possible when there's internel dups or other duplicates.+ // This is possible when there's internal dups or other duplicates.}std::memcpy(output.data(), ¶ms, sizeof(params));diff --git a/src/core/internal_network/network.cpp b/src/core/internal_network/network.cppindex f85c73ca64..bf97b0ebc5 100644--- a/src/core/internal_network/network.cpp+++ b/src/core/internal_network/network.cpp@@ -572,7 +572,7 @@ std::pair<s32, Errno> Socket::SendTo(u32 flags, std::span<const u8> message,ASSERT(flags == 0);const sockaddr* to = nullptr;- const int tolen = addr ? sizeof(sockaddr) : 0;+ const int to_len = addr ? sizeof(sockaddr) : 0;sockaddr host_addr_in;if (addr) {@@ -581,7 +581,7 @@ std::pair<s32, Errno> Socket::SendTo(u32 flags, std::span<const u8> message,}const auto result = sendto(fd, reinterpret_cast<const char*>(message.data()),- static_cast<int>(message.size()), 0, to, tolen);+ static_cast<int>(message.size()), 0, to, to_len);if (result != SOCKET_ERROR) {return {static_cast<s32>(result), Errno::SUCCESS};}diff --git a/src/input_common/drivers/gc_adapter.cpp b/src/input_common/drivers/gc_adapter.cppindex d09ff178b6..3ad34884d4 100644--- a/src/input_common/drivers/gc_adapter.cpp+++ b/src/input_common/drivers/gc_adapter.cpp@@ -344,7 +344,7 @@ bool GCAdapter::IsVibrationEnabled([[maybe_unused]] const PadIdentifier& identifvoid GCAdapter::UpdateVibrations() {// Use 8 states to keep the switching between on/off fast enough for- // a human to feel different vibration strenght+ // a human to feel different vibration strength// More states == more rumble strengths == slower update timeconstexpr u8 vibration_states = 8;diff --git a/src/input_common/drivers/joycon.h b/src/input_common/drivers/joycon.hindex 473ba1b9e7..5b40817e28 100644--- a/src/input_common/drivers/joycon.h+++ b/src/input_common/drivers/joycon.h@@ -62,7 +62,7 @@ private:/// Registers controllers, clears all data and starts the scan threadvoid Setup();- /// Actively searchs for new devices+ /// Actively searches for new devicesvoid ScanThread(std::stop_token stop_token);/// Returns true if device is valid and not registereddiff --git a/src/input_common/drivers/keyboard.cpp b/src/input_common/drivers/keyboard.cppindex 71e612fbfb..2567df9af1 100644--- a/src/input_common/drivers/keyboard.cpp+++ b/src/input_common/drivers/keyboard.cpp@@ -24,7 +24,7 @@ constexpr PadIdentifier keyboard_modifier_identifier = {};Keyboard::Keyboard(std::string input_engine_) : InputEngine(std::move(input_engine_)) {- // Keyboard is broken into 3 diferent sets:+ // Keyboard is broken into 3 different sets:// key: Unfiltered intended for controllers.// keyboard_key: Allows only Settings::NativeKeyboard::Keys intended for keyboard emulation.// keyboard_modifier: Allows only Settings::NativeKeyboard::Modifiers intended for keyboarddiff --git a/src/input_common/drivers/mouse.cpp b/src/input_common/drivers/mouse.cppindex 94e92c37d9..4fb2a6cfa9 100644--- a/src/input_common/drivers/mouse.cpp+++ b/src/input_common/drivers/mouse.cpp@@ -142,7 +142,7 @@ void Mouse::Move(int x, int y, int center_x, int center_y) {return;}- // Make slow movements at least 3 units on lenght+ // Make slow movements at least 3 units on lengthif (move_distance < 3.0f) {// Normalize valuemouse_change /= move_distance;@@ -154,7 +154,7 @@ void Mouse::Move(int x, int y, int center_x, int center_y) {const auto last_move_distance = last_mouse_change.Length();- // Make fast movements clamp to 8 units on lenght+ // Make fast movements clamp to 8 units on lengthif (last_move_distance > 8.0f) {// Normalize valuelast_mouse_change /= last_move_distance;diff --git a/src/input_common/drivers/sdl_driver.cpp b/src/input_common/drivers/sdl_driver.cppindex 5c20b34260..f7f0c7eaaf 100644--- a/src/input_common/drivers/sdl_driver.cpp+++ b/src/input_common/drivers/sdl_driver.cpp@@ -748,7 +748,7 @@ ButtonMapping SDLDriver::GetButtonMappingForDevice(const Common::ParamPackage& p// This list is missing ZL/ZR since those are not considered buttons in SDL GameController.// We will add those afterwards- // This list also excludes Screenshot since theres not really a mapping for that+ // This list also excludes Screenshot since there's not really a mapping for thatButtonBindings switch_to_sdl_button;if (SDL_GameControllerGetType(controller) == SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO) {@@ -1007,7 +1007,7 @@ MotionMapping SDLDriver::GetMotionMappingForDevice(const Common::ParamPackage& pCommon::Input::ButtonNames SDLDriver::GetUIName(const Common::ParamPackage& params) const {if (params.Has("button")) {- // TODO(German77): Find how to substitue the values for real button names+ // TODO(German77): Find how to substitute the values for real button namesreturn Common::Input::ButtonNames::Value;}if (params.Has("hat")) {diff --git a/src/input_common/drivers/virtual_amiibo.cpp b/src/input_common/drivers/virtual_amiibo.cppindex 4a0268a4dc..304f4c70bf 100644--- a/src/input_common/drivers/virtual_amiibo.cpp+++ b/src/input_common/drivers/virtual_amiibo.cpp@@ -57,7 +57,7 @@ Common::Input::NfcState VirtualAmiibo::WriteNfcData(}if (!nfc_file.Write(data)) {- LOG_ERROR(Service_NFP, "Error writting to file");+ LOG_ERROR(Service_NFP, "Error writing to file");return Common::Input::NfcState::WriteFailed;}diff --git a/src/input_common/helpers/joycon_driver.cpp b/src/input_common/helpers/joycon_driver.cppindex 78cc5893c7..83429a3368 100644--- a/src/input_common/helpers/joycon_driver.cpp+++ b/src/input_common/helpers/joycon_driver.cpp@@ -164,8 +164,8 @@ void JoyconDriver::InputThread(std::stop_token stop_token) {void JoyconDriver::OnNewData(std::span<u8> buffer) {const auto report_mode = static_cast<ReportMode>(buffer[0]);- // Packages can be a litte bit inconsistent. Average the delta time to provide a smoother motion- // experience+ // Packages can be a little bit inconsistent. Average the delta time to provide a smoother+ // motion experienceswitch (report_mode) {case ReportMode::STANDARD_FULL_60HZ:case ReportMode::NFC_IR_MODE_60HZ:diff --git a/src/input_common/helpers/joycon_driver.h b/src/input_common/helpers/joycon_driver.hindex b52a13ecfc..72a9e71dcf 100644--- a/src/input_common/helpers/joycon_driver.h+++ b/src/input_common/helpers/joycon_driver.h@@ -73,7 +73,7 @@ private:/// Main thread, actively request new data from the handlevoid InputThread(std::stop_token stop_token);- /// Called everytime a valid package arrives+ /// Called every time a valid package arrivesvoid OnNewData(std::span<u8> buffer);/// Updates device configuration to enable or disable features@@ -110,7 +110,7 @@ private:bool amiibo_detected{};bool is_ring_disabled_by_irs{};- // Harware configuration+ // Hardware configurationu8 leds{};ReportMode mode{};bool passive_enabled{}; // Low power mode, Ideal for multiple controllers at the same timediff --git a/src/input_common/helpers/joycon_protocol/common_protocol.h b/src/input_common/helpers/joycon_protocol/common_protocol.hindex f44f73ba4e..62cae739ae 100644--- a/src/input_common/helpers/joycon_protocol/common_protocol.h+++ b/src/input_common/helpers/joycon_protocol/common_protocol.h@@ -68,7 +68,7 @@ public:}/**- * Waits for incoming data of the joycon device that matchs the subcommand+ * Waits for incoming data of the joycon device that matches the subcommand* @param sub_command type of data to be returned* @returns a buffer containing the response*/@@ -137,7 +137,7 @@ public:DriverResult EnableMCU(bool enable);/**- * Configures the MCU to the correspoinding mode+ * Configures the MCU to the corresponding mode* @param MCUConfig configuration*/DriverResult ConfigureMCU(const MCUConfig& config);diff --git a/src/input_common/helpers/udp_protocol.cpp b/src/input_common/helpers/udp_protocol.cppindex 994380d212..e54a8fce1d 100644--- a/src/input_common/helpers/udp_protocol.cpp+++ b/src/input_common/helpers/udp_protocol.cpp@@ -25,7 +25,7 @@ namespace Response {/*** Returns Type if the packet is valid, else none*- * Note: Modifies the buffer to zero out the crc (since thats the easiest way to check without+ * Note: Modifies the buffer to zero out the crc (since that's the easiest way to check without* copying the buffer)*/std::optional<Type> Validate(u8* data, std::size_t size) {diff --git a/src/input_common/main.h b/src/input_common/main.hindex 1207d786cb..d64a6cb4c6 100644--- a/src/input_common/main.h+++ b/src/input_common/main.h@@ -132,7 +132,7 @@ public:/// Retrieves the motion mappings for the given device.[[nodiscard]] MotionMapping GetMotionMappingForDevice(const Common::ParamPackage& device) const;- /// Returns an enum contaning the name to be displayed from the input engine.+ /// Returns an enum containing the name to be displayed from the input engine.[[nodiscard]] Common::Input::ButtonNames GetButtonName(const Common::ParamPackage& params) const;diff --git a/src/network/packet.h b/src/network/packet.hindex e69217488c..9aa2a2c9cf 100644--- a/src/network/packet.h+++ b/src/network/packet.h@@ -9,7 +9,7 @@namespace Network {-/// A class that serializes data for network transfer. It also handles endianess+/// A class that serializes data for network transfer. It also handles endiannessclass Packet {public:Packet() = default;diff --git a/src/network/room.cpp b/src/network/room.cppindex dc5dbce7fa..e456ea09c6 100644--- a/src/network/room.cpp+++ b/src/network/room.cpp@@ -27,7 +27,7 @@ public:std::atomic<State> state{State::Closed}; ///< Current state of the room.RoomInformation room_information; ///< Information about this room.- std::string verify_uid; ///< A GUID which may be used for verfication.+ std::string verify_uid; ///< A GUID which may be used for verification.mutable std::mutex verify_uid_mutex; ///< Mutex for verify_uidstd::string password; ///< The password required to connect to this room.diff --git a/src/network/room_member.h b/src/network/room_member.hindex 0d64172945..33ac18e723 100644--- a/src/network/room_member.h+++ b/src/network/room_member.h@@ -71,7 +71,7 @@ public:Idle, ///< Default state (i.e. not connected)Joining, ///< The client is attempting to join a room.Joined, ///< The client is connected to the room and is ready to send/receive packets.- Moderator, ///< The client is connnected to the room and is granted mod permissions.+ Moderator, ///< The client is connected to the room and is granted mod permissions.};enum class Error : u8 {@@ -201,7 +201,7 @@ public:/*** Binds a function to an event that will be triggered every time the State of the member- * changed. The function wil be called every time the event is triggered. The callback function+ * changed. The function will be called every time the event is triggered. The callback function* must not bind or unbind a function. Doing so will cause a deadlock* @param callback The function to call* @return A handle used for removing the function from the registered list@@ -210,8 +210,8 @@ public:/*** Binds a function to an event that will be triggered every time an error happened. The- * function wil be called every time the event is triggered. The callback function must not bind- * or unbind a function. Doing so will cause a deadlock+ * function will be called every time the event is triggered. The callback function must not+ * bind or unbind a function. Doing so will cause a deadlock* @param callback The function to call* @return A handle used for removing the function from the registered list*/@@ -219,7 +219,7 @@ public:/*** Binds a function to an event that will be triggered every time a ProxyPacket is received.- * The function wil be called everytime the event is triggered.+ * The function will be called every time the event is triggered.* The callback function must not bind or unbind a function. Doing so will cause a deadlock* @param callback The function to call* @return A handle used for removing the function from the registered list@@ -229,7 +229,7 @@ public:/*** Binds a function to an event that will be triggered every time an LDNPacket is received.- * The function wil be called everytime the event is triggered.+ * The function will be called every time the event is triggered.* The callback function must not bind or unbind a function. Doing so will cause a deadlock* @param callback The function to call* @return A handle used for removing the function from the registered list@@ -239,7 +239,7 @@ public:/*** Binds a function to an event that will be triggered every time the RoomInformation changes.- * The function wil be called every time the event is triggered.+ * The function will be called every time the event is triggered.* The callback function must not bind or unbind a function. Doing so will cause a deadlock* @param callback The function to call* @return A handle used for removing the function from the registered list@@ -249,7 +249,7 @@ public:/*** Binds a function to an event that will be triggered every time a ChatMessage is received.- * The function wil be called every time the event is triggered.+ * The function will be called every time the event is triggered.* The callback function must not bind or unbind a function. Doing so will cause a deadlock* @param callback The function to call* @return A handle used for removing the function from the registered listdiff --git a/src/shader_recompiler/backend/glsl/emit_glsl_atomic.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_atomic.cppindex 911181c43b..376a058277 100644--- a/src/shader_recompiler/backend/glsl/emit_glsl_atomic.cpp+++ b/src/shader_recompiler/backend/glsl/emit_glsl_atomic.cpp@@ -398,162 +398,162 @@ void EmitStorageAtomicMaxF32x2(EmitContext& ctx, IR::Inst& inst, const IR::Value}void EmitGlobalAtomicIAdd32(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicSMin32(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicUMin32(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicSMax32(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicUMax32(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicInc32(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicDec32(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicAnd32(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicOr32(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicXor32(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicExchange32(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicIAdd64(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicSMin64(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicUMin64(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicSMax64(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicUMax64(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicInc64(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicDec64(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicAnd64(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicOr64(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicXor64(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicExchange64(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicIAdd32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicSMin32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicUMin32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicSMax32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicUMax32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicInc32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicDec32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicAnd32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicOr32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicXor32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicExchange32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicAddF32(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicAddF16x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicAddF32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicMinF16x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicMinF32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicMaxF16x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}void EmitGlobalAtomicMaxF32x2(EmitContext&) {- throw NotImplementedException("GLSL Instrucion");+ throw NotImplementedException("GLSL Instruction");}} // namespace Shader::Backend::GLSLdiff --git a/src/shader_recompiler/backend/glsl/glsl_emit_context.h b/src/shader_recompiler/backend/glsl/glsl_emit_context.hindex dfd10ac281..7587f7bab3 100644--- a/src/shader_recompiler/backend/glsl/glsl_emit_context.h+++ b/src/shader_recompiler/backend/glsl/glsl_emit_context.h@@ -49,7 +49,7 @@ public:void Add(const char* format_str, IR::Inst& inst, Args&&... args) {const auto var_def{var_alloc.AddDefine(inst, type)};if (var_def.empty()) {- // skip assigment.+ // skip assignment.code += fmt::format(fmt::runtime(format_str + 3), std::forward<Args>(args)...);} else {code += fmt::format(fmt::runtime(format_str), var_def, std::forward<Args>(args)...);diff --git a/src/tests/common/ring_buffer.cpp b/src/tests/common/ring_buffer.cppindex 7dee988c8d..e85f9977b5 100644--- a/src/tests/common/ring_buffer.cpp+++ b/src/tests/common/ring_buffer.cpp@@ -52,7 +52,7 @@ TEST_CASE("RingBuffer: Basic Tests", "[common]") {REQUIRE(buf.Size() == 1U);- // Pushing more values than space available should partially suceed.+ // Pushing more values than space available should partially succeed.{std::vector<char> to_push(6);std::iota(to_push.begin(), to_push.end(), 88);diff --git a/src/tests/common/scratch_buffer.cpp b/src/tests/common/scratch_buffer.cppindex 132f139fa8..26e4017603 100644--- a/src/tests/common/scratch_buffer.cpp+++ b/src/tests/common/scratch_buffer.cpp@@ -191,7 +191,7 @@ TEST_CASE("ScratchBuffer: Span Writes", "[common]") {for (size_t i = 0; i < buf_span.size(); ++i) {const auto new_value = static_cast<u8>(i + 1U);- // Writes to a span of the scratch buffer will propogate to the buffer itself+ // Writes to a span of the scratch buffer will propagate to the buffer itselfbuf_span[i] = new_value;REQUIRE(buf[i] == new_value);}diff --git a/src/video_core/control/channel_state_cache.h b/src/video_core/control/channel_state_cache.hindex cdaf4f8d59..46bc9e3227 100644--- a/src/video_core/control/channel_state_cache.h+++ b/src/video_core/control/channel_state_cache.h@@ -44,7 +44,7 @@ public:template <class P>class ChannelSetupCaches {public:- /// Operations for seting the channel of execution.+ /// Operations for setting the channel of execution.virtual ~ChannelSetupCaches();/// Create channel state.diff --git a/src/video_core/engines/sw_blitter/blitter.cpp b/src/video_core/engines/sw_blitter/blitter.cppindex 2f1ea46265..3c9f385597 100644--- a/src/video_core/engines/sw_blitter/blitter.cpp+++ b/src/video_core/engines/sw_blitter/blitter.cpp@@ -193,7 +193,7 @@ bool SoftwareBlitEngine::Blit(Fermi2D::Surface& src, Fermi2D::Surface& dst,output_converter->ConvertFrom(impl->intermediate_dst, impl->dst_buffer);};- // Do actuall Blit+ // Do actual Blitimpl->dst_buffer.resize(dst_copy_size);if (src.linear == Fermi2D::MemoryLayout::BlockLinear) {diff --git a/src/video_core/host_shaders/astc_decoder.comp b/src/video_core/host_shaders/astc_decoder.compindex d608678a35..bf2693559e 100644--- a/src/video_core/host_shaders/astc_decoder.comp+++ b/src/video_core/host_shaders/astc_decoder.comp@@ -125,7 +125,7 @@ uvec4 local_buff;uvec4 color_endpoint_data;int color_bitsread = 0;-// Four values, two endpoints, four maximum paritions+// Four values, two endpoints, four maximum partitionsuint color_values[32];int colvals_index = 0;diff --git a/src/video_core/host_shaders/opengl_smaa.glsl b/src/video_core/host_shaders/opengl_smaa.glslindex 3cbe87bbfb..419f89bcab 100644--- a/src/video_core/host_shaders/opengl_smaa.glsl+++ b/src/video_core/host_shaders/opengl_smaa.glsl@@ -97,7 +97,7 @@* half-rate linear filtering on GCN.** If SMAA is applied to 64-bit color buffers, switching to point filtering- * when accesing them will increase the performance. Search for+ * when accessing them will increase the performance. Search for* 'SMAASamplePoint' to see which textures may benefit from point* filtering, and where (which is basically the color input in the edge* detection and resolve passes).diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.hindex cf56392efa..51ae2de689 100644--- a/src/video_core/memory_manager.h+++ b/src/video_core/memory_manager.h@@ -103,8 +103,8 @@ public:/*** Returns a vector with all the subranges of cpu addresses mapped beneath.- * if the region is continous, a single pair will be returned. If it's unmapped, an empty vector- * will be returned;+ * if the region is continuous, a single pair will be returned. If it's unmapped, an empty+ * vector will be returned;*/std::vector<std::pair<GPUVAddr, std::size_t>> GetSubmappedRange(GPUVAddr gpu_addr,std::size_t size) const;diff --git a/src/video_core/query_cache.h b/src/video_core/query_cache.hindex 00ce53e3e6..8906ba6d8a 100644--- a/src/video_core/query_cache.h+++ b/src/video_core/query_cache.h@@ -341,7 +341,7 @@ public:/// Flushes the query to guest memory.virtual void Flush() {- // When counter is nullptr it means that it's just been reseted. We are supposed to write a+ // When counter is nullptr it means that it's just been reset. We are supposed to write a// zero in these cases.const u64 value = counter ? counter->Query() : 0;std::memcpy(host_ptr, &value, sizeof(u64));diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cppindex 33748762f6..abe0f35826 100644--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp@@ -576,7 +576,7 @@ bool RasterizerOpenGL::AccelerateConditionalRendering() {// Reimplement Host conditional rendering.return false;}- // Medium / Low Hack: stub any checks on queries writen into the buffer cache.+ // Medium / Low Hack: stub any checks on queries written into the buffer cache.const GPUVAddr condition_address{maxwell3d->regs.render_enable.Address()};Maxwell::ReportSemaphore::Compare cmp;if (gpu_memory->IsMemoryDirty(condition_address, sizeof(cmp),diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.hindex 1f6562ef82..ad6978bd03 100644--- a/src/video_core/renderer_opengl/gl_rasterizer.h+++ b/src/video_core/renderer_opengl/gl_rasterizer.h@@ -162,7 +162,7 @@ private:/// Syncs the cull mode to match the guest statevoid SyncCullMode();- /// Syncs the primitve restart to match the guest state+ /// Syncs the primitive restart to match the guest statevoid SyncPrimitiveRestart();/// Syncs the depth test state to match the guest state@@ -246,7 +246,7 @@ private:std::array<GLuint, MAX_TEXTURES> texture_handles{};std::array<GLuint, MAX_IMAGES> image_handles{};- /// Number of commands queued to the OpenGL driver. Resetted on flush.+ /// Number of commands queued to the OpenGL driver. Reset on flush.size_t num_queued_commands = 0;bool has_written_global_memory = false;diff --git a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp b/src/video_core/renderer_vulkan/fixed_pipeline_state.cppindex f8398b5111..e7df32d848 100644--- a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp+++ b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp@@ -271,7 +271,7 @@ bool FixedPipelineState::operator==(const FixedPipelineState& rhs) const noexcepu32 FixedPipelineState::PackComparisonOp(Maxwell::ComparisonOp op) noexcept {// OpenGL enums go from 0x200 to 0x207 and the others from 1 to 8- // If we substract 0x200 to OpenGL enums and 1 to the others we get a 0-7 range.+ // If we subtract 0x200 to OpenGL enums and 1 to the others we get a 0-7 range.// Perfect for a hash.const u32 value = static_cast<u32>(op);return value - (value >= 0x200 ? 0x200 : 1);@@ -322,8 +322,8 @@ Maxwell::StencilOp::Op FixedPipelineState::UnpackStencilOp(u32 packed) noexcept}u32 FixedPipelineState::PackCullFace(Maxwell::CullFace cull) noexcept {- // FrontAndBack is 0x408, by substracting 0x406 in it we get 2.- // Individual cull faces are in 0x404 and 0x405, substracting 0x404 we get 0 and 1.+ // FrontAndBack is 0x408, by subtracting 0x406 in it we get 2.+ // Individual cull faces are in 0x404 and 0x405, subtracting 0x404 we get 0 and 1.const u32 value = static_cast<u32>(cull);return value - (value == 0x408 ? 0x406 : 0x404);}diff --git a/src/video_core/renderer_vulkan/vk_command_pool.cpp b/src/video_core/renderer_vulkan/vk_command_pool.cppindex 2f09de1c1a..d0dbf7ca54 100644--- a/src/video_core/renderer_vulkan/vk_command_pool.cpp+++ b/src/video_core/renderer_vulkan/vk_command_pool.cpp@@ -22,8 +22,8 @@ CommandPool::CommandPool(MasterSemaphore& master_semaphore_, const Device& devicCommandPool::~CommandPool() = default;void CommandPool::Allocate(size_t begin, size_t end) {- // Command buffers are going to be commited, recorded, executed every single usage cycle.- // They are also going to be reseted when commited.+ // Command buffers are going to be committed, recorded, executed every single usage cycle.+ // They are also going to be reset when committed.Pool& pool = pools.emplace_back();pool.handle = device.GetLogical().CreateCommandPool({.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO,diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cppindex 855488ead1..673ab478e3 100644--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp+++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp@@ -671,7 +671,7 @@ bool RasterizerVulkan::AccelerateConditionalRendering() {// TODO(Blinkhawk): Reimplement Host conditional rendering.return false;}- // Medium / Low Hack: stub any checks on queries writen into the buffer cache.+ // Medium / Low Hack: stub any checks on queries written into the buffer cache.const GPUVAddr condition_address{maxwell3d->regs.render_enable.Address()};Maxwell::ReportSemaphore::Compare cmp;if (gpu_memory->IsMemoryDirty(condition_address, sizeof(cmp),diff --git a/src/video_core/renderer_vulkan/vk_resource_pool.cpp b/src/video_core/renderer_vulkan/vk_resource_pool.cppindex 6c8ac22f43..6572f82ba9 100644--- a/src/video_core/renderer_vulkan/vk_resource_pool.cpp+++ b/src/video_core/renderer_vulkan/vk_resource_pool.cpp@@ -37,7 +37,7 @@ size_t ResourcePool::CommitResource() {found = free_resource;}}- // Free iterator is hinted to the resource after the one that's been commited.+ // Free iterator is hinted to the resource after the one that's been committed.hint_iterator = (*found + 1) % ticks.size();return *found;}@@ -46,7 +46,7 @@ size_t ResourcePool::ManageOverflow() {const size_t old_capacity = ticks.size();Grow();- // The last entry is guaranted to be free, since it's the first element of the freshly+ // The last entry is guaranteed to be free, since it's the first element of the freshly// allocated resources.return old_capacity;}diff --git a/src/video_core/renderer_vulkan/vk_swapchain.cpp b/src/video_core/renderer_vulkan/vk_swapchain.cppindex b6810eef9a..85fdce6e55 100644--- a/src/video_core/renderer_vulkan/vk_swapchain.cpp+++ b/src/video_core/renderer_vulkan/vk_swapchain.cpp@@ -159,7 +159,7 @@ void Swapchain::CreateSwapchain(const VkSurfaceCapabilitiesKHR& capabilities, bopresent_mode = ChooseSwapPresentMode(present_modes);u32 requested_image_count{capabilities.minImageCount + 1};- // Ensure Tripple buffering if possible.+ // Ensure Triple buffering if possible.if (capabilities.maxImageCount > 0) {if (requested_image_count > capabilities.maxImageCount) {requested_image_count = capabilities.maxImageCount;diff --git a/src/video_core/renderer_vulkan/vk_update_descriptor.cpp b/src/video_core/renderer_vulkan/vk_update_descriptor.cppindex 4d4a6753b7..009dab0b67 100644--- a/src/video_core/renderer_vulkan/vk_update_descriptor.cpp+++ b/src/video_core/renderer_vulkan/vk_update_descriptor.cpp@@ -25,7 +25,7 @@ void UpdateDescriptorQueue::TickFrame() {void UpdateDescriptorQueue::Acquire() {// Minimum number of entries required.- // This is the maximum number of entries a single draw call migth use.+ // This is the maximum number of entries a single draw call might use.static constexpr size_t MIN_ENTRIES = 0x400;if (std::distance(payload.data(), payload_cursor) + MIN_ENTRIES >= payload.max_size()) {diff --git a/src/video_core/texture_cache/image_base.h b/src/video_core/texture_cache/image_base.hindex e8fa592d2b..329396bb64 100644--- a/src/video_core/texture_cache/image_base.h+++ b/src/video_core/texture_cache/image_base.h@@ -25,7 +25,7 @@ enum class ImageFlagBits : u32 {Registered = 1 << 6, ///< True when the image is registeredPicked = 1 << 7, ///< Temporary flag to mark the image as pickedRemapped = 1 << 8, ///< Image has been remapped.- Sparse = 1 << 9, ///< Image has non continous submemory.+ Sparse = 1 << 9, ///< Image has non continuous submemory.// Garbage Collection FlagsBadOverlap = 1 << 10, ///< This image overlaps other but doesn't fit, has higherdiff --git a/src/video_core/textures/astc.cpp b/src/video_core/textures/astc.cppindex 4381eed1d6..a68bc0d775 100644--- a/src/video_core/textures/astc.cpp+++ b/src/video_core/textures/astc.cpp@@ -1571,7 +1571,7 @@ static void DecompressBlock(std::span<const u8, 16> inBuf, const u32 blockWidth,assert(strm.GetBitsRead() + weightParams.GetPackedBitSize() == 128);// Decode both color data and texel weight data- u32 colorValues[32]; // Four values, two endpoints, four maximum paritions+ u32 colorValues[32]; // Four values, two endpoints, four maximum partitionsDecodeColorValues(colorValues, colorEndpointData, colorEndpointMode, nPartitions,colorDataBits);diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cppindex 48f1a3d145..df348af555 100644--- a/src/video_core/vulkan_common/vulkan_device.cpp+++ b/src/video_core/vulkan_common/vulkan_device.cpp@@ -417,7 +417,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHRsets_per_pool = 64;if (is_amd_driver) {- // AMD drivers need a higher amount of Sets per Pool in certain circunstances like in XC2.+ // AMD drivers need a higher amount of Sets per Pool in certain circumstances like in XC2.sets_per_pool = 96;// Disable VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT on AMD GCN4 and lower as it is broken.if (!features.shader_float16_int8.shaderFloat16) {diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.hindex 0662a2d9fc..41b5da18ac 100644--- a/src/video_core/vulkan_common/vulkan_device.h+++ b/src/video_core/vulkan_common/vulkan_device.h@@ -180,7 +180,7 @@ public:~Device();/**- * Returns a format supported by the device for the passed requeriments.+ * Returns a format supported by the device for the passed requirements.* @param wanted_format The ideal format to be returned. It may not be the returned format.* @param wanted_usage The usage that must be fulfilled even if the format is not supported.* @param format_type Format type usage.@@ -259,12 +259,12 @@ public:bool ShouldBoostClocks() const;- /// Returns uniform buffer alignment requeriment.+ /// Returns uniform buffer alignment requirement.VkDeviceSize GetUniformBufferAlignment() const {return properties.properties.limits.minUniformBufferOffsetAlignment;}- /// Returns storage alignment requeriment.+ /// Returns storage alignment requirement.VkDeviceSize GetStorageBufferAlignment() const {return properties.properties.limits.minStorageBufferOffsetAlignment;}@@ -656,7 +656,7 @@ private:bool is_integrated{}; ///< Is GPU an iGPU.bool is_virtual{}; ///< Is GPU a virtual GPU.bool is_non_gpu{}; ///< Is SoftwareRasterizer, FPGA, non-GPU device.- bool has_broken_cube_compatibility{}; ///< Has broken cube compatiblity bit+ bool has_broken_cube_compatibility{}; ///< Has broken cube compatibility bitbool has_renderdoc{}; ///< Has RenderDoc attachedbool has_nsight_graphics{}; ///< Has Nsight Graphics attachedbool supports_d24_depth{}; ///< Supports D24 depth buffers.diff --git a/src/video_core/vulkan_common/vulkan_wrapper.h b/src/video_core/vulkan_common/vulkan_wrapper.hindex e86f661cb0..4ff328a21e 100644--- a/src/video_core/vulkan_common/vulkan_wrapper.h+++ b/src/video_core/vulkan_common/vulkan_wrapper.h@@ -68,7 +68,7 @@ public:constexpr Span(const Range& range) : ptr{std::data(range)}, num{std::size(range)} {}/// Construct a span from a pointer and a size.- /// This is inteded for subranges.+ /// This is intended for subranges.constexpr Span(const T* ptr_, std::size_t num_) noexcept : ptr{ptr_}, num{num_} {}/// Returns the data pointer by the span.@@ -390,11 +390,11 @@ public:Handle(const Handle&) = delete;Handle& operator=(const Handle&) = delete;- /// Construct a handle transfering the ownership from another handle.+ /// Construct a handle transferring the ownership from another handle.Handle(Handle&& rhs) noexcept: handle{std::exchange(rhs.handle, nullptr)}, owner{rhs.owner}, dld{rhs.dld} {}- /// Assign the current handle transfering the ownership from another handle.+ /// Assign the current handle transferring the ownership from another handle./// Destroys any previously held object.Handle& operator=(Handle&& rhs) noexcept {Release();@@ -463,10 +463,10 @@ public:Handle(const Handle&) = delete;Handle& operator=(const Handle&) = delete;- /// Construct a handle transfering ownership from another handle.+ /// Construct a handle transferring ownership from another handle.Handle(Handle&& rhs) noexcept : handle{std::exchange(rhs.handle, nullptr)}, dld{rhs.dld} {}- /// Assign the current handle transfering the ownership from another handle.+ /// Assign the current handle transferring the ownership from another handle./// Destroys any previously held object.Handle& operator=(Handle&& rhs) noexcept {Release();@@ -533,12 +533,12 @@ public:PoolAllocations(const PoolAllocations&) = delete;PoolAllocations& operator=(const PoolAllocations&) = delete;- /// Construct an allocation transfering ownership from another allocation.+ /// Construct an allocation transferring ownership from another allocation.PoolAllocations(PoolAllocations&& rhs) noexcept: allocations{std::move(rhs.allocations)}, num{rhs.num}, device{rhs.device}, pool{rhs.pool},dld{rhs.dld} {}- /// Assign an allocation transfering ownership from another allocation.+ /// Assign an allocation transferring ownership from another allocation.PoolAllocations& operator=(PoolAllocations&& rhs) noexcept {allocations = std::move(rhs.allocations);num = rhs.num;diff --git a/src/yuzu/applets/qt_web_browser.h b/src/yuzu/applets/qt_web_browser.hindex e8fe511edb..ceae7926e5 100644--- a/src/yuzu/applets/qt_web_browser.h+++ b/src/yuzu/applets/qt_web_browser.h@@ -110,7 +110,7 @@ private:/*** Handles button presses to execute functions assigned in yuzu_key_callbacks.* yuzu_key_callbacks contains specialized functions for the buttons in the window footer- * that can be overriden by games to achieve desired functionality.+ * that can be overridden by games to achieve desired functionality.** @tparam HIDButton The list of buttons contained in yuzu_key_callbacks*/diff --git a/src/yuzu/compatdb.cpp b/src/yuzu/compatdb.cppindex 05f49c0d2f..a57a96a38e 100644--- a/src/yuzu/compatdb.cpp+++ b/src/yuzu/compatdb.cpp@@ -76,7 +76,7 @@ void CompatDB::Submit() {compatibility_Graphical->addButton(ui->radioButton_Audio_Minor, 1);compatibility_Audio->addButton(ui->radioButton_Audio_No, 2);- const int compatiblity = static_cast<int>(CalculateCompatibility());+ const int compatibility = static_cast<int>(CalculateCompatibility());switch ((static_cast<CompatDBPage>(currentId()))) {case CompatDBPage::Intro:@@ -113,9 +113,9 @@ void CompatDB::Submit() {break;case CompatDBPage::Final:back();- LOG_INFO(Frontend, "Compatibility Rating: {}", compatiblity);+ LOG_INFO(Frontend, "Compatibility Rating: {}", compatibility);telemetry_session.AddField(Common::Telemetry::FieldType::UserFeedback, "Compatibility",- compatiblity);+ compatibility);button(NextButton)->setEnabled(false);button(NextButton)->setText(tr("Submitting"));diff --git a/src/yuzu/configuration/configure_hotkeys.h b/src/yuzu/configuration/configure_hotkeys.hindex b45ecb185b..e8e4143208 100644--- a/src/yuzu/configuration/configure_hotkeys.h+++ b/src/yuzu/configuration/configure_hotkeys.h@@ -34,7 +34,7 @@ public:/*** Populates the hotkey list widget using data from the provided registry.- * Called everytime the Configure dialog is opened.+ * Called every time the Configure dialog is opened.* @param registry The HotkeyRegistry whose data is used to populate the list.*/void Populate(const HotkeyRegistry& registry);diff --git a/src/yuzu/configuration/configure_input_player.h b/src/yuzu/configuration/configure_input_player.hindex 99a9c875de..d4df43d73b 100644--- a/src/yuzu/configuration/configure_input_player.h+++ b/src/yuzu/configuration/configure_input_player.h@@ -224,7 +224,7 @@ private:/// Bottom row is where console wide settings are held, and its "owned" by the parent/// ConfigureInput widget. On show, add this widget to the main layout. This will change the- /// parent of the widget to this widget (but thats fine).+ /// parent of the widget to this widget (but that's fine).QWidget* bottom_row;Core::HID::HIDCore& hid_core;diff --git a/src/yuzu/configuration/configure_input_player_widget.h b/src/yuzu/configuration/configure_input_player_widget.hindex 0e9e95e85e..267d134de6 100644--- a/src/yuzu/configuration/configure_input_player_widget.h+++ b/src/yuzu/configuration/configure_input_player_widget.h@@ -43,7 +43,7 @@ public:// Handles emulated controller eventsvoid ControllerUpdate(Core::HID::ControllerTriggerType type);- // Updates input on sheduled interval+ // Updates input on scheduled intervalvoid UpdateInput();protected:diff --git a/src/yuzu/loading_screen.cpp b/src/yuzu/loading_screen.cppindex e263a07a78..b081fff6b6 100644--- a/src/yuzu/loading_screen.cpp+++ b/src/yuzu/loading_screen.cpp@@ -153,7 +153,7 @@ void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size}QString estimate;- // If theres a drastic slowdown in the rate, then display an estimate+ // If there's a drastic slowdown in the rate, then display an estimateif (now - previous_time > milliseconds{50} || slow_shader_compile_start) {if (!slow_shader_compile_start) {slow_shader_start = steady_clock::now();diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cppindex c092507f41..ae14884b5a 100644--- a/src/yuzu/main.cpp+++ b/src/yuzu/main.cpp@@ -274,7 +274,7 @@ static QString PrettyProductName() {#ifdef _WIN32static void OverrideWindowsFont() {- // Qt5 chooses these fonts on Windows and they have fairly ugly alphanumeric/cyrllic characters+ // Qt5 chooses these fonts on Windows and they have fairly ugly alphanumeric/cyrillic characters// Asking to use "MS Shell Dlg 2" gives better other chars while leaving the Chinese Characters.const QString startup_font = QApplication::font().family();const QStringList ugly_fonts = {QStringLiteral("SimSun"), QStringLiteral("PMingLiU")};@@ -3596,7 +3596,7 @@ bool GMainWindow::CreateShortcut(const std::string& shortcut_path, const std::stconst std::string& command, const std::string& arguments,const std::string& categories, const std::string& keywords) {#if defined(__linux__) || defined(__FreeBSD__)- // This desktop file template was writting referencing+ // This desktop file template was writing referencing// https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.htmlstd::string shortcut_contents{};shortcut_contents.append("[Desktop Entry]\n");diff --git a/src/yuzu/multiplayer/lobby.cpp b/src/yuzu/multiplayer/lobby.cppindex 6c93e35111..387f6f7c91 100644--- a/src/yuzu/multiplayer/lobby.cpp+++ b/src/yuzu/multiplayer/lobby.cpp@@ -278,7 +278,7 @@ void Lobby::OnRefreshLobby() {}}- // Reenable the refresh button and resize the columns+ // Re-enable the refresh button and resize the columnsui->refresh_list->setEnabled(true);ui->refresh_list->setText(tr("Refresh List"));ui->room_list->header()->stretchLastSection();diff --git a/src/yuzu/multiplayer/state.cpp b/src/yuzu/multiplayer/state.cppindex 285bb150d8..d82ca9aee5 100644--- a/src/yuzu/multiplayer/state.cpp+++ b/src/yuzu/multiplayer/state.cpp@@ -112,7 +112,7 @@ void MultiplayerState::SetNotificationStatus(NotificationStatus status) {void MultiplayerState::UpdateNotificationStatus() {switch (notification_status) {- case NotificationStatus::Unitialized:+ case NotificationStatus::Uninitialized:status_icon->setPixmap(QIcon::fromTheme(QStringLiteral("disconnected")).pixmap(16));status_text->setText(tr("Not Connected. Click here to find a room!"));leave_room->setEnabled(false);diff --git a/src/yuzu/multiplayer/state.h b/src/yuzu/multiplayer/state.hindex 5d681c5c61..d6149838f8 100644--- a/src/yuzu/multiplayer/state.h+++ b/src/yuzu/multiplayer/state.h@@ -23,7 +23,7 @@ class MultiplayerState : public QWidget {public:enum class NotificationStatus {- Unitialized,+ Uninitialized,Disconnected,Connected,Notification,@@ -98,7 +98,7 @@ private:QAction* show_room;std::shared_ptr<Core::AnnounceMultiplayerSession> announce_multiplayer_session;Network::RoomMember::State current_state = Network::RoomMember::State::Uninitialized;- NotificationStatus notification_status = NotificationStatus::Unitialized;+ NotificationStatus notification_status = NotificationStatus::Uninitialized;bool has_mod_perms = false;Network::RoomMember::CallbackHandle<Network::RoomMember::State> state_callback_handle;Network::RoomMember::CallbackHandle<Network::RoomMember::Error> error_callback_handle;diff --git a/src/yuzu/startup_checks.cpp b/src/yuzu/startup_checks.cppindex 9f702fe95e..5e1f763392 100644--- a/src/yuzu/startup_checks.cpp+++ b/src/yuzu/startup_checks.cpp@@ -86,7 +86,7 @@ bool StartupChecks(const char* arg0, bool* has_broken_vulkan, bool perform_vulkareturn false;}- // Wait until the processs exits and get exit code from it+ // Wait until the process exits and get exit code from itWaitForSingleObject(process_info.hProcess, INFINITE);DWORD exit_code = STILL_ACTIVE;const int err = GetExitCodeProcess(process_info.hProcess, &exit_code);diff --git a/src/yuzu/util/overlay_dialog.h b/src/yuzu/util/overlay_dialog.hindex 872283d61b..62f9da311d 100644--- a/src/yuzu/util/overlay_dialog.h+++ b/src/yuzu/util/overlay_dialog.h@@ -71,7 +71,7 @@ private:const QString& left_button_text, const QString& right_button_text,Qt::Alignment alignment);- /// Moves and resizes the dialog to be fully overlayed on top of the parent window.+ /// Moves and resizes the dialog to be fully overlaid on top of the parent window.void MoveAndResizeWindow();/**