mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-29 09:58:05 +00:00
e07e269bd7
Closes #3125 Adds buttons to the addons page that imports a mod (or mods) from zip or folder. Currently known to work with mods that provide proper romfs/exefs things, unsure about cheats and such. Also works on mods that just stuff things into the root of the zip. TODO: - [ ] test folder more thoroughly - [ ] cheats - [ ] test all sorts of mod pack types Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3472 Reviewed-by: Lizzie <lizzie@eden-emu.dev>
27 lines
520 B
C++
27 lines
520 B
C++
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QStandardItemModel>
|
|
|
|
namespace Ui {
|
|
class ModSelectDialog;
|
|
}
|
|
|
|
class ModSelectDialog : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ModSelectDialog(const QStringList &mods, QWidget* parent = nullptr);
|
|
~ModSelectDialog();
|
|
|
|
signals:
|
|
void modsSelected(const QStringList &mods);
|
|
private:
|
|
Ui::ModSelectDialog* ui;
|
|
|
|
QStandardItemModel* item_model;
|
|
};
|