Qt: Add patching errors

This commit is contained in:
wheremyfoodat 2024-05-07 23:55:32 +03:00
parent 66bcf384f3
commit 332fbcfff1
4 changed files with 51 additions and 6 deletions

View file

@ -1,5 +1,6 @@
#pragma once
#include <QLabel>
#include <QMessageBox>
#include <QWidget>
#include <filesystem>
@ -13,6 +14,15 @@ class PatchWindow final : public QWidget {
~PatchWindow() = default;
private:
// Show a message box
// Title: Title of the message box to display
// Message: Message to display
// Icon: The type of icon (error, warning, information, etc) to display
// IconPath: If non-null, then a path to an icon in our assets to display on the OK button
void displayMessage(
const QString& title, const QString& message, QMessageBox::Icon icon = QMessageBox::Icon::Warning, const char* iconPath = nullptr
);
std::filesystem::path inputPath = "";
std::filesystem::path patchPath = "";