1#ifndef YAZE_APP_EDITOR_UI_ROM_LOAD_OPTIONS_DIALOG_H_
2#define YAZE_APP_EDITOR_UI_ROM_LOAD_OPTIONS_DIALOG_H_
7#include "absl/status/status.h"
9#include "imgui/imgui.h"
67 void Open(
Rom* rom,
const std::string& rom_filename);
80 bool Show(
bool* p_open);
86 void Draw(
bool* p_open);
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
ROM load options and ZSCustomOverworld upgrade dialog.
std::function< void(const LoadOptions &) confirm_callback_)
void ApplyPreset(const std::string &preset_name)
const LoadOptions & GetOptions() const
Get the selected load options.
void Open(Rom *rom, const std::string &rom_filename)
Open the dialog after ROM detection.
int selected_preset_index_
static const char * kPresetNames[kNumPresets]
zelda3::OverworldVersion detected_version_
char project_name_buffer_[256]
std::function< absl::Status(int version)> upgrade_callback_
void DrawFeatureFlagDetails()
bool Show(bool *p_open)
Show the dialog.
void DrawUpgradeOptions()
void ResetConfirmation()
Reset confirmation state.
void DrawFeatureFlagPresets()
void SetConfirmCallback(std::function< void(const LoadOptions &)> callback)
Set callback for when options are confirmed.
zelda3::OverworldVersion GetDetectedVersion() const
Get detected ROM version.
void DrawProjectOptions()
static const char * kPresetDescriptions[kNumPresets]
std::string rom_filename_
~RomLoadOptionsDialog()=default
bool WasConfirmed() const
Check if dialog resulted in confirmation.
static constexpr int kNumPresets
bool ShouldPromptUpgrade() const
Check if ROM needs upgrade prompt.
char project_path_buffer_[512]
void ApplyOptionsToFeatureFlags()
void SetUpgradeCallback(std::function< absl::Status(int version)> callback)
Set callback for ZSO upgrade.
void Draw(bool *p_open)
Draw the dialog (wrapper around Show)
OverworldVersion
ROM version detection for overworld features.
@ kVanilla
0xFF in ROM, no ZScream ASM applied
bool enable_tail_expansion
bool save_overworld_items
std::string selected_preset
bool save_overworld_exits
bool enable_custom_overworld
bool save_overworld_entrances