Merge pull request #14289 from Sintendo/typos

Fix various typos and spelling mistakes
This commit is contained in:
JMC47
2026-01-17 19:10:50 -05:00
committed by GitHub
101 changed files with 245 additions and 243 deletions
@@ -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:
@@ -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();
@@ -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);
}
@@ -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]);
}
@@ -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));
@@ -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);
@@ -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,
+1 -1
View File
@@ -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));
}