mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2025-07-16 11:12:24 -07:00
Fix more typos
This commit is contained in:
@@ -36,7 +36,7 @@ QtAmiiboSettingsDialog::QtAmiiboSettingsDialog(QWidget* parent,
|
||||
QtAmiiboSettingsDialog::~QtAmiiboSettingsDialog() = default;
|
||||
|
||||
int QtAmiiboSettingsDialog::exec() {
|
||||
if (!is_initalized) {
|
||||
if (!is_initialized) {
|
||||
return QDialog::Rejected;
|
||||
}
|
||||
return QDialog::exec();
|
||||
@@ -66,7 +66,7 @@ void QtAmiiboSettingsDialog::LoadInfo() {
|
||||
QString::fromStdString(input_subsystem->GetVirtualAmiibo()->GetLastFilePath()));
|
||||
|
||||
SetSettingsDescription();
|
||||
is_initalized = true;
|
||||
is_initialized = true;
|
||||
}
|
||||
|
||||
void QtAmiiboSettingsDialog::LoadAmiiboInfo() {
|
||||
|
@@ -58,7 +58,7 @@ private:
|
||||
Core::Frontend::CabinetParameters parameters;
|
||||
|
||||
// If false amiibo settings failed to load
|
||||
bool is_initalized{};
|
||||
bool is_initialized{};
|
||||
};
|
||||
|
||||
class QtAmiiboSettings final : public QObject, public Core::Frontend::CabinetApplet {
|
||||
|
@@ -170,7 +170,7 @@ public:
|
||||
|
||||
void resizeEvent(QResizeEvent* event) override;
|
||||
|
||||
/// Converts a Qt keybard key into NativeKeyboard key
|
||||
/// Converts a Qt keyboard key into NativeKeyboard key
|
||||
static int QtKeyToSwitchKey(Qt::Key qt_keys);
|
||||
|
||||
/// Converts a Qt modifier keys into NativeKeyboard modifier keys
|
||||
|
@@ -845,12 +845,12 @@ void PlayerControlPreview::DrawProController(QPainter& p, const QPointF center)
|
||||
DrawSymbol(p, face_center + QPoint(-face_distance, 1), Symbol::Y, text_size);
|
||||
|
||||
// D-pad buttons
|
||||
const QPointF dpad_postion = center + QPoint(-61, 0);
|
||||
DrawArrowButton(p, dpad_postion, Direction::Up, button_values[DUp]);
|
||||
DrawArrowButton(p, dpad_postion, Direction::Left, button_values[DLeft]);
|
||||
DrawArrowButton(p, dpad_postion, Direction::Right, button_values[DRight]);
|
||||
DrawArrowButton(p, dpad_postion, Direction::Down, button_values[DDown]);
|
||||
DrawArrowButtonOutline(p, dpad_postion);
|
||||
const QPointF dpad_position = center + QPoint(-61, 0);
|
||||
DrawArrowButton(p, dpad_position, Direction::Up, button_values[DUp]);
|
||||
DrawArrowButton(p, dpad_position, Direction::Left, button_values[DLeft]);
|
||||
DrawArrowButton(p, dpad_position, Direction::Right, button_values[DRight]);
|
||||
DrawArrowButton(p, dpad_position, Direction::Down, button_values[DDown]);
|
||||
DrawArrowButtonOutline(p, dpad_position);
|
||||
|
||||
// ZL and ZR buttons
|
||||
p.setPen(colors.outline);
|
||||
@@ -935,13 +935,13 @@ void PlayerControlPreview::DrawGCController(QPainter& p, const QPointF center) {
|
||||
DrawSymbol(p, center + QPoint(100, -83), Symbol::Y, text_size);
|
||||
|
||||
// D-pad buttons
|
||||
const QPointF dpad_postion = center + QPoint(-61, 37);
|
||||
const QPointF dpad_position = center + QPoint(-61, 37);
|
||||
const float dpad_size = 0.8f;
|
||||
DrawArrowButton(p, dpad_postion, Direction::Up, button_values[DUp], dpad_size);
|
||||
DrawArrowButton(p, dpad_postion, Direction::Left, button_values[DLeft], dpad_size);
|
||||
DrawArrowButton(p, dpad_postion, Direction::Right, button_values[DRight], dpad_size);
|
||||
DrawArrowButton(p, dpad_postion, Direction::Down, button_values[DDown], dpad_size);
|
||||
DrawArrowButtonOutline(p, dpad_postion, dpad_size);
|
||||
DrawArrowButton(p, dpad_position, Direction::Up, button_values[DUp], dpad_size);
|
||||
DrawArrowButton(p, dpad_position, Direction::Left, button_values[DLeft], dpad_size);
|
||||
DrawArrowButton(p, dpad_position, Direction::Right, button_values[DRight], dpad_size);
|
||||
DrawArrowButton(p, dpad_position, Direction::Down, button_values[DDown], dpad_size);
|
||||
DrawArrowButtonOutline(p, dpad_position, dpad_size);
|
||||
|
||||
// Minus and Plus buttons
|
||||
p.setPen(colors.outline);
|
||||
|
@@ -121,7 +121,7 @@ void ConfigureSystem::Setup(const ConfigurationShared::Builder& builder) {
|
||||
}
|
||||
|
||||
if (setting->Id() == Settings::values.region_index.Id()) {
|
||||
// Keep track of the region_index (and langauge_index) combobox to validate the selected
|
||||
// Keep track of the region_index (and language_index) combobox to validate the selected
|
||||
// settings
|
||||
combo_region = widget->combobox;
|
||||
} else if (setting->Id() == Settings::values.language_index.Id()) {
|
||||
|
@@ -750,12 +750,12 @@ Widget::Widget(Settings::BasicSetting* setting_, const TranslationMap& translati
|
||||
}
|
||||
|
||||
apply_funcs.push_back([load_func, setting_](bool powered_on) {
|
||||
if (setting_->RuntimeModfiable() || !powered_on) {
|
||||
if (setting_->RuntimeModifiable() || !powered_on) {
|
||||
load_func();
|
||||
}
|
||||
});
|
||||
|
||||
bool enable = runtime_lock || setting.RuntimeModfiable();
|
||||
bool enable = runtime_lock || setting.RuntimeModifiable();
|
||||
if (setting.Switchable() && Settings::IsConfiguringGlobal() && !runtime_lock) {
|
||||
enable &= setting.UsingGlobal();
|
||||
}
|
||||
|
@@ -206,7 +206,7 @@ void ChatRoom::Initialize(Network::RoomNetwork* room_network_) {
|
||||
room_network = room_network_;
|
||||
// setup the callbacks for network updates
|
||||
if (auto member = room_network->GetRoomMember().lock()) {
|
||||
member->BindOnChatMessageRecieved(
|
||||
member->BindOnChatMessageReceived(
|
||||
[this](const Network::ChatEntry& chat) { emit ChatReceived(chat); });
|
||||
member->BindOnStatusMessageReceived(
|
||||
[this](const Network::StatusMessageEntry& status_message) {
|
||||
|
Reference in New Issue
Block a user