summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2026-01-17 19:10:50 -0500
committerGitHub <noreply@github.com>2026-01-17 19:10:50 -0500
commit035bcffc63ecc803abeb6987f66a5b2f78f5f0bc (patch)
treeb46f7ec3d376fc2fef5ac0d2f48769b0e23e9353 /Source/Core
parentd098f2bba9fac19d90526fb9f7aceb0bb405b4b4 (diff)
parent1e0473e44f5e21558d75b0121bd935bb50825c26 (diff)
Merge pull request #14289 from Sintendo/typos
Fix various typos and spelling mistakes
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Common/Assembler/GekkoIRGen.cpp2
-rw-r--r--Source/Core/Common/Buffer.h2
-rw-r--r--Source/Core/Common/StringUtil.h2
-rw-r--r--Source/Core/Core/DSP/DSPAssembler.h2
-rw-r--r--Source/Core/Core/DSP/DSPDisassembler.cpp2
-rw-r--r--Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp2
-rw-r--r--Source/Core/Core/Debugger/BranchWatch.h2
-rw-r--r--Source/Core/Core/Debugger/CodeTrace.cpp2
-rw-r--r--Source/Core/Core/FifoPlayer/FifoDataFile.cpp4
-rw-r--r--Source/Core/Core/FifoPlayer/FifoPlayer.cpp2
-rw-r--r--Source/Core/Core/HLE/HLE.cpp2
-rw-r--r--Source/Core/Core/HW/AddressSpace.h2
-rw-r--r--Source/Core/Core/HW/DSPHLE/UCodes/ASnd.cpp2
-rw-r--r--Source/Core/Core/HW/DSPHLE/UCodes/ASnd.h4
-rw-r--r--Source/Core/Core/HW/DSPHLE/UCodes/GBA.cpp4
-rw-r--r--Source/Core/Core/HW/DVD/DVDMath.cpp2
-rw-r--r--Source/Core/Core/HW/EXI/BBA/XLINK_KAI_BBA.cpp6
-rw-r--r--Source/Core/Core/HW/GCMemcard/GCMemcard.cpp10
-rw-r--r--Source/Core/Core/HW/GCMemcard/GCMemcard.h2
-rw-r--r--Source/Core/Core/HW/GCMemcard/GCMemcardDirectory.cpp2
-rw-r--r--Source/Core/Core/HW/MMIO.cpp2
-rw-r--r--Source/Core/Core/HW/MMIO.h2
-rw-r--r--Source/Core/Core/HW/SI/SI_DeviceGCController.cpp2
-rw-r--r--Source/Core/Core/HW/SI/SI_DeviceGCSteeringWheel.cpp2
-rw-r--r--Source/Core/Core/HW/SI/SI_DeviceKeyboard.h2
-rw-r--r--Source/Core/Core/HW/VideoInterface.cpp4
-rw-r--r--Source/Core/Core/HW/VideoInterface.h2
-rw-r--r--Source/Core/Core/HW/WiimoteEmu/Dynamics.cpp2
-rw-r--r--Source/Core/Core/HW/WiimoteEmu/EmuSubroutines.cpp4
-rw-r--r--Source/Core/Core/HW/WiimoteEmu/Encryption.cpp2
-rw-r--r--Source/Core/Core/HW/WiimoteEmu/Extension/Drums.cpp4
-rw-r--r--Source/Core/Core/HW/WiimoteEmu/ExtensionPort.h2
-rw-r--r--Source/Core/Core/HW/WiimoteReal/IOWin.cpp2
-rw-r--r--Source/Core/Core/HW/WiimoteReal/IOhidapi.cpp3
-rw-r--r--Source/Core/Core/IOS/Network/IP/Top.cpp4
-rw-r--r--Source/Core/Core/IOS/USB/Emulated/Skylanders/Skylander.cpp2
-rw-r--r--Source/Core/Core/IOS/USB/USB_KBD.cpp2
-rw-r--r--Source/Core/Core/PowerPC/BreakPoints.h2
-rw-r--r--Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp2
-rw-r--r--Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp2
-rw-r--r--Source/Core/Core/PowerPC/Jit64Common/Jit64AsmCommon.cpp2
-rw-r--r--Source/Core/Core/PowerPC/MMU.cpp2
-rw-r--r--Source/Core/DiscIO/DirectoryBlob.h2
-rw-r--r--Source/Core/DiscIO/NANDImporter.cpp2
-rw-r--r--Source/Core/DiscIO/WIABlob.cpp2
-rw-r--r--Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp2
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp2
-rw-r--r--Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp4
-rw-r--r--Source/Core/DolphinQt/Debugger/RegisterColumn.h2
-rw-r--r--Source/Core/DolphinQt/ResourcePackManager.cpp2
-rw-r--r--Source/Core/DolphinQt/SearchBar.h2
-rw-r--r--Source/Core/DolphinQt/Settings.cpp2
-rw-r--r--Source/Core/DolphinQt/Settings/AudioPane.cpp2
-rw-r--r--Source/Core/DolphinQt/Settings/InterfacePane.cpp2
-rw-r--r--Source/Core/DolphinQt/TAS/TASInputWindow.cpp2
-rw-r--r--Source/Core/InputCommon/ControlReference/ExpressionParser.cpp9
-rw-r--r--Source/Core/InputCommon/ControlReference/ExpressionParser.h2
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControlGroup/Force.cpp12
-rw-r--r--Source/Core/InputCommon/ControllerEmu/StickGate.cpp4
-rw-r--r--Source/Core/InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPProto.h2
-rw-r--r--Source/Core/InputCommon/ControllerInterface/WGInput/WGInput.cpp2
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Wiimote/WiimoteController.cpp4
-rw-r--r--Source/Core/InputCommon/GCAdapter.cpp2
-rw-r--r--Source/Core/UICommon/DiscordPresence.cpp2
-rw-r--r--Source/Core/UICommon/NetPlayIndex.cpp2
-rw-r--r--Source/Core/UICommon/X11Utils.cpp2
-rw-r--r--Source/Core/UpdaterCommon/UpdaterCommon.cpp2
-rw-r--r--Source/Core/VideoBackends/D3D12/DX12Texture.h2
-rw-r--r--Source/Core/VideoBackends/D3DCommon/SwapChain.cpp2
-rw-r--r--Source/Core/VideoBackends/Metal/MTLStateTracker.mm2
-rw-r--r--Source/Core/VideoBackends/OGL/OGLConfig.cpp2
-rw-r--r--Source/Core/VideoBackends/OGL/OGLMain.cpp2
-rw-r--r--Source/Core/VideoBackends/OGL/OGLStreamBuffer.cpp2
-rw-r--r--Source/Core/VideoBackends/Software/SWGfx.cpp2
-rw-r--r--Source/Core/VideoBackends/Vulkan/CommandBufferManager.h2
-rw-r--r--Source/Core/VideoBackends/Vulkan/StateTracker.h2
-rw-r--r--Source/Core/VideoCommon/Assets/ShaderAsset.h2
-rw-r--r--Source/Core/VideoCommon/Assets/TextureSamplerValue.h2
-rw-r--r--Source/Core/VideoCommon/CPUCull.cpp2
-rw-r--r--Source/Core/VideoCommon/DriverDetails.h2
-rw-r--r--Source/Core/VideoCommon/GeometryShaderManager.cpp2
-rw-r--r--Source/Core/VideoCommon/PixelShaderManager.cpp6
-rw-r--r--Source/Core/VideoCommon/PostProcessing.cpp2
-rw-r--r--Source/Core/VideoCommon/Present.cpp2
-rw-r--r--Source/Core/VideoCommon/RenderState.cpp2
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp8
-rw-r--r--Source/Core/VideoCommon/TextureDecoder_x64.cpp4
-rw-r--r--Source/Core/VideoCommon/UberShaderPixel.cpp2
-rw-r--r--Source/Core/VideoCommon/UberShaderVertex.cpp4
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.cpp2
-rw-r--r--Source/Core/VideoCommon/VertexShaderGen.cpp4
-rw-r--r--Source/Core/VideoCommon/VideoConfig.h2
92 files changed, 126 insertions, 124 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<T> and SharedBuffer<T> are a lighter alternative to std::vector<T>.
// 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 9a1ddcba16..ea82581355 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 3a4b77c39d..bca1d53e19 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 f8f9c9c19f..aad457cd96 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<X64Reg, 15> 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 cbf8dbd5c2..a4e5ce1775 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<GCMemcardErrorCode, std::optional<GCMemcard>> 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<u8*>(&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<u16> 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<T>* 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 <typename T>
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 <typename Unit>
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 e8f9f60bf8..6f1ad61e50 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<WiimoteScannerWindows::EnumeratedWiimoteInterface> 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("<error>"));
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<DefaultInterface> 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<DefaultInterface> 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<u8, 256> 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 85942f1951..de5527d2d8 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<std::vector<u8>> 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<RVZ>::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<int>(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<std::string> 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<double> 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<ToMsgType> 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<const u8*>(&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<int32_t>(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<std::string> 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<int>& 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<ShaderProperty> 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<int>& 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<float, float> 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 c6088349a8..d27234dee9 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -569,7 +569,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 {
@@ -1257,7 +1257,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.
//
@@ -2471,7 +2471,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++)
{
@@ -2690,7 +2690,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 e558637d97..6ea8abe095 100644
--- a/Source/Core/VideoCommon/UberShaderVertex.cpp
+++ b/Source/Core/VideoCommon/UberShaderVertex.cpp
@@ -439,7 +439,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
@@ -451,7 +451,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