add more info boxes to options, merge option.cpp changes from totalsms.
This commit is contained in:
@@ -325,7 +325,7 @@ public:
|
||||
option::OptionBool m_dump_append_folder_with_xci{"dump", "append_folder_with_xci", true};
|
||||
option::OptionBool m_dump_trim_xci{"dump", "trim_xci", false};
|
||||
option::OptionBool m_dump_label_trim_xci{"dump", "label_trim_xci", false};
|
||||
option::OptionBool m_dump_usb_transfer_stream{"dump", "usb_transfer_stream", true};
|
||||
option::OptionBool m_dump_usb_transfer_stream{"dump", "usb_transfer_stream", true, false};
|
||||
option::OptionBool m_dump_convert_to_common_ticket{"dump", "convert_to_common_ticket", true};
|
||||
|
||||
// todo: move this into it's own menu
|
||||
|
||||
@@ -7,10 +7,11 @@ namespace sphaira::option {
|
||||
|
||||
template<typename T>
|
||||
struct OptionBase {
|
||||
OptionBase(const std::string& section, const std::string& name, T default_value)
|
||||
OptionBase(const std::string& section, const std::string& name, T default_value, bool file = true)
|
||||
: m_section{section}
|
||||
, m_name{name}
|
||||
, m_default_value{default_value}
|
||||
, m_file{file}
|
||||
{}
|
||||
|
||||
auto Get() -> T;
|
||||
@@ -29,6 +30,7 @@ private:
|
||||
const std::string m_section;
|
||||
const std::string m_name;
|
||||
const T m_default_value;
|
||||
const bool m_file;
|
||||
std::optional<T> m_value;
|
||||
};
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ struct MiscMenuEntry {
|
||||
const char* title;
|
||||
MiscMenuFunction func;
|
||||
u8 flag;
|
||||
const char* info;
|
||||
|
||||
auto IsShortcut() const -> bool {
|
||||
return flag & MiscMenuFlag_Shortcut;
|
||||
|
||||
Reference in New Issue
Block a user