From bc39e668ebcc05e3d71ee70d7a05da36140a4e90 Mon Sep 17 00:00:00 2001 From: ITotalJustice <47043333+ITotalJustice@users.noreply.github.com> Date: Tue, 31 Dec 2024 04:41:19 +0000 Subject: [PATCH] add pre/post install message options for github json --- sphaira/include/ui/menus/ghdl.hpp | 4 +++ sphaira/include/ui/option_box.hpp | 2 +- sphaira/source/ui/menus/ghdl.cpp | 49 ++++++++++++++++++++++++++----- 3 files changed, 47 insertions(+), 8 deletions(-) diff --git a/sphaira/include/ui/menus/ghdl.hpp b/sphaira/include/ui/menus/ghdl.hpp index b903733..0aa9ea3 100644 --- a/sphaira/include/ui/menus/ghdl.hpp +++ b/sphaira/include/ui/menus/ghdl.hpp @@ -11,12 +11,16 @@ namespace sphaira::ui::menu::gh { struct AssetEntry { std::string name; std::string path; + std::string pre_install_message; + std::string post_install_message; }; struct Entry { fs::FsPath json_path; std::string owner; std::string repo; + std::string pre_install_message; + std::string post_install_message; std::vector assets; }; diff --git a/sphaira/include/ui/option_box.hpp b/sphaira/include/ui/option_box.hpp index 0cbce05..4f05b7c 100644 --- a/sphaira/include/ui/option_box.hpp +++ b/sphaira/include/ui/option_box.hpp @@ -33,7 +33,7 @@ public: using Options = std::vector