From 1e0473e44f5e21558d75b0121bd935bb50825c26 Mon Sep 17 00:00:00 2001 From: Sintendo <3380580+Sintendo@users.noreply.github.com> Date: Sat, 17 Jan 2026 19:02:37 +0100 Subject: [PATCH] Fix various typos and spelling mistakes --- Source/Core/Common/Assembler/GekkoIRGen.cpp | 2 +- Source/Core/Common/Buffer.h | 2 +- Source/Core/Common/StringUtil.h | 2 +- Source/Core/Core/DSP/DSPAssembler.h | 2 +- Source/Core/Core/DSP/DSPDisassembler.cpp | 2 +- .../Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp | 2 +- Source/Core/Core/Debugger/BranchWatch.h | 2 +- Source/Core/Core/Debugger/CodeTrace.cpp | 2 +- Source/Core/Core/FifoPlayer/FifoDataFile.cpp | 4 +- Source/Core/Core/FifoPlayer/FifoPlayer.cpp | 2 +- Source/Core/Core/HLE/HLE.cpp | 2 +- Source/Core/Core/HW/AddressSpace.h | 2 +- Source/Core/Core/HW/DSPHLE/UCodes/ASnd.cpp | 2 +- Source/Core/Core/HW/DSPHLE/UCodes/ASnd.h | 4 +- Source/Core/Core/HW/DSPHLE/UCodes/GBA.cpp | 4 +- Source/Core/Core/HW/DVD/DVDMath.cpp | 2 +- Source/Core/Core/HW/EXI/BBA/XLINK_KAI_BBA.cpp | 6 +- Source/Core/Core/HW/GCMemcard/GCMemcard.cpp | 10 +- Source/Core/Core/HW/GCMemcard/GCMemcard.h | 2 +- .../Core/HW/GCMemcard/GCMemcardDirectory.cpp | 2 +- Source/Core/Core/HW/MMIO.cpp | 2 +- Source/Core/Core/HW/MMIO.h | 2 +- .../Core/Core/HW/SI/SI_DeviceGCController.cpp | 2 +- .../Core/HW/SI/SI_DeviceGCSteeringWheel.cpp | 2 +- Source/Core/Core/HW/SI/SI_DeviceKeyboard.h | 2 +- Source/Core/Core/HW/VideoInterface.cpp | 4 +- Source/Core/Core/HW/VideoInterface.h | 2 +- Source/Core/Core/HW/WiimoteEmu/Dynamics.cpp | 2 +- .../Core/HW/WiimoteEmu/EmuSubroutines.cpp | 4 +- Source/Core/Core/HW/WiimoteEmu/Encryption.cpp | 2 +- .../Core/HW/WiimoteEmu/Extension/Drums.cpp | 4 +- .../Core/Core/HW/WiimoteEmu/ExtensionPort.h | 2 +- Source/Core/Core/HW/WiimoteReal/IOWin.cpp | 2 +- Source/Core/Core/HW/WiimoteReal/IOhidapi.cpp | 3 +- Source/Core/Core/IOS/Network/IP/Top.cpp | 4 +- .../IOS/USB/Emulated/Skylanders/Skylander.cpp | 2 +- Source/Core/Core/IOS/USB/USB_KBD.cpp | 2 +- Source/Core/Core/PowerPC/BreakPoints.h | 2 +- .../Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp | 2 +- .../PowerPC/Jit64/Jit_SystemRegisters.cpp | 2 +- .../PowerPC/Jit64Common/Jit64AsmCommon.cpp | 2 +- Source/Core/Core/PowerPC/MMU.cpp | 2 +- Source/Core/DiscIO/DirectoryBlob.h | 2 +- Source/Core/DiscIO/NANDImporter.cpp | 2 +- Source/Core/DiscIO/WIABlob.cpp | 2 +- .../DolphinQt/Config/Mapping/IOWindow.cpp | 2 +- .../DolphinQt/Debugger/CodeViewWidget.cpp | 2 +- .../DolphinQt/Debugger/MemoryViewWidget.cpp | 4 +- .../Core/DolphinQt/Debugger/RegisterColumn.h | 2 +- Source/Core/DolphinQt/ResourcePackManager.cpp | 2 +- Source/Core/DolphinQt/SearchBar.h | 2 +- Source/Core/DolphinQt/Settings.cpp | 2 +- Source/Core/DolphinQt/Settings/AudioPane.cpp | 2 +- .../Core/DolphinQt/Settings/InterfacePane.cpp | 2 +- Source/Core/DolphinQt/TAS/TASInputWindow.cpp | 2 +- .../ControlReference/ExpressionParser.cpp | 9 +- .../ControlReference/ExpressionParser.h | 2 +- .../ControllerEmu/ControlGroup/Force.cpp | 12 +- .../InputCommon/ControllerEmu/StickGate.cpp | 4 +- .../DualShockUDPClient/DualShockUDPProto.h | 2 +- .../ControllerInterface/WGInput/WGInput.cpp | 2 +- .../Wiimote/WiimoteController.cpp | 4 +- Source/Core/InputCommon/GCAdapter.cpp | 2 +- Source/Core/UICommon/DiscordPresence.cpp | 2 +- Source/Core/UICommon/NetPlayIndex.cpp | 2 +- Source/Core/UICommon/X11Utils.cpp | 2 +- Source/Core/UpdaterCommon/UpdaterCommon.cpp | 2 +- Source/Core/VideoBackends/D3D12/DX12Texture.h | 2 +- .../VideoBackends/D3DCommon/SwapChain.cpp | 2 +- .../VideoBackends/Metal/MTLStateTracker.mm | 2 +- Source/Core/VideoBackends/OGL/OGLConfig.cpp | 2 +- Source/Core/VideoBackends/OGL/OGLMain.cpp | 2 +- .../VideoBackends/OGL/OGLStreamBuffer.cpp | 2 +- Source/Core/VideoBackends/Software/SWGfx.cpp | 2 +- .../Vulkan/CommandBufferManager.h | 2 +- .../Core/VideoBackends/Vulkan/StateTracker.h | 2 +- Source/Core/VideoCommon/Assets/ShaderAsset.h | 2 +- .../VideoCommon/Assets/TextureSamplerValue.h | 2 +- Source/Core/VideoCommon/CPUCull.cpp | 2 +- Source/Core/VideoCommon/DriverDetails.h | 2 +- .../VideoCommon/GeometryShaderManager.cpp | 2 +- .../Core/VideoCommon/PixelShaderManager.cpp | 6 +- Source/Core/VideoCommon/PostProcessing.cpp | 2 +- Source/Core/VideoCommon/Present.cpp | 2 +- Source/Core/VideoCommon/RenderState.cpp | 2 +- Source/Core/VideoCommon/TextureCacheBase.cpp | 8 +- .../Core/VideoCommon/TextureDecoder_x64.cpp | 4 +- Source/Core/VideoCommon/UberShaderPixel.cpp | 2 +- Source/Core/VideoCommon/UberShaderVertex.cpp | 4 +- Source/Core/VideoCommon/VertexManagerBase.cpp | 2 +- Source/Core/VideoCommon/VertexShaderGen.cpp | 4 +- Source/Core/VideoCommon/VideoConfig.h | 2 +- Source/DSPSpy/tests/dsp_base_noirq.inc | 2 +- Source/PCH/CMakeLists.txt | 2 +- Source/UnitTests/Common/AssemblerTest.cpp | 2 +- Source/UnitTests/Common/BusyLoopTest.cpp | 2 +- .../UnitTests/Common/WorkQueueThreadTest.cpp | 2 +- Source/UnitTests/Core/DSP/HermesText.cpp | 220 +++++++++--------- Source/VSProps/Base.props | 2 +- Source/VSProps/PCHCreate.props | 4 +- Source/VSProps/qt_tasks.targets | 2 +- 101 files changed, 245 insertions(+), 243 deletions(-) diff --git a/Source/Core/Common/Assembler/GekkoIRGen.cpp b/Source/Core/Common/Assembler/GekkoIRGen.cpp index 51cbbb4208..c35024619d 100644 --- a/Source/Core/Common/Assembler/GekkoIRGen.cpp +++ b/Source/Core/Common/Assembler/GekkoIRGen.cpp @@ -844,7 +844,7 @@ void GekkoIRPlugin::EvalTerminalAbs(Terminal type, const AssemblerToken& tok) case Terminal::NumLabFwd: m_owner->EmitErrorHere( - fmt::format("Forward label references not supported in fully resolved expressons")); + fmt::format("Forward label references not supported in fully resolved expressions")); break; case Terminal::NumLabBwd: diff --git a/Source/Core/Common/Buffer.h b/Source/Core/Common/Buffer.h index 3915424fbf..4b1aa8ac5a 100644 --- a/Source/Core/Common/Buffer.h +++ b/Source/Core/Common/Buffer.h @@ -7,7 +7,7 @@ // UniqueBuffer and SharedBuffer are a lighter alternative to std::vector. // The main benefit is that elements are not value-initialized like in vector. -// That can be quite a bit of unecessary overhead when allocating a large buffer. +// That can be quite a bit of unnecessary overhead when allocating a large buffer. namespace Common { diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h index 2351c3f720..1d8b58bb7a 100644 --- a/Source/Core/Common/StringUtil.h +++ b/Source/Core/Common/StringUtil.h @@ -314,7 +314,7 @@ bool CaseInsensitiveContains(std::string_view haystack, std::string_view needle) // 'std::less'-like comparison function object type for case-insensitive strings. struct CaseInsensitiveLess { - using is_transparent = void; // Allow heterogenous lookup. + using is_transparent = void; // Allow heterogeneous lookup. bool operator()(std::string_view a, std::string_view b) const; }; diff --git a/Source/Core/Core/DSP/DSPAssembler.h b/Source/Core/Core/DSP/DSPAssembler.h index 29ccaeb557..1688abc8ae 100644 --- a/Source/Core/Core/DSP/DSPAssembler.h +++ b/Source/Core/Core/DSP/DSPAssembler.h @@ -57,7 +57,7 @@ public: explicit DSPAssembler(const AssemblerSettings& settings); ~DSPAssembler(); - // line_numbers is optional (and not yet implemented). It'll receieve a list of ints, + // line_numbers is optional (and not yet implemented). It'll receive a list of ints, // one for each word of code, indicating the source assembler code line number it came from. // If returns false, call GetErrorString to get some text to present to the user. diff --git a/Source/Core/Core/DSP/DSPDisassembler.cpp b/Source/Core/Core/DSP/DSPDisassembler.cpp index c0d2d37848..9fcfa7092b 100644 --- a/Source/Core/Core/DSP/DSPDisassembler.cpp +++ b/Source/Core/Core/DSP/DSPDisassembler.cpp @@ -108,7 +108,7 @@ std::string DSPDisassembler::DisassembleParameters(const DSPOPCTemplate& opc, u1 if (opc.params[j].mask == 0x003f) { // Left and right shifts function essentially as a single shift by a 7-bit signed value, - // but are split into two intructions for clarity. + // but are split into two instructions for clarity. buf += fmt::format("#{}", (val & 0x20) != 0 ? (int(val) - 64) : int(val)); } else diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp index 47a011e9b4..8bdeee443e 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp @@ -16,7 +16,7 @@ using namespace Gen; namespace DSP::JIT::x64 { -// Ordered in order of prefered use. +// Ordered in order of preferred use. // Not all of these are actually available constexpr std::array s_allocation_order = { {R8, R9, R10, R11, R12, R13, R14, R15, RSI, RDI, RBX, RCX, RDX, RAX, RBP}}; diff --git a/Source/Core/Core/Debugger/BranchWatch.h b/Source/Core/Core/Debugger/BranchWatch.h index d15af60a03..5196969e95 100644 --- a/Source/Core/Core/Debugger/BranchWatch.h +++ b/Source/Core/Core/Debugger/BranchWatch.h @@ -98,7 +98,7 @@ struct BranchWatchSelectionValueType BranchWatchCollection::value_type* collection_ptr; bool is_virtual; bool condition; - // This is moreso a GUI thing, but it works best in the Core code for multiple reasons. + // This is more so a GUI thing, but it works best in the Core code for multiple reasons. Inspection inspection; }; diff --git a/Source/Core/Core/Debugger/CodeTrace.cpp b/Source/Core/Core/Debugger/CodeTrace.cpp index f90681a488..1277005f30 100644 --- a/Source/Core/Core/Debugger/CodeTrace.cpp +++ b/Source/Core/Core/Debugger/CodeTrace.cpp @@ -263,7 +263,7 @@ HitType CodeTrace::TraceLogic(const TraceOutput& current_instr, bool first_hit) if (!match_reg0 && !match_reg123 && !mem_hit) return HitType::SKIP; - // Checks if the intstruction is a type that needs special handling. + // Checks if the instruction is a type that needs special handling. const auto CompareInstruction = [](std::string_view instruction, const auto& type_compare) { return std::ranges::any_of( type_compare, [&instruction](std::string_view s) { return instruction.starts_with(s); }); diff --git a/Source/Core/Core/FifoPlayer/FifoDataFile.cpp b/Source/Core/Core/FifoPlayer/FifoDataFile.cpp index f48b555f7e..27899d6e3e 100644 --- a/Source/Core/Core/FifoPlayer/FifoDataFile.cpp +++ b/Source/Core/Core/FifoPlayer/FifoDataFile.cpp @@ -42,7 +42,7 @@ struct FileHeader u32 flags; u64 texMemOffset; u32 texMemSize; - // These are for overriden RAM sizes. Otherwise the FIFO Player + // These are for overridden RAM sizes. Otherwise the FIFO Player // will crash and burn with mismatched settings. See PR #8722. u32 mem1_size; u32 mem2_size; @@ -136,7 +136,7 @@ bool FifoDataFile::Save(const std::string& filename) FileHeader header; header.fileId = FILE_ID; header.file_version = VERSION_NUMBER; - // Maintain backwards compatability so long as the RAM sizes aren't overridden. + // Maintain backwards compatibility so long as the RAM sizes aren't overridden. if (Config::Get(Config::MAIN_RAM_OVERRIDE_ENABLE)) header.min_loader_version = MIN_LOADER_VERSION_FOR_RAM_OVERRIDE; else diff --git a/Source/Core/Core/FifoPlayer/FifoPlayer.cpp b/Source/Core/Core/FifoPlayer/FifoPlayer.cpp index 57ff28d7fd..3e0c9aa5f0 100644 --- a/Source/Core/Core/FifoPlayer/FifoPlayer.cpp +++ b/Source/Core/Core/FifoPlayer/FifoPlayer.cpp @@ -315,7 +315,7 @@ void FifoPlayer::SetFileLoadedCallback(CallbackFunc callback) { m_FileLoadedCb = std::move(callback); - // Trigger the callback immediatly if the file is already loaded. + // Trigger the callback immediately if the file is already loaded. if (GetFile() != nullptr) { m_FileLoadedCb(); diff --git a/Source/Core/Core/HLE/HLE.cpp b/Source/Core/Core/HLE/HLE.cpp index a0ca859371..934e58e5e6 100644 --- a/Source/Core/Core/HLE/HLE.cpp +++ b/Source/Core/Core/HLE/HLE.cpp @@ -103,7 +103,7 @@ void PatchFixedFunctions(Core::System& system) // Not part of the binary itself, but either we or Gecko OS might insert // this, and it doesn't clear the icache properly. Patch(system, Gecko::ENTRY_POINT, "GeckoCodehandler"); - // This has to always be installed even if cheats are not enabled because of the possiblity of + // This has to always be installed even if cheats are not enabled because of the possibility of // loading a savestate where PC is inside the code handler while cheats are disabled. Patch(system, Gecko::HLE_TRAMPOLINE_ADDRESS, "GeckoHandlerReturnTrampoline"); } diff --git a/Source/Core/Core/HW/AddressSpace.h b/Source/Core/Core/HW/AddressSpace.h index 63302999fe..75a92ed14b 100644 --- a/Source/Core/Core/HW/AddressSpace.h +++ b/Source/Core/Core/HW/AddressSpace.h @@ -32,7 +32,7 @@ struct Accessors virtual u8 ReadU8(const Core::CPUThreadGuard& guard, u32 address) const = 0; virtual void WriteU8(const Core::CPUThreadGuard& guard, u32 address, u8 value) = 0; - // overrideable naive implementations of below are defined + // overridable naive implementations of below are defined virtual u16 ReadU16(const Core::CPUThreadGuard& guard, u32 address) const; virtual void WriteU16(const Core::CPUThreadGuard& guard, u32 address, u16 value); virtual u32 ReadU32(const Core::CPUThreadGuard& guard, u32 address) const; diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/ASnd.cpp b/Source/Core/Core/HW/DSPHLE/UCodes/ASnd.cpp index c0fe5a3a49..cbbe5fb512 100644 --- a/Source/Core/Core/HW/DSPHLE/UCodes/ASnd.cpp +++ b/Source/Core/Core/HW/DSPHLE/UCodes/ASnd.cpp @@ -31,7 +31,7 @@ constexpr u32 MAIL_INPUT_NEXT_SAMPLES = 0x0222; // "send the samples for the internal buffer to the external buffer" constexpr u32 MAIN_SEND_SAMPLES = 0x0666; // "special: to dump the IROM Datas (remember disable others functions from the interrupt vector to -// use) (CMBH+0x8000) countain the address of IROM" (not used) +// use) (CMBH+0x8000) contains the address of IROM" (not used) constexpr u32 MAIL_ROM_DUMP_WORD = 0x0777; // "Used for test" (not used) constexpr u32 MAIL_TEST = 0x0888; diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/ASnd.h b/Source/Core/Core/HW/DSPHLE/UCodes/ASnd.h index 159471d416..ffac1f8925 100644 --- a/Source/Core/Core/HW/DSPHLE/UCodes/ASnd.h +++ b/Source/Core/Core/HW/DSPHLE/UCodes/ASnd.h @@ -103,7 +103,7 @@ private: u32 flags; // internal addr counter u32 start_addr; - // end voice physical pointer (bytes without alignament, but remember it reads in blocks of 32 + // end voice physical pointer (bytes without alignment, but remember it reads in blocks of 32 // bytes (use padding to the end)) u32 end_addr; // freq operation @@ -116,7 +116,7 @@ private: u16 volume_l, volume_r; // initial voice2 physical pointer (bytes aligned 32 bytes) (to do a ring) u32 start_addr2; - // end voice2 physical pointer (bytes without alignament, but remember it reads in blocks of 32 + // end voice2 physical pointer (bytes without alignment, but remember it reads in blocks of 32 // bytes (use padding to the end)) u32 end_addr2; // volume (from 0 to 256) for voice 2 diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/GBA.cpp b/Source/Core/Core/HW/DSPHLE/UCodes/GBA.cpp index 552f8ca843..35d4ff33ce 100644 --- a/Source/Core/Core/HW/DSPHLE/UCodes/GBA.cpp +++ b/Source/Core/Core/HW/DSPHLE/UCodes/GBA.cpp @@ -95,7 +95,7 @@ void GBAUCode::HandleMail(u32 mail) { PrepareBootUCode(mail); // The GBA ucode ignores the first 3 mails (mram_dest_addr, mram_size, mram_dram_addr) - // but we currently don't handle that (they're read when they shoudln't be, but DSP HLE doesn't + // but we currently don't handle that (they're read when they shouldn't be, but DSP HLE doesn't // implement them so it's fine). return; } @@ -106,7 +106,7 @@ void GBAUCode::HandleMail(u32 mail) { if (mail == REQUEST_MAIL) { - INFO_LOG_FMT(DSPHLE, "GBAUCode - Recieved request mail"); + INFO_LOG_FMT(DSPHLE, "GBAUCode - Received request mail"); m_mail_state = MailState::WaitingForAddress; } else diff --git a/Source/Core/Core/HW/DVD/DVDMath.cpp b/Source/Core/Core/HW/DVD/DVDMath.cpp index dae98159aa..311105ff4c 100644 --- a/Source/Core/Core/HW/DVD/DVDMath.cpp +++ b/Source/Core/Core/HW/DVD/DVDMath.cpp @@ -52,7 +52,7 @@ constexpr double LONG_SEEK_VELOCITY_INVERSE = 4.5; // inverse: s/m // In practice this yields good-enough numbers as a more exact formula // involving the integral over a polar equation (too complex to describe here) // or the approximation of a DVD as a set of concentric circles (which is a -// better approximation, but makes futher derivations more complicated than +// better approximation, but makes further derivations more complicated than // they need to be). // // From the area approximation, we end up with this formula: diff --git a/Source/Core/Core/HW/EXI/BBA/XLINK_KAI_BBA.cpp b/Source/Core/Core/HW/EXI/BBA/XLINK_KAI_BBA.cpp index 4cb45d3b77..236d872992 100644 --- a/Source/Core/Core/HW/EXI/BBA/XLINK_KAI_BBA.cpp +++ b/Source/Core/Core/HW/EXI/BBA/XLINK_KAI_BBA.cpp @@ -113,7 +113,7 @@ bool CEXIETHERNET::XLinkNetworkInterface::SendFrame(const u8* frame, u32 size) m_bba_failure_notified = true; } - // Return true because this isnt an error dolphin needs to handle + // Return true because this isn't an error dolphin needs to handle return true; } @@ -160,7 +160,7 @@ void CEXIETHERNET::XLinkNetworkInterface::ReadThreadHandler( ERROR_LOG_FMT(SP1, "Failed to read from BBA, err={}", bytes_read); } - // Make sure *anything* was recieved before going any further + // Make sure *anything* was received before going any further if (bytes_read < 1) continue; @@ -193,7 +193,7 @@ void CEXIETHERNET::XLinkNetworkInterface::ReadThreadHandler( } } } - // Otherwise we recieved control data or junk + // Otherwise we received control data or junk else { const std::string control_msg(self->m_in_frame, self->m_in_frame + bytes_read); diff --git a/Source/Core/Core/HW/GCMemcard/GCMemcard.cpp b/Source/Core/Core/HW/GCMemcard/GCMemcard.cpp index 3dd2f5c5e7..21f3059658 100644 --- a/Source/Core/Core/HW/GCMemcard/GCMemcard.cpp +++ b/Source/Core/Core/HW/GCMemcard/GCMemcard.cpp @@ -165,10 +165,10 @@ std::pair> GCMemcard::Open(std::str // // This rule only applies for errors within a single block! That is, invalid checksums for both // types, and free block mismatch for the BATs. Once two valid blocks have been selected but it - // later turns out they do not match eachother (eg. claimed block count of a file in the directory - // does not match the actual block count arrived at by following BAT), the card will be treated as - // corrupted, even if perhaps a different combination of the two blocks would result in a valid - // memory card. + // later turns out they do not match each other (eg. claimed block count of a file in the + // directory does not match the actual block count arrived at by following BAT), the card will be + // treated as corrupted, even if perhaps a different combination of the two blocks would result in + // a valid memory card. // can return invalid checksum, data in unused area GCMemcardErrorCode dir_block_0_error_code = card.m_directory_blocks[0].CheckForErrors(); @@ -821,7 +821,7 @@ GCMemcardRemoveFileRetVal GCMemcard::RemoveFile(u8 index) // index in the direc // TODO: Deleting a file via the GC BIOS sometimes leaves behind an extra updated directory block // here that has an empty file with the filename "Broken File000" where the actual deleted file - // was. Determine when exactly this happens and if this is neccessary for anything. + // was. Determine when exactly this happens and if this is necessary for anything. memset(reinterpret_cast(&UpdatedDir.m_dir_entries[index]), 0xFF, DENTRY_SIZE); UpdatedDir.m_update_counter = UpdatedDir.m_update_counter + 1; diff --git a/Source/Core/Core/HW/GCMemcard/GCMemcard.h b/Source/Core/Core/HW/GCMemcard/GCMemcard.h index 0df11157c9..08192b4b5c 100644 --- a/Source/Core/Core/HW/GCMemcard/GCMemcard.h +++ b/Source/Core/Core/HW/GCMemcard/GCMemcard.h @@ -177,7 +177,7 @@ struct HeaderData // 4 bytes at 0x001c: VI DTV status register value (u16 from 0xCC00206E) u32 m_dtv_status; - // 2 bytes at 0x0020: 0 if formated in slot A, 1 if formated in slot B + // 2 bytes at 0x0020: 0 if formatted in slot A, 1 if formatted in slot B Common::BigEndianValue m_device_id; // 2 bytes at 0x0022: Size of memcard in Mbits diff --git a/Source/Core/Core/HW/GCMemcard/GCMemcardDirectory.cpp b/Source/Core/Core/HW/GCMemcard/GCMemcardDirectory.cpp index 5698930b19..66629d43f1 100644 --- a/Source/Core/Core/HW/GCMemcard/GCMemcardDirectory.cpp +++ b/Source/Core/Core/HW/GCMemcard/GCMemcardDirectory.cpp @@ -575,7 +575,7 @@ s32 GCMemcardDirectory::DirectoryWrite(u32 dest_address, u32 length, const u8* s // first 58 bytes should always be 0xff // needed to update the update ctr, checksums // could check for writes to the 6 important bytes but doubtful that it improves performance - // noticably + // noticeably memcpy((u8*)(dest) + offset, src_address, length); SyncSaves(); } diff --git a/Source/Core/Core/HW/MMIO.cpp b/Source/Core/Core/HW/MMIO.cpp index 4e27c17048..e177e1ca8b 100644 --- a/Source/Core/Core/HW/MMIO.cpp +++ b/Source/Core/Core/HW/MMIO.cpp @@ -263,7 +263,7 @@ ReadHandlingMethod* ReadToLarger(Mapping* mmio, u32 larger_addr, u32 shift) }); } -// Inplementation of the ReadHandler and WriteHandler class. There is a lot of +// Implementation of the ReadHandler and WriteHandler class. There is a lot of // redundant code between these two classes but trying to abstract it away // brings more trouble than it fixes. template diff --git a/Source/Core/Core/HW/MMIO.h b/Source/Core/Core/HW/MMIO.h index d2082e4e48..cee439ab43 100644 --- a/Source/Core/Core/HW/MMIO.h +++ b/Source/Core/Core/HW/MMIO.h @@ -169,7 +169,7 @@ private: // MMIO block ID. // // Each array contains NUM_MMIOS / sizeof (AccessType) because larger - // access types mean less possible adresses (assuming aligned only + // access types mean less possible addresses (assuming aligned only // accesses). template struct HandlerArray diff --git a/Source/Core/Core/HW/SI/SI_DeviceGCController.cpp b/Source/Core/Core/HW/SI/SI_DeviceGCController.cpp index 270e75f56a..2cf31c0a33 100644 --- a/Source/Core/Core/HW/SI/SI_DeviceGCController.cpp +++ b/Source/Core/Core/HW/SI/SI_DeviceGCController.cpp @@ -99,7 +99,7 @@ int CSIDevice_GCController::RunBuffer(u8* buffer, int request_length) } // GameID packet, no response needed, nothing to do - // On real hardware, this is used to configure the BlueRetro controler + // On real hardware, this is used to configure the BlueRetro controller // adapter, while licensed accessories ignore this command. case EBufferCommands::CMD_SET_GAME_ID: { diff --git a/Source/Core/Core/HW/SI/SI_DeviceGCSteeringWheel.cpp b/Source/Core/Core/HW/SI/SI_DeviceGCSteeringWheel.cpp index a3ca7e9ebe..3c9281a2be 100644 --- a/Source/Core/Core/HW/SI/SI_DeviceGCSteeringWheel.cpp +++ b/Source/Core/Core/HW/SI/SI_DeviceGCSteeringWheel.cpp @@ -77,7 +77,7 @@ DataResponse CSIDevice_GCSteeringWheel::GetData(u32& hi, u32& low) GCPadStatus::MAIN_STICK_CENTER_Y - pad_status.stickY); // We must double these values because we are mapping half of a stick range to a 0..255 value. - // We're only getting half the precison we could potentially have, + // We're only getting half the precision we could potentially have, // but we'll have to redesign our GameCube controller input to fix that. // All 8 bits (Accelerate) diff --git a/Source/Core/Core/HW/SI/SI_DeviceKeyboard.h b/Source/Core/Core/HW/SI/SI_DeviceKeyboard.h index 1d2ca62c07..2f7b232257 100644 --- a/Source/Core/Core/HW/SI/SI_DeviceKeyboard.h +++ b/Source/Core/Core/HW/SI/SI_DeviceKeyboard.h @@ -36,7 +36,7 @@ private: KeyArray MapKeys(const KeyboardStatus& key_status) const; - // Internal counter synchonizing GC and keyboard + // Internal counter synchronizing GC and keyboard u8 m_counter = 0; }; } // namespace SerialInterface diff --git a/Source/Core/Core/HW/VideoInterface.cpp b/Source/Core/Core/HW/VideoInterface.cpp index 48b81916a5..af1ebb7bd1 100644 --- a/Source/Core/Core/HW/VideoInterface.cpp +++ b/Source/Core/Core/HW/VideoInterface.cpp @@ -491,7 +491,7 @@ float VideoInterfaceManager::GetAspectRatio() const // but it's only 4:3 if the picture fill the entire active area. // All games configure VideoInterface to add padding in both the horizontal and vertical // directions and most games also do a slight horizontal scale. - // This means that XFB never fills the entire active area and is therefor almost never 4:3 + // This means that XFB never fills the entire active area and is therefore almost never 4:3 // To work out the correct aspect ratio of the XFB, we need to know how VideoInterface's // currently configured active area compares to the active area of a stock PAL or NTSC @@ -980,7 +980,7 @@ void VideoInterfaceManager::Update(u64 ticks) m_ticks_last_line_start = ticks; } - // TODO: Findout why skipping interrupts acts as a frameskip + // TODO: Find out why skipping interrupts acts as a frameskip if (core_timing.GetVISkip()) return; diff --git a/Source/Core/Core/HW/VideoInterface.h b/Source/Core/Core/HW/VideoInterface.h index 8a54243660..6bf762aeab 100644 --- a/Source/Core/Core/HW/VideoInterface.h +++ b/Source/Core/Core/HW/VideoInterface.h @@ -203,7 +203,7 @@ union UVIFBInfoRegister // POFF only seems to exist in the top reg. XOFF, unknown. u32 XOFF : 4; // Horizontal Offset of the left-most pixel within the first word of the fetched // picture - u32 POFF : 1; // Page offest: 1: fb address is (address>>5) + u32 POFF : 1; // Page offset: 1: fb address is (address>>5) u32 CLRPOFF : 3; // ? setting bit 31 clears POFF }; }; diff --git a/Source/Core/Core/HW/WiimoteEmu/Dynamics.cpp b/Source/Core/Core/HW/WiimoteEmu/Dynamics.cpp index 05df72bec7..c4095e6c44 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Dynamics.cpp +++ b/Source/Core/Core/HW/WiimoteEmu/Dynamics.cpp @@ -67,7 +67,7 @@ Common::Quaternion ComplementaryFilter(const Common::Quaternion& gyroscope, const auto cos_angle = normalized_accel.Dot(gyro_vec); - // If gyro to accel angle difference is betwen 0 and 180 degrees we make an adjustment. + // If gyro to accel angle difference is between 0 and 180 degrees we make an adjustment. const auto abs_cos_angle = std::abs(cos_angle); if (abs_cos_angle > 0 && abs_cos_angle < 1) { diff --git a/Source/Core/Core/HW/WiimoteEmu/EmuSubroutines.cpp b/Source/Core/Core/HW/WiimoteEmu/EmuSubroutines.cpp index 46a4c417d8..6ea3f5e027 100644 --- a/Source/Core/Core/HW/WiimoteEmu/EmuSubroutines.cpp +++ b/Source/Core/Core/HW/WiimoteEmu/EmuSubroutines.cpp @@ -305,7 +305,7 @@ void Wiimote::HandleWriteData(const OutputReportWriteData& wd) auto const bytes_written = m_i2c_bus.BusWrite(wd.slave_address, (u8)address, wd.size, wd.data); if (bytes_written != wd.size) { - // A real wiimote gives error 7 for failed write to i2c bus (mainly a non-existant slave) + // A real wiimote gives error 7 for failed write to i2c bus (mainly a non-existent slave) error_code = ErrorCode::Nack; } } @@ -463,7 +463,7 @@ bool Wiimote::ProcessReadDataRequest() // error code 8 // The real Wiimote generate an error for the first - // request to 0x1770 if we dont't replicate that the game will never + // request to 0x1770 if we don't replicate that the game will never // read the calibration data at the beginning of Eeprom. error_code = ErrorCode::InvalidAddress; } diff --git a/Source/Core/Core/HW/WiimoteEmu/Encryption.cpp b/Source/Core/Core/HW/WiimoteEmu/Encryption.cpp index f415408126..4876c648d1 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Encryption.cpp +++ b/Source/Core/Core/HW/WiimoteEmu/Encryption.cpp @@ -499,7 +499,7 @@ EncryptionKey KeyGen::GenerateFromExtensionKeyData(const ExtKeyData& ext_key) co } // Retail games never hit this path but some homebrew fills encryption key with 0x00. - // Real extensions seem to then use entirely differnet "sboxes" for table generation. + // Real extensions seem to then use entirely different "sboxes" for table generation. WARN_LOG_FMT(WIIMOTE, "Extension key gen did not match any idx. Generating fallback tables."); return GenerateFallbackTables(rand, key); } diff --git a/Source/Core/Core/HW/WiimoteEmu/Extension/Drums.cpp b/Source/Core/Core/HW/WiimoteEmu/Extension/Drums.cpp index 51399c68b8..067402b06e 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Extension/Drums.cpp +++ b/Source/Core/Core/HW/WiimoteEmu/Extension/Drums.cpp @@ -163,7 +163,7 @@ void Drums::Update(const DesiredExtensionState& target_state) velocity = desired_state.softness; - // A drum-pad hit causes the relevent bit to be triggered for the next 10 frames. + // A drum-pad hit causes the relevant bit to be triggered for the next 10 frames. constexpr u8 HIT_FRAME_COUNT = 10; m_pad_remaining_frames[i] = HIT_FRAME_COUNT; @@ -178,7 +178,7 @@ void Drums::Update(const DesiredExtensionState& target_state) drum_data.velocity4 = velocity >> 4; // Figure out which drum-pad bits to send. - // Note: Relevent bits are not set until after velocity data has been sent. + // Note: Relevant bits are not set until after velocity data has been sent. // My drums never exposed simultaneous hits. One pad bit was always sent before the other. for (std::size_t i = 0; i != drum_pad_bitmasks.size(); ++i) { diff --git a/Source/Core/Core/HW/WiimoteEmu/ExtensionPort.h b/Source/Core/Core/HW/WiimoteEmu/ExtensionPort.h index 86b1fd31f9..7a566cafb8 100644 --- a/Source/Core/Core/HW/WiimoteEmu/ExtensionPort.h +++ b/Source/Core/Core/HW/WiimoteEmu/ExtensionPort.h @@ -31,7 +31,7 @@ enum ExtensionNumber : u8 class ExtensionPort { public: - // The real wiimote reads extension data from i2c slave 0x52 addres 0x00: + // The real wiimote reads extension data from i2c slave 0x52 address 0x00: static constexpr u8 REPORT_I2C_SLAVE = 0x52; static constexpr u8 REPORT_I2C_ADDR = 0x00; diff --git a/Source/Core/Core/HW/WiimoteReal/IOWin.cpp b/Source/Core/Core/HW/WiimoteReal/IOWin.cpp index cb1824e9e3..7fbc5201bf 100644 --- a/Source/Core/Core/HW/WiimoteReal/IOWin.cpp +++ b/Source/Core/Core/HW/WiimoteReal/IOWin.cpp @@ -629,7 +629,7 @@ static std::vector GetAllWiim const auto parent_inst = GetInst(hid_iface).and_then(GetParentInst); - // This provies a proper name like "Nintendo RVL-CNT-01" or "Nintendo RVL-WBC-01". + // This provides a proper name like "Nintendo RVL-CNT-01" or "Nintendo RVL-WBC-01". const auto bluetooth_name = parent_inst.and_then(GetBluetoothName); DEBUG_LOG_FMT(WIIMOTE, " BluetoothName: {}", bluetooth_name.value_or("")); diff --git a/Source/Core/Core/HW/WiimoteReal/IOhidapi.cpp b/Source/Core/Core/HW/WiimoteReal/IOhidapi.cpp index 4f38c4a949..9f4bb4c251 100644 --- a/Source/Core/Core/HW/WiimoteReal/IOhidapi.cpp +++ b/Source/Core/Core/HW/WiimoteReal/IOhidapi.cpp @@ -182,7 +182,8 @@ int WiimoteHidapi::IORead(u8* buf) { int timeout = 200; // ms int result = hid_read_timeout(m_handle, buf + 1, MAX_PAYLOAD - 1, timeout); - // TODO: If and once we use hidapi across plaforms, change our internal API to clean up this mess. + // TODO: If and once we use hidapi across platforms, change our internal API to clean up this + // mess. if (result == -1) { ERROR_LOG_FMT(WIIMOTE, "Failed to read from {}.", m_device_path); diff --git a/Source/Core/Core/IOS/Network/IP/Top.cpp b/Source/Core/Core/IOS/Network/IP/Top.cpp index 8baa81aef7..42f17c4ada 100644 --- a/Source/Core/Core/IOS/Network/IP/Top.cpp +++ b/Source/Core/Core/IOS/Network/IP/Top.cpp @@ -388,7 +388,7 @@ static std::optional GetSystemDefaultInterface() const u32 prefix_length = GetNetworkPrefixLength(); const u32 netmask = (1 << prefix_length) - 1; const u32 gateway = GetNetworkGateway(); - // this isnt fully correct, but this will make calls to get the routing table at least return the + // this isn't fully correct, but this will make calls to get the routing table at least return the // gateway if (routing_table.empty()) routing_table = {{0, 0, 0, gateway}}; @@ -433,7 +433,7 @@ static std::optional GetSystemDefaultInterface() if (iface->ifa_addr && iface->ifa_addr->sa_family == AF_INET && get_addr(iface->ifa_addr).s_addr == default_interface_address->s_addr) { - // this isnt fully correct, but this will make calls to get the routing table at least return + // this isn't fully correct, but this will make calls to get the routing table at least return // the gateway if (routing_table.empty()) routing_table = {{0, {}, {}, get_addr(iface->ifa_dstaddr)}}; diff --git a/Source/Core/Core/IOS/USB/Emulated/Skylanders/Skylander.cpp b/Source/Core/Core/IOS/USB/Emulated/Skylanders/Skylander.cpp index 1b07002c7b..77fb56cd13 100644 --- a/Source/Core/Core/IOS/USB/Emulated/Skylanders/Skylander.cpp +++ b/Source/Core/Core/IOS/USB/Emulated/Skylanders/Skylander.cpp @@ -1394,7 +1394,7 @@ Type NormalizeSkylanderType(Type type) case Type::Trap: case Type::Vehicle: case Type::Unknown: - // until these get seperate data logic (except unknown and item since items don't save data and + // until these get separate data logic (except unknown and item since items don't save data and // unknown is unknown) return Type::Unknown; } diff --git a/Source/Core/Core/IOS/USB/USB_KBD.cpp b/Source/Core/Core/IOS/USB/USB_KBD.cpp index c0bf361e2f..97a81268e6 100644 --- a/Source/Core/Core/IOS/USB/USB_KBD.cpp +++ b/Source/Core/Core/IOS/USB/USB_KBD.cpp @@ -139,7 +139,7 @@ constexpr std::array s_key_codes_azerty{ 0x55, // Multiply 0x57, // Add 0x00, // Separator - 0x56, // Substract + 0x56, // Subtract 0x63, // Decimal 0x54, // Divide // F1 -> F12 diff --git a/Source/Core/Core/PowerPC/BreakPoints.h b/Source/Core/Core/PowerPC/BreakPoints.h index 03fc0e039a..de22192f7a 100644 --- a/Source/Core/Core/PowerPC/BreakPoints.h +++ b/Source/Core/Core/PowerPC/BreakPoints.h @@ -67,7 +67,7 @@ public: void AddFromStrings(const TBreakPointsStr& bp_strings); bool IsAddressBreakPoint(u32 address) const; - bool IsBreakPointEnable(u32 adresss) const; + bool IsBreakPointEnable(u32 address) const; // Get the breakpoint in this address (for most purposes) const TBreakPoint* GetBreakpoint(u32 address) const; // Get the breakpoint in this address (ignore temporary breakpoint, e.g. for editing purposes) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp index ec3be83438..4b11f96942 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp @@ -2,7 +2,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later // TODO(ector): Tons of pshufb optimization of the loads/stores, for SSSE3+, possibly SSE4, only. -// Should give a very noticable speed boost to paired single heavy code. +// Should give a very noticeable speed boost to paired single heavy code. #include "Core/PowerPC/Jit64/Jit.h" diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp index 6331358359..0fdeb14131 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp @@ -595,7 +595,7 @@ void Jit64::crXXX(UGeckoInstruction inst) JITDISABLE(bJITSystemRegistersOff); DEBUG_ASSERT_MSG(DYNA_REC, inst.OPCD == 19, "Invalid crXXX"); - // TODO(merry): Futher optimizations can be performed here. For example, + // TODO(merry): Further optimizations can be performed here. For example, // instead of extracting each CR field bit then setting it, the operation // could be performed on the internal format directly instead and the // relevant bit result can be masked out. diff --git a/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp b/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp index a08aaad0f4..6230f9afbf 100644 --- a/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp +++ b/Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp @@ -81,7 +81,7 @@ void CommonAsmRoutines::GenConvertDoubleToSingle() PAND(XMM0, MConst(double_bottom_bits)); PSRLQ(XMM0, 29); - // OR them togther + // OR them together POR(XMM0, R(XMM1)); MOVD_xmm(R(RSCRATCH), XMM0); } diff --git a/Source/Core/Core/PowerPC/MMU.cpp b/Source/Core/Core/PowerPC/MMU.cpp index ad14ebbc2c..cde4e7b03e 100644 --- a/Source/Core/Core/PowerPC/MMU.cpp +++ b/Source/Core/Core/PowerPC/MMU.cpp @@ -129,7 +129,7 @@ static void EFB_Write(u32 data, u32 addr) if (addr & 0x00800000) { // It's possible to do a z-tested write to EFB by writing a 64bit value to this address range. - // Not much is known, but let's at least get some loging. + // Not much is known, but let's at least get some logging. ERROR_LOG_FMT(MEMMAP, "Unimplemented Z+Color EFB write. {:08x} @ {:#010x}", data, addr); } else if (addr & 0x00400000) diff --git a/Source/Core/DiscIO/DirectoryBlob.h b/Source/Core/DiscIO/DirectoryBlob.h index baea8d9e85..01cb5d1606 100644 --- a/Source/Core/DiscIO/DirectoryBlob.h +++ b/Source/Core/DiscIO/DirectoryBlob.h @@ -48,7 +48,7 @@ struct ContentFile typedef std::shared_ptr> ContentMemory; // Content chunk that loads data from a DirectoryBlobReader. -// Intented for representing a partition within a disc. +// Intended for representing a partition within a disc. struct ContentPartition { // Offset from the start of the partition for the first byte represented by this chunk. diff --git a/Source/Core/DiscIO/NANDImporter.cpp b/Source/Core/DiscIO/NANDImporter.cpp index f7e233579c..54122d0626 100644 --- a/Source/Core/DiscIO/NANDImporter.cpp +++ b/Source/Core/DiscIO/NANDImporter.cpp @@ -244,7 +244,7 @@ bool NANDImporter::ExtractCertificates() if (search_result.empty()) { - ERROR_LOG_FMT(DISCIO, "ExtractCertificates: Could not find offset for certficate '{}'", + ERROR_LOG_FMT(DISCIO, "ExtractCertificates: Could not find offset for certificate '{}'", certificate.filename); return false; } diff --git a/Source/Core/DiscIO/WIABlob.cpp b/Source/Core/DiscIO/WIABlob.cpp index 743eade500..d068fa625b 100644 --- a/Source/Core/DiscIO/WIABlob.cpp +++ b/Source/Core/DiscIO/WIABlob.cpp @@ -1792,7 +1792,7 @@ WIARVZFileReader::Convert(BlobReader* infile, const VolumeDisc* infile_volu // Compared to WIA, RVZ adds an extra member to the GroupEntry struct. This added data usually // compresses well, so we'll assume the compression ratio for RVZ GroupEntries is 9 / 16 or - // better. This constant is somehwat arbitrarily chosen, but no games were found that get a + // better. This constant is somewhat arbitrarily chosen, but no games were found that get a // worse compression ratio than that. There are some games that get a worse ratio than 1 / 2, // such as Metroid: Other M (PAL) with the default settings. if (RVZ && compression_type > WIARVZCompressionType::Purge) diff --git a/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp b/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp index 53da173bba..3412022f6b 100644 --- a/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp @@ -821,7 +821,7 @@ static void PaintStateIndicator(QPainter& painter, const QRect& region, ControlS QRect meter_region = region; meter_region.setWidth(region.width() * std::clamp(state, 0.0, 1.0)); - // Create a temporary indicator object to retreive color constants. + // Create a temporary indicator object to retrieve color constants. MappingIndicator indicator; // Normal text. diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index abbf59c4ce..083ff636ef 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -676,7 +676,7 @@ void CodeViewWidget::OnContextMenu() auto* note = m_ppc_symbol_db.GetNoteFromAddr(addr); note_edit_action->setEnabled(note != nullptr); - // A note cannot be added ontop of the starting address of another note. + // A note cannot be added on top of the starting address of another note. if (note != nullptr && note->address == addr) note_add_action->setEnabled(false); diff --git a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp index 0b8ffe1d1e..53f0eb1398 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp @@ -984,7 +984,7 @@ void MemoryViewWidget::ToggleHighlights(bool enabled) } else { - // Treated as being interchangable with Qt::transparent. + // Treated as being interchangeable with Qt::transparent. m_highlight_color.setAlpha(0); // Immediately remove highlights when paused. @@ -1220,7 +1220,7 @@ void MemoryViewWidget::OnContextMenu(const QPoint& pos) auto* note = m_ppc_symbol_db.GetNoteFromAddr(addr); note_edit_action->setEnabled(note != nullptr); - // A note cannot be added ontop of the starting address of another note. + // A note cannot be added on top of the starting address of another note. if (note != nullptr && note->address == addr) note_add_action->setEnabled(false); diff --git a/Source/Core/DolphinQt/Debugger/RegisterColumn.h b/Source/Core/DolphinQt/Debugger/RegisterColumn.h index 9547becce2..53323ae043 100644 --- a/Source/Core/DolphinQt/Debugger/RegisterColumn.h +++ b/Source/Core/DolphinQt/Debugger/RegisterColumn.h @@ -31,7 +31,7 @@ enum class RegisterType int_mask, // ??? int_cause, // ??? dsisr, // Defines the cause of data / alignment exceptions - dar, // Data adress register + dar, // Data address register pt_hashmask // ??? }; diff --git a/Source/Core/DolphinQt/ResourcePackManager.cpp b/Source/Core/DolphinQt/ResourcePackManager.cpp index 4c8085e60f..90739da45f 100644 --- a/Source/Core/DolphinQt/ResourcePackManager.cpp +++ b/Source/Core/DolphinQt/ResourcePackManager.cpp @@ -162,7 +162,7 @@ void ResourcePackManager::RepopulateTable() SelectionChanged(); } -// Revert the indicies as to be more intuitive for users +// Revert the indices as to be more intuitive for users int ResourcePackManager::GetResourcePackIndex(QTableWidgetItem* item) const { return m_table_widget->rowCount() - 1 - item->row(); diff --git a/Source/Core/DolphinQt/SearchBar.h b/Source/Core/DolphinQt/SearchBar.h index 07b009f877..c09e9309df 100644 --- a/Source/Core/DolphinQt/SearchBar.h +++ b/Source/Core/DolphinQt/SearchBar.h @@ -18,7 +18,7 @@ public: void Hide(); signals: - void Search(const QString& serach); + void Search(const QString& search); private: void CreateWidgets(); diff --git a/Source/Core/DolphinQt/Settings.cpp b/Source/Core/DolphinQt/Settings.cpp index f74c6589cc..3b31ff5703 100644 --- a/Source/Core/DolphinQt/Settings.cpp +++ b/Source/Core/DolphinQt/Settings.cpp @@ -414,7 +414,7 @@ void Settings::SetStyleType(StyleType type) { GetQSettings().setValue(QStringLiteral("userstyle/styletype"), static_cast(type)); - // also set the old setting so that the config is correctly intepreted by older Dolphin builds + // also set the old setting so that the config is correctly interpreted by older Dolphin builds GetQSettings().setValue(QStringLiteral("userstyle/enabled"), type == StyleType::User); } diff --git a/Source/Core/DolphinQt/Settings/AudioPane.cpp b/Source/Core/DolphinQt/Settings/AudioPane.cpp index 8384a74dc7..c08b4f552f 100644 --- a/Source/Core/DolphinQt/Settings/AudioPane.cpp +++ b/Source/Core/DolphinQt/Settings/AudioPane.cpp @@ -89,7 +89,7 @@ void AudioPane::CreateWidgets() const QFontMetrics font_metrics{font()}; const int label_width = font_metrics.boundingRect(GetVolumeLabelText(100)).width(); // Ensure the label is at least as wide as the QGroupBox title. - // This prevents [-Volume] title uglyness on Windows. + // This prevents [-Volume] title ugliness on Windows. const int title_width = font_metrics.boundingRect(volume_box->title()).width(); m_volume_indicator->setFixedWidth(std::max(label_width, title_width)); diff --git a/Source/Core/DolphinQt/Settings/InterfacePane.cpp b/Source/Core/DolphinQt/Settings/InterfacePane.cpp index f12689cb31..a12434236c 100644 --- a/Source/Core/DolphinQt/Settings/InterfacePane.cpp +++ b/Source/Core/DolphinQt/Settings/InterfacePane.cpp @@ -131,7 +131,7 @@ void InterfacePane::CreateUI() m_combobox_language = MakeLanguageComboBox(); combobox_layout->addRow(tr("&Language:"), m_combobox_language); - // List avalable themes + // List available themes auto theme_paths = Common::DoFileSearch({File::GetUserPath(D_THEMES_IDX), File::GetSysDirectory() + THEMES_DIR}); std::vector theme_names; diff --git a/Source/Core/DolphinQt/TAS/TASInputWindow.cpp b/Source/Core/DolphinQt/TAS/TASInputWindow.cpp index 00e2679c3a..8c2318f1e9 100644 --- a/Source/Core/DolphinQt/TAS/TASInputWindow.cpp +++ b/Source/Core/DolphinQt/TAS/TASInputWindow.cpp @@ -198,7 +198,7 @@ TASSpinBox* TASInputWindow::CreateSliderValuePair( } // The shortcut_widget argument needs to specify the container widget that will be hidden/shown. -// This is done to avoid ambigous shortcuts +// This is done to avoid ambiguous shortcuts TASSpinBox* TASInputWindow::CreateSliderValuePair(QBoxLayout* layout, int default_, int max, QKeySequence shortcut_key_sequence, Qt::Orientation orientation, diff --git a/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp b/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp index 8de2b6ef56..daa654e48c 100644 --- a/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp +++ b/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp @@ -130,11 +130,11 @@ Lexer::Lexer(std::string expr_) : expr(std::move(expr_)) it = expr.begin(); } -Token Lexer::GetDelimitedToken(TokenType type, char delimeter) +Token Lexer::GetDelimitedToken(TokenType type, char delimiter) { - const std::string value = FetchCharsWhile([&](char c) { return c != delimeter && c != '\n'; }); + const std::string value = FetchCharsWhile([&](char c) { return c != delimiter && c != '\n'; }); - if (it == expr.end() || *it != delimeter) + if (it == expr.end() || *it != delimiter) return Token(TOK_INVALID); ++it; @@ -639,7 +639,8 @@ private: // right-hand child. Its intended use is for supporting old-style barewords expressions. // Note that if you have a keyboard device as default device and the expression is a single digit // number, this will usually resolve in a numerical key instead of a numerical value. -// Though if this expression belongs to NumericSetting, it will likely be simplifed back to a value. +// Though if this expression belongs to NumericSetting, it will likely be simplified back to a +// value. class CoalesceExpression : public Expression { public: diff --git a/Source/Core/InputCommon/ControlReference/ExpressionParser.h b/Source/Core/InputCommon/ControlReference/ExpressionParser.h index 2bb9709063..b36fef1daf 100644 --- a/Source/Core/InputCommon/ControlReference/ExpressionParser.h +++ b/Source/Core/InputCommon/ControlReference/ExpressionParser.h @@ -96,7 +96,7 @@ private: } std::string FetchWordChars(); - Token GetDelimitedToken(TokenType type, char delimeter); + Token GetDelimitedToken(TokenType type, char delimiter); Token GetDelimitedLiteral(); Token GetVariable(); Token GetFullyQualifiedControl(); diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp index 8ff82e2b33..0f720d3add 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp @@ -28,7 +28,7 @@ Force::Force(const std::string& name_) : ReshapableInput(name_, name_, GroupType {_trans("Distance"), // i18n: The symbol/abbreviation for centimeters. _trans("cm"), - // i18n: Refering to emulated wii remote swing movement. + // i18n: Referring to emulated wii remote swing movement. _trans("Distance of travel from neutral position.")}, 50, 1, 100); @@ -42,7 +42,7 @@ Force::Force(const std::string& name_) : ReshapableInput(name_, name_, GroupType {_trans("Speed"), // i18n: The symbol/abbreviation for meters per second. _trans("m/s"), - // i18n: Refering to emulated wii remote swing movement. + // i18n: Referring to emulated wii remote swing movement. _trans("Peak velocity of outward swing movements.")}, 16, 1, 40); @@ -51,7 +51,7 @@ Force::Force(const std::string& name_) : ReshapableInput(name_, name_, GroupType {_trans("Return Speed"), // i18n: The symbol/abbreviation for meters per second. _trans("m/s"), - // i18n: Refering to emulated wii remote swing movement. + // i18n: Referring to emulated wii remote swing movement. _trans("Peak velocity of movements to neutral position.")}, 2, 1, 40); @@ -59,7 +59,7 @@ Force::Force(const std::string& name_) : ReshapableInput(name_, name_, GroupType {_trans("Angle"), // i18n: The symbol/abbreviation for degrees (unit of angular measure). _trans("°"), - // i18n: Refering to emulated wii remote swing movement. + // i18n: Referring to emulated wii remote swing movement. _trans("Rotation applied at extremities of swing.")}, 90, 1, 180); } @@ -141,7 +141,7 @@ Shake::Shake(const std::string& name_, ControlState default_intensity_scale) {_trans("Intensity"), // i18n: The symbol/abbreviation for centimeters. _trans("cm"), - // i18n: Refering to emulated wii remote movement. + // i18n: Referring to emulated wii remote movement. _trans("Total travel distance.")}, 10 * default_intensity_scale, -50, 50); @@ -151,7 +151,7 @@ Shake::Shake(const std::string& name_, ControlState default_intensity_scale) {_trans("Frequency"), // i18n: The symbol/abbreviation for hertz (cycles per second). _trans("Hz"), - // i18n: Refering to emulated wii remote movement. + // i18n: Referring to emulated wii remote movement. _trans("Number of shakes per second.")}, 6, 1, 20); } diff --git a/Source/Core/InputCommon/ControllerEmu/StickGate.cpp b/Source/Core/InputCommon/ControllerEmu/StickGate.cpp index c1e8a29b2d..660ee939be 100644 --- a/Source/Core/InputCommon/ControllerEmu/StickGate.cpp +++ b/Source/Core/InputCommon/ControllerEmu/StickGate.cpp @@ -34,7 +34,7 @@ std::optional GetRayLineIntersection(Common::DVec2 ray, Common::DVec2 po const auto dot = diff.Dot({-ray.y, ray.x}); if (std::abs(dot) < 0.00001) { - // Both points are on top of eachother. + // Both points are on top of each other. return std::nullopt; } @@ -169,7 +169,7 @@ ControlState ReshapableInput::GetCalibrationDataRadiusAtAngle(const CalibrationD GetPointFromAngleAndLength(sample1_angle, data[sample1_index]), GetPointFromAngleAndLength(sample2_angle, data[sample2_index])); - // Intersection has no value when points are on top of eachother. + // Intersection has no value when points are on top of each other. return intersection.value_or(data[sample1_index]); } diff --git a/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPProto.h b/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPProto.h index aca2176e6d..6d0559ca52 100644 --- a/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPProto.h +++ b/Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPProto.h @@ -240,7 +240,7 @@ struct Message std::optional CheckAndCastTo() { const u32 crc32_in_header = m_message.header.crc32; - // zero out the crc32 in the packet once we got it since that's whats needed for calculation + // zero out the crc32 in the packet once we got it since that's what's needed for calculation m_message.header.crc32 = 0; const u32 crc32_calculated = Common::ComputeCRC32(reinterpret_cast(&m_message), sizeof(ToMsgType)); diff --git a/Source/Core/InputCommon/ControllerInterface/WGInput/WGInput.cpp b/Source/Core/InputCommon/ControllerInterface/WGInput/WGInput.cpp index 428a7ed6a3..567090ee7b 100644 --- a/Source/Core/InputCommon/ControllerInterface/WGInput/WGInput.cpp +++ b/Source/Core/InputCommon/ControllerInterface/WGInput/WGInput.cpp @@ -328,7 +328,7 @@ private: if (m_switch == WGI::GameControllerSwitchPosition::Center) return 0.0; - // All of the "inbetween" states (e.g. Up-Right) are one-off from the four cardinal + // All of the "in between" states (e.g. Up-Right) are one-off from the four cardinal // directions. This tests that the current switch state value is within 1 of the desired // state. const auto direction_diff = std::abs(static_cast(m_switch) - m_direction); diff --git a/Source/Core/InputCommon/ControllerInterface/Wiimote/WiimoteController.cpp b/Source/Core/InputCommon/ControllerInterface/Wiimote/WiimoteController.cpp index 9b5fe3c1e9..b062684100 100644 --- a/Source/Core/InputCommon/ControllerInterface/Wiimote/WiimoteController.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Wiimote/WiimoteController.cpp @@ -737,7 +737,7 @@ void Device::ProcessExtensionID(u8 id_0, u8 id_4, u8 id_5) } else { - // This is a normal occurance before extension initialization. + // This is a normal occurrence before extension initialization. DEBUG_LOG_FMT(WIIMOTE, "WiiRemote: Unknown extension: {} {} {}.", id_0, id_4, id_5); m_extension_id = ExtensionID::Unsupported; } @@ -1328,7 +1328,7 @@ void Device::IRState::ProcessData(const DataReportManipulator& manipulator) if (points.Count() >= 2) { const auto variance = points.PopulationVariance(); - // Adjusts Y coorinate to match horizontal FOV. + // Adjusts Y coordinate to match horizontal FOV. const auto separation = Common::Vec2(std::sqrt(variance.x), std::sqrt(variance.y)) / Common::Vec2(WiimoteEmu::CameraLogic::CAMERA_RES_X, diff --git a/Source/Core/InputCommon/GCAdapter.cpp b/Source/Core/InputCommon/GCAdapter.cpp index 5ec245a56d..8181b196ee 100644 --- a/Source/Core/InputCommon/GCAdapter.cpp +++ b/Source/Core/InputCommon/GCAdapter.cpp @@ -634,7 +634,7 @@ static bool CheckDeviceAccess(libusb_device* device) } else if (ret != 0) // 0: kernel driver is not active, but otherwise no error. { - // Neither 0 nor 1 means an error occured. + // Neither 0 nor 1 means an error occurred. ERROR_LOG_FMT(CONTROLLERINTERFACE, "libusb_kernel_driver_active failed: {}", LibusbUtils::ErrorWrap(ret)); } diff --git a/Source/Core/UICommon/DiscordPresence.cpp b/Source/Core/UICommon/DiscordPresence.cpp index 67870999aa..34f47e52d0 100644 --- a/Source/Core/UICommon/DiscordPresence.cpp +++ b/Source/Core/UICommon/DiscordPresence.cpp @@ -274,7 +274,7 @@ void UpdateDiscordPresence(int party_size, SecretType type, const std::string& s std::string secret_final; if (type != SecretType::Empty) { - // Declearing party_id or secret_final here will deallocate the variable before passing the + // Declaring party_id or secret_final here will deallocate the variable before passing the // values over to Discord_UpdatePresence. const size_t secret_length = secret.length(); diff --git a/Source/Core/UICommon/NetPlayIndex.cpp b/Source/Core/UICommon/NetPlayIndex.cpp index aaaa4549a8..1c2468030e 100644 --- a/Source/Core/UICommon/NetPlayIndex.cpp +++ b/Source/Core/UICommon/NetPlayIndex.cpp @@ -289,7 +289,7 @@ std::optional NetPlaySession::DecryptID(std::string_view password) if (password.empty()) return {}; - // If the length of an encrypted session id is not divisble by two, it's invalid + // If the length of an encrypted session id is not divisible by two, it's invalid if (server_id.empty() || server_id.size() % 2 != 0) return {}; diff --git a/Source/Core/UICommon/X11Utils.cpp b/Source/Core/UICommon/X11Utils.cpp index 26f8a0ce09..beec343e03 100644 --- a/Source/Core/UICommon/X11Utils.cpp +++ b/Source/Core/UICommon/X11Utils.cpp @@ -107,7 +107,7 @@ void XRRConfiguration::Update() } fullMode = 0; - // Get the resolution setings for fullscreen mode + // Get the resolution settings for fullscreen mode unsigned int fullWidth, fullHeight; char* output_name = nullptr; char auxFlag = '\0'; diff --git a/Source/Core/UpdaterCommon/UpdaterCommon.cpp b/Source/Core/UpdaterCommon/UpdaterCommon.cpp index 3032382bff..1f9271d4c7 100644 --- a/Source/Core/UpdaterCommon/UpdaterCommon.cpp +++ b/Source/Core/UpdaterCommon/UpdaterCommon.cpp @@ -331,7 +331,7 @@ bool BackupFile(const std::string& path) LogToFile("Backing up existing %s to .bak.\n", path.c_str()); if (!File::Rename(path, backup_path)) { - LogToFile("Cound not rename %s to %s for backup.\n", path.c_str(), backup_path.c_str()); + LogToFile("Could not rename %s to %s for backup.\n", path.c_str(), backup_path.c_str()); return false; } return true; diff --git a/Source/Core/VideoBackends/D3D12/DX12Texture.h b/Source/Core/VideoBackends/D3D12/DX12Texture.h index 14bf55415b..e31a78d4b9 100644 --- a/Source/Core/VideoBackends/D3D12/DX12Texture.h +++ b/Source/Core/VideoBackends/D3D12/DX12Texture.h @@ -43,7 +43,7 @@ public: void TransitionToState(D3D12_RESOURCE_STATES state) const; - // Destoys the resource backing this texture. The resource must not be in use by the GPU. + // Destroys the resource backing this texture. The resource must not be in use by the GPU. void DestroyResource(); private: diff --git a/Source/Core/VideoBackends/D3DCommon/SwapChain.cpp b/Source/Core/VideoBackends/D3DCommon/SwapChain.cpp index ff40ad4180..1c91275a52 100644 --- a/Source/Core/VideoBackends/D3DCommon/SwapChain.cpp +++ b/Source/Core/VideoBackends/D3DCommon/SwapChain.cpp @@ -316,7 +316,7 @@ bool SwapChain::ChangeSurface(void* native_handle) { DestroySwapChain(); m_wsi.render_surface = native_handle; - // We only keep the swap chain settings (HDR/Stereo) that had successfully applied beofre + // We only keep the swap chain settings (HDR/Stereo) that had successfully applied before return CreateSwapChain(m_stereo, m_hdr); } diff --git a/Source/Core/VideoBackends/Metal/MTLStateTracker.mm b/Source/Core/VideoBackends/Metal/MTLStateTracker.mm index 755da35249..f4d5634636 100644 --- a/Source/Core/VideoBackends/Metal/MTLStateTracker.mm +++ b/Source/Core/VideoBackends/Metal/MTLStateTracker.mm @@ -891,7 +891,7 @@ void Metal::StateTracker::PrepareCompute() { m_dirty_textures &= ~pipe->GetTextures(); // Since there's two sets of textures, it's likely there'll be a few in each - // Check each set separately to avoid doing too many unneccessary bindings + // Check each set separately to avoid doing too many unnecessary bindings constexpr u32 lo_mask = (1 << VideoCommon::MAX_COMPUTE_SHADER_SAMPLERS) - 1; if (u32 lo = dirty & lo_mask) { diff --git a/Source/Core/VideoBackends/OGL/OGLConfig.cpp b/Source/Core/VideoBackends/OGL/OGLConfig.cpp index 1da407e664..b24481f790 100644 --- a/Source/Core/VideoBackends/OGL/OGLConfig.cpp +++ b/Source/Core/VideoBackends/OGL/OGLConfig.cpp @@ -274,7 +274,7 @@ bool PopulateConfig(GLContext* m_main_gl_context) if (!GLExtensions::Supports("GL_ARB_sampler_objects")) { - // Our sampler cache uses this extension. It could easyly be workaround and it's by far the + // Our sampler cache uses this extension. It could easily be workaround and it's by far the // highest requirement, but it seems that no driver lacks support for it. PanicAlertFmtT("GPU: OGL ERROR: Need GL_ARB_sampler_objects.\n" "GPU: Does your video card support OpenGL 3.3?"); diff --git a/Source/Core/VideoBackends/OGL/OGLMain.cpp b/Source/Core/VideoBackends/OGL/OGLMain.cpp index e47eaaf940..e53999112b 100644 --- a/Source/Core/VideoBackends/OGL/OGLMain.cpp +++ b/Source/Core/VideoBackends/OGL/OGLMain.cpp @@ -133,7 +133,7 @@ bool VideoBackend::FillBackendInfo(GLContext* context) g_backend_info.bSupportsPipelineCacheData = false; g_backend_info.bSupportsLodBiasInSampler = true; g_backend_info.bSupportsPartialMultisampleResolve = true; - // Unneccessary since OGL doesn't use pipelines + // Unnecessary since OGL doesn't use pipelines g_backend_info.bSupportsDynamicVertexLoader = false; // TODO: There is a bug here, if texel buffers or SSBOs/atomics are not supported the graphics diff --git a/Source/Core/VideoBackends/OGL/OGLStreamBuffer.cpp b/Source/Core/VideoBackends/OGL/OGLStreamBuffer.cpp index 1a14833f28..a0e18d7287 100644 --- a/Source/Core/VideoBackends/OGL/OGLStreamBuffer.cpp +++ b/Source/Core/VideoBackends/OGL/OGLStreamBuffer.cpp @@ -42,7 +42,7 @@ StreamBuffer::~StreamBuffer() * The next three functions are to create/delete/use the OpenGL synchronization. * ARB_sync (OpenGL 3.2) is used and required. * - * To reduce overhead, the complete buffer is splitted up into SYNC_POINTS chunks. + * To reduce overhead, the complete buffer is split up into SYNC_POINTS chunks. * For each of this chunks, there is a fence which checks if this chunk is still in use. * * As our API allows to alloc more memory then it has to use, we have to catch how much is already diff --git a/Source/Core/VideoBackends/Software/SWGfx.cpp b/Source/Core/VideoBackends/Software/SWGfx.cpp index fba9faf7e5..ed152aef95 100644 --- a/Source/Core/VideoBackends/Software/SWGfx.cpp +++ b/Source/Core/VideoBackends/Software/SWGfx.cpp @@ -129,7 +129,7 @@ void SWGfx::SetScissorRect(const MathUtil::Rectangle& rc) { // BPFunctions calls SetScissorRect with the "best" scissor rect whenever the viewport or scissor // changes. However, the software renderer is actually able to use multiple scissor rects (which - // is necessary in a few renderering edge cases, such as with Major Minor's Majestic March). + // is necessary in a few rendering edge cases, such as with Major Minor's Majestic March). // Thus, we use this as a signal to update the list of scissor rects, but ignore the parameter. Rasterizer::ScissorChanged(); } diff --git a/Source/Core/VideoBackends/Vulkan/CommandBufferManager.h b/Source/Core/VideoBackends/Vulkan/CommandBufferManager.h index 90e62bb805..45a322c270 100644 --- a/Source/Core/VideoBackends/Vulkan/CommandBufferManager.h +++ b/Source/Core/VideoBackends/Vulkan/CommandBufferManager.h @@ -42,7 +42,7 @@ public: // Fence "counters" are used to track which commands have been completed by the GPU. // If the last completed fence counter is greater or equal to N, it means that the work // associated counter N has been completed by the GPU. The value of N to associate with - // commands can be retreived by calling GetCurrentFenceCounter(). + // commands can be retrieved by calling GetCurrentFenceCounter(). u64 GetCompletedFenceCounter() const { return m_completed_fence_counter; } // Gets the fence that will be signaled when the currently executing command buffer is diff --git a/Source/Core/VideoBackends/Vulkan/StateTracker.h b/Source/Core/VideoBackends/Vulkan/StateTracker.h index 8de5fd54cc..da0e4d8387 100644 --- a/Source/Core/VideoBackends/Vulkan/StateTracker.h +++ b/Source/Core/VideoBackends/Vulkan/StateTracker.h @@ -66,7 +66,7 @@ public: void SetViewport(const VkViewport& viewport); void SetScissor(const VkRect2D& scissor); - // Binds all dirty state to the commmand buffer. + // Binds all dirty state to the command buffer. // If this returns false, you should not issue the draw. bool Bind(); diff --git a/Source/Core/VideoCommon/Assets/ShaderAsset.h b/Source/Core/VideoCommon/Assets/ShaderAsset.h index 0204f65bb3..3a785ad310 100644 --- a/Source/Core/VideoCommon/Assets/ShaderAsset.h +++ b/Source/Core/VideoCommon/Assets/ShaderAsset.h @@ -60,7 +60,7 @@ struct RasterSurfaceShaderData // These shader properties describe the input that the // shader expects to expose. The key is text - // expected to be in the shader code and the propery + // expected to be in the shader code and the property // describes various details about the input std::vector uniform_properties; std::string vertex_source; diff --git a/Source/Core/VideoCommon/Assets/TextureSamplerValue.h b/Source/Core/VideoCommon/Assets/TextureSamplerValue.h index 11896559f5..9b21b6bf8d 100644 --- a/Source/Core/VideoCommon/Assets/TextureSamplerValue.h +++ b/Source/Core/VideoCommon/Assets/TextureSamplerValue.h @@ -20,7 +20,7 @@ struct TextureSamplerValue // If 'Asset' is used, the sampler is pulled // directly from the asset properties // If 'TextureHash' is chosen, the sampler is pulled - // from the game with the cooresponding texture hash + // from the game with the corresponding texture hash enum class SamplerOrigin { Asset, diff --git a/Source/Core/VideoCommon/CPUCull.cpp b/Source/Core/VideoCommon/CPUCull.cpp index 8158e23a7e..2ef0881011 100644 --- a/Source/Core/VideoCommon/CPUCull.cpp +++ b/Source/Core/VideoCommon/CPUCull.cpp @@ -153,7 +153,7 @@ bool CPUCull::AreAllVerticesCulled(VertexLoaderBase* loader, OpcodeDecoder::Prim Common::AllocateAlignedMemory(new_size * sizeof(TransformedVertex), 32))); } - // transform functions need the projection matrix to tranform to clip space + // transform functions need the projection matrix to transform to clip space auto& system = Core::System::GetInstance(); system.GetVertexShaderManager().SetProjectionMatrix(system.GetXFStateManager()); diff --git a/Source/Core/VideoCommon/DriverDetails.h b/Source/Core/VideoCommon/DriverDetails.h index 597b2848d4..64ed656f3f 100644 --- a/Source/Core/VideoCommon/DriverDetails.h +++ b/Source/Core/VideoCommon/DriverDetails.h @@ -325,7 +325,7 @@ enum Bug // BUG: Some driver and Apple Silicon GPU combinations have problems with fragment discard when // early depth test is enabled. Discarded fragments may appear corrupted (Super Mario Sunshine, - // Sonic Adventure 2: Battle, Phantasy Star Online Epsiodes 1 & 2, etc). + // Sonic Adventure 2: Battle, Phantasy Star Online Episodes 1 & 2, etc). // Affected devices: Apple Silicon GPUs of Apple family 4 and newer. // Started version: -1 // Ended version: -1 diff --git a/Source/Core/VideoCommon/GeometryShaderManager.cpp b/Source/Core/VideoCommon/GeometryShaderManager.cpp index 43c934ed28..553b451066 100644 --- a/Source/Core/VideoCommon/GeometryShaderManager.cpp +++ b/Source/Core/VideoCommon/GeometryShaderManager.cpp @@ -18,7 +18,7 @@ void GeometryShaderManager::Init() { constants = {}; - // Init any intial constants which aren't zero when bpmem is zero. + // Init any initial constants which aren't zero when bpmem is zero. SetViewportChanged(); SetProjectionChanged(); diff --git a/Source/Core/VideoCommon/PixelShaderManager.cpp b/Source/Core/VideoCommon/PixelShaderManager.cpp index 950f07f509..d2bdadb9c8 100644 --- a/Source/Core/VideoCommon/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/PixelShaderManager.cpp @@ -16,7 +16,7 @@ void PixelShaderManager::Init() { constants = {}; - // Init any intial constants which aren't zero when bpmem is zero. + // Init any initial constants which aren't zero when bpmem is zero. m_fog_range_adjusted_changed = true; m_viewport_changed = false; @@ -51,9 +51,9 @@ void PixelShaderManager::Init() constants.konst[10][component] = 0; constants.konst[11][component] = 0; - // Annoyingly, alpha reads zero values for the .rgb colors (offically + // Annoyingly, alpha reads zero values for the .rgb colors (officially // defined as invalid) - // If it wasn't for this, we could just use one of the first 3 colunms + // If it wasn't for this, we could just use one of the first 3 columns // instead of // wasting an entire 4th column just for alpha. if (component == 3) diff --git a/Source/Core/VideoCommon/PostProcessing.cpp b/Source/Core/VideoCommon/PostProcessing.cpp index e1cc6e0e60..94da639bca 100644 --- a/Source/Core/VideoCommon/PostProcessing.cpp +++ b/Source/Core/VideoCommon/PostProcessing.cpp @@ -908,7 +908,7 @@ void PostProcessing::FillUniformBuffer(const MathUtil::Rectangle& src, g_ActiveConfig.color_correction.fSDRDisplayCustomGamma; // scRGB (RGBA16F) expects linear values as opposed to sRGB gamma builtin_uniforms.linear_space_output = m_framebuffer_format == AbstractTextureFormat::RGBA16F; - // Implies ouput values can be beyond the 0-1 range + // Implies output values can be beyond the 0-1 range builtin_uniforms.hdr_output = m_framebuffer_format == AbstractTextureFormat::RGBA16F; builtin_uniforms.hdr_paper_white_nits = g_ActiveConfig.color_correction.fHDRPaperWhiteNits; // A value of 1 1 1 usually matches 80 nits in HDR diff --git a/Source/Core/VideoCommon/Present.cpp b/Source/Core/VideoCommon/Present.cpp index ea7f2d6d74..4374782464 100644 --- a/Source/Core/VideoCommon/Present.cpp +++ b/Source/Core/VideoCommon/Present.cpp @@ -628,7 +628,7 @@ std::tuple Presenter::ApplyStandardAspectCrop(float width, float h // For the custom (relative) case, we want to crop from the native aspect ratio // to the specific target one, as they likely have a small difference case AspectMode::Custom: - // There should be no cropping needed in the custom strech case, + // There should be no cropping needed in the custom stretch case, // as output should always exactly match the target aspect ratio case AspectMode::CustomStretch: expected_aspect = g_ActiveConfig.GetCustomAspectRatio(); diff --git a/Source/Core/VideoCommon/RenderState.cpp b/Source/Core/VideoCommon/RenderState.cpp index 0276c6da08..47fb5d7a03 100644 --- a/Source/Core/VideoCommon/RenderState.cpp +++ b/Source/Core/VideoCommon/RenderState.cpp @@ -76,7 +76,7 @@ static DstBlendFactor RemoveDstAlphaUsage(DstBlendFactor factor) } // We separate the blending parameter for rgb and alpha. For blending -// the alpha component, CLR and ALPHA are indentical. So just always +// the alpha component, CLR and ALPHA are identical. So just always // use ALPHA as this makes it easier for the backends to use the second // alpha value of dual source blending. static DstBlendFactor RemoveSrcColorUsage(DstBlendFactor factor) diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 6ae8b4f96f..7442be56a2 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -570,7 +570,7 @@ void TextureCacheBase::DoSaveState(PointerWrap& p) auto ShouldSaveEntry = [](const RcTcacheEntry& entry) { // We skip non-copies as they can be decoded from RAM when the state is loaded. // Storing them would duplicate data in the save state file, adding to decompression time. - // We also need to store invalidated entires, as they can't be restored from RAM. + // We also need to store invalidated entries, as they can't be restored from RAM. return entry->IsCopy() || entry->invalidated; }; auto AddCacheEntryToMap = [&entry_map, &entries_to_save](const RcTcacheEntry& entry) -> u32 { @@ -1258,7 +1258,7 @@ TCacheEntry* TextureCacheBase::LoadImpl(const TextureInfo& texture_info, bool fo // If the TMEM configuration is such that this texture is more or less guaranteed to still // be in TMEM, then we know we can reuse the old entry without even hashing the memory // - // It's possible this texture has already been overwritten in emulated memory and therfore + // It's possible this texture has already been overwritten in emulated memory and therefore // invalidated from our texture cache, but we want to use it anyway to approximate the // result of the game using an overwritten texture cached in TMEM. // @@ -2468,7 +2468,7 @@ void TextureCacheBase::CopyRenderTargetToTexture( if (OpcodeDecoder::g_record_fifo_data) { - // Mark the memory behind this efb copy as dynamicly generated for the Fifo log + // Mark the memory behind this efb copy as dynamically generated for the Fifo log u32 address = dstAddr; for (u32 i = 0; i < num_blocks_y; i++) { @@ -2687,7 +2687,7 @@ TextureCacheBase::FindMatchingTextureFromPool(const TextureConfig& config) // Find a texture from the pool that does not have a frameCount of FRAMECOUNT_INVALID. // This prevents a texture from being used twice in a single frame with different data, // which potentially means that a driver has to maintain two copies of the texture anyway. - // Render-target textures are fine through, as they have to be generated in a seperated pass. + // Render-target textures are fine through, as they have to be generated in a separate pass. // As non-render-target textures are usually static, this should not matter much. auto range = m_texture_pool.equal_range(config); auto matching_iter = std::find_if(range.first, range.second, [](const auto& iter) { diff --git a/Source/Core/VideoCommon/TextureDecoder_x64.cpp b/Source/Core/VideoCommon/TextureDecoder_x64.cpp index 3faa6c52c3..25eebf2cba 100644 --- a/Source/Core/VideoCommon/TextureDecoder_x64.cpp +++ b/Source/Core/VideoCommon/TextureDecoder_x64.cpp @@ -1006,7 +1006,7 @@ static void TexDecoder_DecodeImpl_RGBA8_SSSE3(u32* dst, const u8* src, int width TextureFormat texformat, const u8* tlut, TLUTFormat tlutfmt, int Wsteps4, int Wsteps8) { - // xsacha optimized with SSSE3 instrinsics + // xsacha optimized with SSSE3 intrinsics // Produces a ~30% speed improvement over SSE2 implementation for (int y = 0; y < height; y += 4) { @@ -1212,7 +1212,7 @@ static void TexDecoder_DecodeImpl_CMPR(u32* dst, const u8* src, int width, int h int cmp1 = _mm_extract_epi16(cmprgb0rgb1, 4); // green: - // NOTE: We start with the larger number of bits (6) firts for G and shift the mask down + // NOTE: We start with the larger number of bits (6) first for G and shift the mask down // 1 bit to get a 5-bit mask later for R and B components. // low6mask == _mm_set_epi32(0x0000FC00, 0x0000FC00, 0x0000FC00, 0x0000FC00) const __m128i low6mask = _mm_slli_epi32(_mm_srli_epi32(allFFs128, 24 + 2), 8 + 2); diff --git a/Source/Core/VideoCommon/UberShaderPixel.cpp b/Source/Core/VideoCommon/UberShaderPixel.cpp index 4eb41fa94e..cbce3ff5a8 100644 --- a/Source/Core/VideoCommon/UberShaderPixel.cpp +++ b/Source/Core/VideoCommon/UberShaderPixel.cpp @@ -557,7 +557,7 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config, out.Write("}}\n" "\n"); - // Since the fixed-point texture coodinate variables aren't global, we need to pass + // Since the fixed-point texture coordinate variables aren't global, we need to pass // them to the select function. This applies to all backends. if (numTexgen > 0) { diff --git a/Source/Core/VideoCommon/UberShaderVertex.cpp b/Source/Core/VideoCommon/UberShaderVertex.cpp index a6c0502dfe..0eee69fb56 100644 --- a/Source/Core/VideoCommon/UberShaderVertex.cpp +++ b/Source/Core/VideoCommon/UberShaderVertex.cpp @@ -438,7 +438,7 @@ float3 load_input_float3_rawtex(uint vtx_offset, uint attr_offset) {{ // There are two different ways to do this, when the depth range is oversized, we process // the depth range in the vertex shader, if not we let the host driver handle it. // - // Adjust z for the depth range. We're using an equation which incorperates a depth inversion, + // Adjust z for the depth range. We're using an equation which incorporates a depth inversion, // so we can map the console -1..0 range to the 0..1 range used in the depth buffer. // We have to handle the depth range in the vertex shader instead of after the perspective // divide, because some games will use a depth range larger than what is allowed by the @@ -450,7 +450,7 @@ float3 load_input_float3_rawtex(uint vtx_offset, uint attr_offset) {{ if (!host_config.backend_clip_control) { // If the graphics API doesn't support a depth range of 0..1, then we need to map z to - // the -1..1 range. Unfortunately we have to use a substraction, which is a lossy floating-point + // the -1..1 range. Unfortunately we have to use a subtraction, which is a lossy floating-point // operation that can introduce a round-trip error. out.Write("o.pos.z = o.pos.z * 2.0 - o.pos.w;\n"); } diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp index ce6c07ddb1..312b8cb005 100644 --- a/Source/Core/VideoCommon/VertexManagerBase.cpp +++ b/Source/Core/VideoCommon/VertexManagerBase.cpp @@ -965,7 +965,7 @@ void VertexManagerBase::OnDraw() void VertexManagerBase::OnCPUEFBAccess() { - // Check this isn't another access without any draws inbetween. + // Check this isn't another access without any draws in between. if (!m_cpu_accesses_this_frame.empty() && m_cpu_accesses_this_frame.back() == m_draw_counter) return; diff --git a/Source/Core/VideoCommon/VertexShaderGen.cpp b/Source/Core/VideoCommon/VertexShaderGen.cpp index 4dec9a3b21..837c30c556 100644 --- a/Source/Core/VideoCommon/VertexShaderGen.cpp +++ b/Source/Core/VideoCommon/VertexShaderGen.cpp @@ -792,7 +792,7 @@ ShaderCode GenerateVertexShaderCode(APIType api_type, const ShaderHostConfig& ho // There are two different ways to do this, when the depth range is oversized, we process // the depth range in the vertex shader, if not we let the host driver handle it. // - // Adjust z for the depth range. We're using an equation which incorperates a depth inversion, + // Adjust z for the depth range. We're using an equation which incorporates a depth inversion, // so we can map the console -1..0 range to the 0..1 range used in the depth buffer. // We have to handle the depth range in the vertex shader instead of after the perspective // divide, because some games will use a depth range larger than what is allowed by the @@ -804,7 +804,7 @@ ShaderCode GenerateVertexShaderCode(APIType api_type, const ShaderHostConfig& ho if (!host_config.backend_clip_control) { // If the graphics API doesn't support a depth range of 0..1, then we need to map z to - // the -1..1 range. Unfortunately we have to use a substraction, which is a lossy floating-point + // the -1..1 range. Unfortunately we have to use a subtraction, which is a lossy floating-point // operation that can introduce a round-trip error. out.Write("o.pos.z = o.pos.z * 2.0 - o.pos.w;\n"); } diff --git a/Source/Core/VideoCommon/VideoConfig.h b/Source/Core/VideoCommon/VideoConfig.h index b826fcb783..3f82e3afe7 100644 --- a/Source/Core/VideoCommon/VideoConfig.h +++ b/Source/Core/VideoCommon/VideoConfig.h @@ -4,7 +4,7 @@ // IMPORTANT: UI etc should modify g_Config. Graphics code should read g_ActiveConfig. // The reason for this is to get rid of race conditions etc when the configuration // changes in the middle of a frame. This is done by copying g_Config to g_ActiveConfig -// at the start of every frame. Noone should ever change members of g_ActiveConfig +// at the start of every frame. No one should ever change members of g_ActiveConfig // directly. #pragma once diff --git a/Source/DSPSpy/tests/dsp_base_noirq.inc b/Source/DSPSpy/tests/dsp_base_noirq.inc index 048926a021..9d1051e40c 100644 --- a/Source/DSPSpy/tests/dsp_base_noirq.inc +++ b/Source/DSPSpy/tests/dsp_base_noirq.inc @@ -236,7 +236,7 @@ dma_copy: si @DMBL, #0xfeeb si @DIRQ, #0x0001 -; wait for the CPU to recieve our response before we execute the next op +; wait for the CPU to receive our response before we execute the next op call 0x8078 andi $ac0.m, #0x7fff lrs $ac1.m, @CMBL diff --git a/Source/PCH/CMakeLists.txt b/Source/PCH/CMakeLists.txt index 7e515e33df..9123f803e0 100644 --- a/Source/PCH/CMakeLists.txt +++ b/Source/PCH/CMakeLists.txt @@ -2,7 +2,7 @@ # Instead of having one PCH per module, dolphin has one PCH shared between all modules. # So we need to implement PCH manually, rather than using the PCH support built into cmake -# linking against this interface libary will cause targets to enable PCH +# linking against this interface library will cause targets to enable PCH add_library(use_pch INTERFACE) # Uncomment this return to disable PCH diff --git a/Source/UnitTests/Common/AssemblerTest.cpp b/Source/UnitTests/Common/AssemblerTest.cpp index ac8f98666a..1af63b274e 100644 --- a/Source/UnitTests/Common/AssemblerTest.cpp +++ b/Source/UnitTests/Common/AssemblerTest.cpp @@ -2258,7 +2258,7 @@ TEST(Assembler, InvalidNumericLabels) res = Assemble(forward_directive, 0); EXPECT_TRUE(IsFailure(res) && GetFailure(res).message == - "Forward label references not supported in fully resolved expressons") + "Forward label references not supported in fully resolved expressions") << GetFailure(res).message; res = Assemble(missing_backward_directive, 0); EXPECT_TRUE(IsFailure(res) && GetFailure(res).message == "No numeric label '0' found above here") diff --git a/Source/UnitTests/Common/BusyLoopTest.cpp b/Source/UnitTests/Common/BusyLoopTest.cpp index 4108876aad..8cb62ca1af 100644 --- a/Source/UnitTests/Common/BusyLoopTest.cpp +++ b/Source/UnitTests/Common/BusyLoopTest.cpp @@ -32,7 +32,7 @@ TEST(BusyLoopTest, MultiThreaded) { // We normally have to call Wakeup to assure the Event is triggered. // But this check is for an internal feature of the BlockingLoop. - // It's implemented to fall back to a busy loop regulary. + // It's implemented to fall back to a busy loop regularly. // If we're in the busy loop, the payload (and so the Event) is called all the time. // loop.Wakeup(); e.Wait(); diff --git a/Source/UnitTests/Common/WorkQueueThreadTest.cpp b/Source/UnitTests/Common/WorkQueueThreadTest.cpp index a4bfc654f2..1f35e3419f 100644 --- a/Source/UnitTests/Common/WorkQueueThreadTest.cpp +++ b/Source/UnitTests/Common/WorkQueueThreadTest.cpp @@ -48,6 +48,6 @@ TEST(WorkQueueThread, Simple) worker.Push(2); worker.WaitForCompletion(); - // Still running after cancelation. + // Still running after cancellation. EXPECT_EQ(x, 2); } diff --git a/Source/UnitTests/Core/DSP/HermesText.cpp b/Source/UnitTests/Core/DSP/HermesText.cpp index 64f3694810..1ddc302000 100644 --- a/Source/UnitTests/Core/DSP/HermesText.cpp +++ b/Source/UnitTests/Core/DSP/HermesText.cpp @@ -42,7 +42,7 @@ SR: equ 0x13 PRODL: equ 0x14 PRODM: equ 0x15 PRODH: equ 0x16 -PRODM2: equ 0x17 +PRODM2: equ 0x17 AXL0: equ 0x18 AXL1: equ 0x19 @@ -88,7 +88,7 @@ NUM_SAMPLES: equ 1024 ; 1024 stereo samples 16 bits /**************************************************************/ /* SOUND CHANNEL REGS */ /**************************************************************/ - + MEM_REG2: equ 0x0 MEM_VECTH: equ MEM_REG2 MEM_VECTL: equ MEM_REG2+1 @@ -108,10 +108,10 @@ DELAYL_SND: equ MEM_REG+3 // Delay samples Low word CHAN_REGS: equ MEM_REG+4 // specific regs for the channel -FLAGSH_SMP: equ CHAN_REGS+0 // countain number of bytes for step (1-> Mono 8 bits, 2-> Stereo 8 bits and Mono 16 bits, 4-> Stereo 16 bits) +FLAGSH_SMP: equ CHAN_REGS+0 // contains number of bytes for step (1-> Mono 8 bits, 2-> Stereo 8 bits and Mono 16 bits, 4-> Stereo 16 bits) FLAGSL_SMP: equ CHAN_REGS+1 // 0->Mono 8 bits, 1->Stereo 8 bits, 2->Mono 16 bits 3 -> Stereo 16 bits -ADDRH_SMP: equ CHAN_REGS+2 // start address +ADDRH_SMP: equ CHAN_REGS+2 // start address ADDRL_SMP: equ CHAN_REGS+3 ADDREH_SMP: equ CHAN_REGS+4 // end address @@ -156,7 +156,7 @@ data_end: equ MEM_SAMP+0x20 MEM_SND: equ data_end ; it need 2048 words (4096 bytes) - + /*** START CODE ***/ @@ -175,16 +175,16 @@ MEM_SND: equ data_end ; it need 2048 words (4096 bytes) lri $CONFIG, #0xff lri $SR,#0 - s16 - clr15 - m0 + s16 + clr15 + m0 /**************************************************************/ /* main */ /**************************************************************/ main: - + // send init token to CPU si @DMBH, #0xdcd1 @@ -195,7 +195,7 @@ recv_cmd: // check if previous mail is received from the CPU call wait_for_dsp_mail - + // wait a mail from CPU call wait_for_cpu_mail @@ -206,7 +206,7 @@ recv_cmd: lri $ACM0,#0xcdd1 cmp jz sys_command - + clr $ACC1 lrs $ACM1, @CMBL @@ -217,7 +217,7 @@ recv_cmd: jz input_samples2 cmpi $ACM1, #0x123 // get the address of the voice datas buffer (CHANNEL DATAS) - jz get_data_addr + jz get_data_addr cmpi $ACM1, #0x222 // process the voice mixing the samples internally jz input_next_samples @@ -226,14 +226,14 @@ recv_cmd: jz send_samples cmpi $ACM1, #0x777 // special: to dump the IROM Datas (remember disable others functions from the interrupt vector to use) - jz rom_dump_word // (CMBH+0x8000) countain the address of IROM + jz rom_dump_word // (CMBH+0x8000) contains the address of IROM cmpi $ACM1, #0x888 // Used for test - jz polla_loca + jz polla_loca cmpi $ACM1, #0x999 jz task_terminate - + si @DMBL, #0x0004 // return 0 as ignore command si @DIRQ, #0x1 // set the interrupt jmp recv_cmd @@ -242,19 +242,19 @@ task_terminate: si @DMBL, #0x0003 si @DIRQ, #0x1 jmp recv_cmd - + sys_command: clr $ACC1 lrs $ACM1, @CMBL - + cmpi $ACM1,#0x0001 jz run_nexttask - + cmpi $ACM1,#0x0002 jz 0x8000 - + jmp recv_cmd - + run_nexttask: s16 call wait_for_cpu_mail @@ -283,7 +283,7 @@ run_nexttask: lrs $27,@CMBL sbclr #0x05 sbclr #0x06 - jmp 0x80b5 + jmp 0x80b5 halt /**************************************************************************************************************************************/ @@ -296,7 +296,7 @@ send_samples: lri $AXL0, #NUM_SAMPLES*4 ; len lr $ACM0, @ADDRH_SND lr $ACL0, @ADDRL_SND - + call do_dma si @DMBL, #0x0004 si @DIRQ, #0x1 // set the interrupt @@ -310,10 +310,10 @@ get_data_addr: lrs $ACM0, @CMBH lr $ACL0, @CMBL - + sr @MEM_VECTH, $ACM0 sr @MEM_VECTL, $ACL0 - + si @DIRQ, #0x0 // clear the interrupt jmp recv_cmd @@ -326,7 +326,7 @@ input_samples: lr $ACM0, @MEM_VECTH lr $ACL0, @MEM_VECTL - lris $AXL0, #0x0004 + lris $AXL0, #0x0004 sr @RETURN, $AXL0 si @DIRQ, #0x0000 @@ -363,7 +363,7 @@ input_samples2: lr $ACM0, @MEM_VECTH lr $ACL0, @MEM_VECTL - lris $AXL0, #0x0004 + lris $AXL0, #0x0004 sr @RETURN, $AXL0 si @DIRQ, #0x0000 @@ -381,7 +381,7 @@ input_samples2: lri $AR0, #MEM_SND lris $AXL1, #DMA_TO_DSP; lri $AXL0, #NUM_SAMPLES*4; len - + call do_dma jmp start_main @@ -390,12 +390,12 @@ input_samples2: // process the voice mixing the samples internally input_next_samples: - + clr $ACC0 lr $ACM0, @MEM_VECTH lr $ACL0, @MEM_VECTL - lris $AXL0, #0x0004 + lris $AXL0, #0x0004 sr @RETURN, $AXL0 si @DIRQ, #0x0000 @@ -408,10 +408,10 @@ input_next_samples: call do_dma /**************************************************************************************************************************************/ -// mixing and control pitch to create 1024 Stereo Samples at 16 bits from here +// mixing and control pitch to create 1024 Stereo Samples at 16 bits from here start_main: - + lri $R08, #48000 // load the previous samples used @@ -426,29 +426,29 @@ start_main: addi $ACM1, #sample_selector mrr $AR3, $ACM1 ilrr $ACM1, @$AR3 - mrr $AR3, $ACM1 // AR3 countain the jump loaded from sample selector + mrr $AR3, $ACM1 // AR3 contains the jump loaded from sample selector clr $ACC0 // test for channel paused - lr $ACM0, @FLAGSL_SMP - andcf $ACM0, #0x20 + lr $ACM0, @FLAGSL_SMP + andcf $ACM0, #0x20 jlz end_main - + // load the sample address lr $ACM0, @ADDRH_SMP lr $ACL0, @ADDRL_SMP // test if ADDR_SMP & ADDR2H_SMP are zero - + tst $ACC0 jnz do_not_change1 // set return as "change of buffer" - lris $AXL0, #0x0004 + lris $AXL0, #0x0004 sr @RETURN, $AXL0 // change to buffer 2 if it is possible @@ -464,10 +464,10 @@ do_not_change1: // backup the external sample address - + mrr $IX2, $ACM0 mrr $IX3, $ACL0 - + // load the counter pitch @@ -500,7 +500,7 @@ do_not_change1: tst $ACC0 jz no_delay -// samples left and right to 0 +// samples left and right to 0 lris $AXH0, #0 lris $AXH1, #0 @@ -510,7 +510,7 @@ do_not_change1: mrr $ACM1, $AXL0 l_delay: iar $AR1 // skip two samples - iar $AR1 + iar $AR1 decm $ACM1 jz exit_delay1 // exit1 if samples to be processed == 0 @@ -522,14 +522,14 @@ l_delay: exit_delay1: decm $ACM0 - + sr @DELAYH_SND, $ACH0 sr @DELAYL_SND, $ACM0 - + lris $AXL0,#0 ; exit from loop - - jmp no_delay - + + jmp no_delay + exit_delay2: @@ -551,9 +551,9 @@ no_delay: R"( /* bucle de generacion de samples */ - + // load the sample buffer with address aligned to 32 bytes blocks (first time) - + si @DSCR, #DMA_TO_DSP // very important!: load_smp_addr_align and jump_load_smp_addr need fix this DMA Register (I gain some cycles so) // load_smp_addr_align input: $IX2:$IX3 @@ -564,25 +564,25 @@ no_delay: lr $IX0, @LEFT_VOLUME lr $IX1, @RIGHT_VOLUME - + // test the freq value clr $ACC0 lr $ACH0, @FREQH_SMP lr $ACM0, @FREQL_SMP - + clr $ACC1 ;lri $ACM1,#48000 mrr $ACM1, $R08 cmp - -// select the output of the routine to process stereo-mono 8/16bits samples - - lri $AR0, #get_sample // fast method <=48000 -// if number is greater freq>48000 fix different routine - - ifg +// select the output of the routine to process stereo-mono 8/16bits samples + + lri $AR0, #get_sample // fast method <=48000 + +// if number is greater freq>48000 fix different routine + + ifg lri $AR0, #get_sample2 // slow method >48000 // loops for samples to be processed @@ -594,12 +594,12 @@ no_delay: // Mix right sample section - lrr $ACL0, @$AR1 // load in ACL0 the right sample from the internal buffer + lrr $ACL0, @$AR1 // load in ACL0 the right sample from the internal buffer movax $ACC1, $AXL1 // big trick :) load the current sample <<16 and sign extended asl $ACC0,#24 // convert sample from buffer to 24 bit number with sign extended (ACH0:ACM0) asr $ACC0,#-8 - + add $ACC0,$ACC1 // current_sample+buffer sample cmpi $ACM0,#32767 // limit to 32767 @@ -613,20 +613,20 @@ right_skip: cmpi $ACM0,#-32768 // limit to -32768 ifle lri $ACM0, #-32768 - -right_skip2: + +right_skip2: srri @$AR1, $ACM0 // store the right sample mixed to the internal buffer and increment AR1 // Mix left sample section - lrr $ACL0, @$AR1 // load in ACL0 the left sample from the internal buffer + lrr $ACL0, @$AR1 // load in ACL0 the left sample from the internal buffer movax $ACC1, $AXL0 // big trick :) load the current sample <<16 and sign extended - + asl $ACC0, #24 // convert sample from buffer to 24 bit number with sign extended (ACH0:ACM0) asr $ACC0, #-8 - + add $ACC0, $ACC1 // current_sample+buffer sample cmpi $ACM0,#32767 // limit to 32767 @@ -640,11 +640,11 @@ left_skip: cmpi $ACM0,#-32768 // limit to -32768 ifle lri $ACM0, #-32768 - -left_skip2: + +left_skip2: srri @$AR1, $ACM0 // store the left sample mixed to the internal buffer and increment AR1 - + // adds the counter with the voice frequency and test if it >=48000 to get the next sample clr $ACC1 @@ -653,7 +653,7 @@ left_skip2: clr $ACC0 lr $ACH0, @FREQH_SMP lr $ACM0, @FREQL_SMP - + add $ACC1,$ACC0 clr $ACC0 //lri $ACM0,#48000 @@ -663,7 +663,7 @@ left_skip2: jrnc $AR0 //get_sample or get_sample2 method - sr @COUNTERH_SMP, $ACH1 + sr @COUNTERH_SMP, $ACH1 sr @COUNTERL_SMP, $ACM1 jmp loop_end @@ -700,8 +700,8 @@ get_sample2: // slow method cmp jle get_sample2 - - sr @COUNTERH_SMP, $ACH1 + + sr @COUNTERH_SMP, $ACH1 sr @COUNTERL_SMP, $ACM1 mrr $ACM0, $IX2 // load ADDRH_SMP @@ -721,14 +721,14 @@ get_sample2: // slow method // load samples from dma, return $ar2 with the addr to get the samples and return using $ar0 to the routine to process 8-16bits Mono/Stereo - jmp jump_load_smp_addr + jmp jump_load_smp_addr // get a new sample for freq <= 48000 Hz get_sample: // fast method - + sub $ACC1,$ACC0 // restore the counter - sr @COUNTERH_SMP, $ACH1 + sr @COUNTERH_SMP, $ACH1 sr @COUNTERL_SMP, $ACM1 // restore the external sample buffer address @@ -739,7 +739,7 @@ get_sample: // fast method lr $AXL1, @FLAGSH_SMP // add the step to get the next samples addaxl $ACC0, $AXL1 - + clr $ACC1 mrr $ACM1, $r0a // load ADDREH_SMP mrr $ACL1, $r0b // load ADDREL_SMP @@ -756,21 +756,21 @@ get_sample: // fast method // load samples from dma, return $ar2 with the addr and return using $ar0 to the routine to process 8-16bits Mono/Stereo or addr_get_sample_again - jmp jump_load_smp_addr + jmp jump_load_smp_addr sample_selector: - cw mono_8bits - cw mono_16bits - cw stereo_8bits - cw stereo_16bits + cw mono_8bits + cw mono_16bits + cw stereo_8bits + cw stereo_16bits get_new_buffer: // set return as "change of buffer": it need to change the sample address - lris $AXL0, #0x0004 + lris $AXL0, #0x0004 sr @RETURN, $AXL0 - + call change_buffer // load add from addr2 // addr is 0 ? go to zero_samples and exit @@ -785,9 +785,9 @@ get_new_buffer: // jump_load_smp_addr: $IX2:$IX3 // load samples from dma, return $ar2 with the addr to get the samples and return using $ar0 to the routine to process 8-16bits Mono/Stereo - jmp jump_load_smp_addr + jmp jump_load_smp_addr -// set to 0 the current samples +// set to 0 the current samples zero_samples: @@ -796,7 +796,7 @@ zero_samples: jmp out_samp mono_8bits: - + // 8 bits mono mrr $ACM1, $IX3 lrri $ACL0, @$AR2 @@ -810,7 +810,7 @@ mono_8bits: mrr $AXH0,$ACL0 jmp out_samp -stereo_8bits: +stereo_8bits: // 8 bits stereo @@ -838,8 +838,8 @@ stereo_16bits: lrri $AXH1, @$AR2 lrri $AXH0, @$AR2 -out_samp: - +out_samp: + // multiply sample x volume // LEFT_VOLUME @@ -860,7 +860,7 @@ loop_end: nop end_process: - + // load the sample address clr $ACC0 @@ -872,7 +872,7 @@ end_process: // set return as "change of buffer" - lris $AXL0, #0x0004 + lris $AXL0, #0x0004 sr @RETURN, $AXL0 // change to buffer 2 if it is possible @@ -880,13 +880,13 @@ end_process: call change_buffer save_datas_end: - + sr @ADDRH_SMP, $IX2 sr @ADDRL_SMP, $IX3 - sr @SMP_R, $AXH0 + sr @SMP_R, $AXH0 sr @SMP_L, $AXH1 - -end_main: + +end_main: // program DMA to send the CHANNEL DATAS changed @@ -909,35 +909,35 @@ end_main: jmp recv_cmd change_buffer: - + clr $ACC0 lr $ACM0, @LEFT_VOLUME2 lr $ACL0, @RIGHT_VOLUME2 - sr @LEFT_VOLUME, $ACM0 + sr @LEFT_VOLUME, $ACM0 sr @RIGHT_VOLUME, $ACL0 - mrr $IX0, $ACM0 + mrr $IX0, $ACM0 mrr $IX1, $ACL0 lr $ACM0, @ADDR2EH_SMP lr $ACL0, @ADDR2EL_SMP - sr @ADDREH_SMP, $ACM0 + sr @ADDREH_SMP, $ACM0 sr @ADDREL_SMP, $ACL0 mrr $r0a, $ACM0 mrr $r0b, $ACL0 lr $ACM0, @ADDR2H_SMP lr $ACL0, @ADDR2L_SMP - sr @ADDRH_SMP, $ACM0 + sr @ADDRH_SMP, $ACM0 sr @ADDRL_SMP, $ACL0 - sr @BACKUPH_SMP, $ACM0 + sr @BACKUPH_SMP, $ACM0 sr @BACKUPL_SMP, $ACL0 mrr $IX2, $ACM0 mrr $IX3, $ACL0 - + lr $ACM1, @FLAGSL_SMP andcf $ACM1, #0x4 retlz - + sr @ADDR2H_SMP, $ACH0 sr @ADDR2L_SMP, $ACH0 sr @ADDR2EH_SMP, $ACH0 @@ -1007,7 +1007,7 @@ jump_load_smp_addr: asr $ACC0, #-1 andi $ACM0, #0xf jz jump_load_smp_dma - + addi $ACM0, #MEM_SAMP mrr $AR2, $ACM0 jmpr $AR3 @@ -1024,10 +1024,10 @@ wait_dma2: lrs $ACM0, @DSCR andcf $ACM0, #0x4 jlz wait_dma2 - + lri $AR2, #MEM_SAMP jmpr $AR3 - + // exception table exception0: // RESET @@ -1038,7 +1038,7 @@ exception1: // STACK OVERFLOW exception2: rti - + exception3: rti @@ -1047,21 +1047,21 @@ exception4: exception5: // ACCELERATOR ADDRESS OVERFLOW rti - + exception6: rti exception7: rti -// routine to read a word of the IROM space +// routine to read a word of the IROM space rom_dump_word: clr $ACC0 lr $ACM0, @CMBH - ori $ACM0, #0x8000 + ori $ACM0, #0x8000 mrr $AR0, $ACM0 clr $ACC0 ilrr $ACM0, @$AR0 @@ -1076,7 +1076,7 @@ polla_loca: clr $ACC0 lri $acm0, #0x0 andf $acm0,#0x1 - + sr @DMBH, $sr sr @DMBL, $acm0 ;si @DIRQ, #0x1 // set the interrupt diff --git a/Source/VSProps/Base.props b/Source/VSProps/Base.props index 2717cd6a1e..2d22925d7b 100644 --- a/Source/VSProps/Base.props +++ b/Source/VSProps/Base.props @@ -53,7 +53,7 @@ pathmap replaces path prefixes of source files with a hardcoded value, assisting with keeping output files uniform even if actually built from different locations. The mapped path doesn't really need full drive prefix, but it keeps things human readable. Note the trailing "\" is actually to be escaped by a - preceeding "\" in the expanded variable. + preceding "\" in the expanded variable. --> /pathmap:"$(DolphinRootDir)\"=d:\ %(AdditionalOptions) /pathmap:"$(WindowsSdkDir)\"=w:\ %(AdditionalOptions) diff --git a/Source/VSProps/PCHCreate.props b/Source/VSProps/PCHCreate.props index d7af57996e..c51d2803a6 100644 --- a/Source/VSProps/PCHCreate.props +++ b/Source/VSProps/PCHCreate.props @@ -18,7 +18,7 @@ @@ -33,4 +33,4 @@ - \ No newline at end of file + diff --git a/Source/VSProps/qt_tasks.targets b/Source/VSProps/qt_tasks.targets index 27380451a1..b87ccf039b 100644 --- a/Source/VSProps/qt_tasks.targets +++ b/Source/VSProps/qt_tasks.targets @@ -437,7 +437,7 @@ var readyDependents = dependentsOf[workItem.Key] // ...that have not yet been queued... .Where(x => postponedItems.Contains(x) - // ...and whose dependending items have all terminated. + // ...and whose depending items have all terminated. && workItems[x].DependsOn.All(y => terminated.Contains(y))); if (QtDebug && readyDependents.Any()) {