mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-30 07:40:05 +00:00
apply fixes
This commit is contained in:
parent
8082334fe3
commit
851e9476fd
@ -52,11 +52,11 @@ QtMiiSelectorDialog::QtMiiSelectorDialog(QWidget* parent, QtMiiSelector* mii_sel
|
|||||||
|
|
||||||
auto file{std::move(file_result).Unwrap()};
|
auto file{std::move(file_result).Unwrap()};
|
||||||
|
|
||||||
u32 id;
|
u32 id = 0;
|
||||||
u32 offset{0x8};
|
u32 offset{0x8};
|
||||||
MiiData mii;
|
MiiData mii;
|
||||||
|
|
||||||
for (int i{}; i < 100; ++i) {
|
for (int i = 0; i < 100; ++i) {
|
||||||
file->Read(offset, mii.size(), mii.data());
|
file->Read(offset, mii.size(), mii.data());
|
||||||
std::memcpy(&id, mii.data(), sizeof(u32));
|
std::memcpy(&id, mii.data(), sizeof(u32));
|
||||||
if (id != 0) {
|
if (id != 0) {
|
||||||
@ -73,7 +73,7 @@ QtMiiSelectorDialog::QtMiiSelectorDialog(QWidget* parent, QtMiiSelector* mii_sel
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (combobox->count() >= static_cast<int>(config.initially_selected_mii_index)) {
|
if (combobox->count() > static_cast<int>(config.initially_selected_mii_index)) {
|
||||||
combobox->setCurrentIndex(static_cast<int>(config.initially_selected_mii_index));
|
combobox->setCurrentIndex(static_cast<int>(config.initially_selected_mii_index));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ class QtMiiSelectorDialog final : public QDialog {
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QtMiiSelectorDialog(QWidget* parent, QtMiiSelector* mii_selector_);
|
QtMiiSelectorDialog(QWidget* parent, QtMiiSelector* mii_selector);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void ShowNoMiis();
|
void ShowNoMiis();
|
||||||
|
Loading…
Reference in New Issue
Block a user