From 16e2068aec391b8eb12a7e5276f41537f5c90050 Mon Sep 17 00:00:00 2001 From: Donovan Watteau Date: Fri, 11 Nov 2022 20:55:56 +0100 Subject: [PATCH] JANITORIAL: Fix various single-character typos --- backends/audiocd/win32/win32-audiocd.cpp | 2 +- backends/saves/posix/posix-saves.cpp | 2 +- engines/bladerunner/bladerunner.cpp | 2 +- engines/grim/localize.cpp | 2 +- engines/icb/main_menu_pc.cpp | 2 +- engines/icb/res_man.cpp | 2 +- engines/kyra/engine/kyra_v1.cpp | 2 +- engines/scumm/imuse/imuse.cpp | 2 +- engines/scumm/saveload.cpp | 2 +- engines/tinsel/bmv.cpp | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/backends/audiocd/win32/win32-audiocd.cpp b/backends/audiocd/win32/win32-audiocd.cpp index 87b66e426fe..aeb17eb7cba 100644 --- a/backends/audiocd/win32/win32-audiocd.cpp +++ b/backends/audiocd/win32/win32-audiocd.cpp @@ -62,7 +62,7 @@ #include #if _MSC_VER < 1900 // WORKAROUND: Older versions of MSVC might not supply DDK headers by default. -// Visual Studio 2015 contains the required headers. We use a compatability +// Visual Studio 2015 contains the required headers. We use a compatibility // header from MinGW's w32api for all older versions. // TODO: Limit this to the Visual Studio versions which actually require this. #include "msvc/ntddcdrm.h" diff --git a/backends/saves/posix/posix-saves.cpp b/backends/saves/posix/posix-saves.cpp index f4d57fc319e..cb692fb37db 100644 --- a/backends/saves/posix/posix-saves.cpp +++ b/backends/saves/posix/posix-saves.cpp @@ -56,7 +56,7 @@ POSIXSaveFileManager::POSIXSaveFileManager() { const char *envVar; // Previously we placed our default savepath in HOME. If the directory - // still exists, we will use it for backwards compatability. + // still exists, we will use it for backwards compatibility. envVar = getenv("HOME"); if (envVar && *envVar) { savePath = envVar; diff --git a/engines/bladerunner/bladerunner.cpp b/engines/bladerunner/bladerunner.cpp index c230a7d80a5..9cbcff6cfd2 100644 --- a/engines/bladerunner/bladerunner.cpp +++ b/engines/bladerunner/bladerunner.cpp @@ -1722,7 +1722,7 @@ void BladeRunnerEngine::setExtraCNotify(uint8 val) { _extraCNotify = val; } -// Check if an polled event belongs to a currently disabled keymap and, if so, drop it. +// Check if a polled event belongs to a currently disabled keymap and, if so, drop it. bool BladeRunnerEngine::shouldDropRogueCustomEvent(const Common::Event &evt) { if (getEventManager()->getKeymapper() != nullptr) { Common::KeymapArray kmpsArr = getEventManager()->getKeymapper()->getKeymaps(); diff --git a/engines/grim/localize.cpp b/engines/grim/localize.cpp index ff91684e7f9..dadacec7c9f 100644 --- a/engines/grim/localize.cpp +++ b/engines/grim/localize.cpp @@ -124,7 +124,7 @@ Localizer::Localizer() { continue; } - // EMI has an garbage line which should be ignored + // EMI has a garbage line which should be ignored if (g_grim->getGameType() == GType_MONKEY4 && *line == '\x1A') continue; diff --git a/engines/icb/main_menu_pc.cpp b/engines/icb/main_menu_pc.cpp index b001141b851..99aae60df39 100644 --- a/engines/icb/main_menu_pc.cpp +++ b/engines/icb/main_menu_pc.cpp @@ -61,7 +61,7 @@ void Credits() { t = GetMicroTimer() - t; // As the DoCredits() function takes a variable time this timing code - // forces an constant frame rate for smoother scrolling + // forces a constant frame rate for smoother scrolling int32 r = 40000 - t; if (t < 40000) { g_system->delayMillis(r / 1000); diff --git a/engines/icb/res_man.cpp b/engines/icb/res_man.cpp index 7d6001cfca6..81fdd91dbfc 100644 --- a/engines/icb/res_man.cpp +++ b/engines/icb/res_man.cpp @@ -652,7 +652,7 @@ uint32 res_man::Check_file_size(const char *url, uint32 url_hash, const char *cl uint8 *res_man::Internal_open(RMParams *params, int32 *ret_len) { // Loads if not in memory here already - // resoures cannot be locked in memory + // resources cannot be locked in memory // if space cannot be found then ALL the resources loaded during a previous time-frame will be removed // as graphic resources are to be loaded en-mass when scenes begin the trash process should make a sizeable single block diff --git a/engines/kyra/engine/kyra_v1.cpp b/engines/kyra/engine/kyra_v1.cpp index be0bda4e691..3bb2a5ecb92 100644 --- a/engines/kyra/engine/kyra_v1.cpp +++ b/engines/kyra/engine/kyra_v1.cpp @@ -283,7 +283,7 @@ int KyraEngine_v1::checkInput(Button *buttonList, bool mainLoop, int eventFlag) keys = 0; } - // When we got an keypress, which we might need to handle, + // When we got a keypress, which we might need to handle, // break the event loop and pass it to GUI code. if (keys) breakLoop = true; diff --git a/engines/scumm/imuse/imuse.cpp b/engines/scumm/imuse/imuse.cpp index 00ecdee0480..b912f54e694 100644 --- a/engines/scumm/imuse/imuse.cpp +++ b/engines/scumm/imuse/imuse.cpp @@ -1588,7 +1588,7 @@ void IMuseInternal::copyGlobalInstrument(byte slot, Instrument *dest) { const byte defaultInstr[30] = { 0 }; if (_global_instruments[slot].isValid()) { - // In case we have an valid instrument set up, copy it to the part. + // In case we have a valid instrument set up, copy it to the part. _global_instruments[slot].copy_to(dest); } else if (_soundType == MDT_PCSPK) { debug(0, "Trying to use non-existent global PC Speaker instrument %d", slot); diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp index 7491ff335e1..008a48a4d8c 100644 --- a/engines/scumm/saveload.cpp +++ b/engines/scumm/saveload.cpp @@ -671,7 +671,7 @@ bool ScummEngine::loadState(int slot, bool compat, Common::String &filename) { // Since version 52 a thumbnail is saved directly after the header. if (hdr.ver >= VER(52)) { - // Prior to version 75 we always required an thumbnail to be present + // Prior to version 75 we always required a thumbnail to be present if (hdr.ver <= VER(74)) { if (!Graphics::checkThumbnailHeader(*in)) { warning("Can not load thumbnail"); diff --git a/engines/tinsel/bmv.cpp b/engines/tinsel/bmv.cpp index 910bada8045..d7e58a7c34c 100644 --- a/engines/tinsel/bmv.cpp +++ b/engines/tinsel/bmv.cpp @@ -361,7 +361,7 @@ void BMVPlayer::t3PrepBMV(const byte *src, uint32 len, int32 deltaOffset) { Length of each operation can be encoded either directly or via special variable length encoding. From a nibble two bottom bits are preprended to final value, then next nibble is processed, if a new nibble is needed next byte is read from the stream. Process ends if any of two upper bits are set, in that case two upper bits are prepended as well. - Which length is going to be used depends on an quite convoluted encoding and there are two ways how they are encoded (note that operations still keep switching). + Which length is going to be used depends on a quite convoluted encoding and there are two ways how they are encoded (note that operations still keep switching). In outer loop, if: - hi nibble has any of 2 upper bits set then only byte is read in this iteration and if: - lo nibble has any of 2 upper bits set then length is between 7-30