mirror of
https://github.com/Lime3DS/Lime3DS
synced 2025-01-09 13:43:27 +00:00
![PabloMK7](/assets/img/avatar_default.png)
* Move mii to own namespace and add checksummed mii data * Fix compile issues * Make mii classes trivial and add cast operator * Fix Android side * Add new line at the end of files. * Make miidata a struct and crc16 a u32_be as per switch code. * Apply suggestions * Change back crc to u16 and set padding to 0.
45 lines
980 B
C++
45 lines
980 B
C++
// Copyright 2018 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include "core/frontend/applets/mii_selector.h"
|
|
|
|
class QComboBox;
|
|
class QDialogButtonBox;
|
|
class QVBoxLayout;
|
|
class QtMiiSelector;
|
|
|
|
class QtMiiSelectorDialog final : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QtMiiSelectorDialog(QWidget* parent, QtMiiSelector* mii_selector_);
|
|
|
|
private:
|
|
QDialogButtonBox* buttons;
|
|
QComboBox* combobox;
|
|
QVBoxLayout* layout;
|
|
QtMiiSelector* mii_selector;
|
|
u32 return_code = 0;
|
|
std::vector<Mii::MiiData> miis;
|
|
|
|
friend class QtMiiSelector;
|
|
};
|
|
|
|
class QtMiiSelector final : public QObject, public Frontend::MiiSelector {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit QtMiiSelector(QWidget& parent);
|
|
void Setup(const Frontend::MiiSelectorConfig& config) override;
|
|
|
|
private:
|
|
Q_INVOKABLE void OpenDialog();
|
|
|
|
QWidget& parent;
|
|
|
|
friend class QtMiiSelectorDialog;
|
|
};
|