The asr-debugger and LiveSplit.AutoSplittingRuntime companion branches both implement this as a button in the settings Gui that opens a file dialog when pressed. The user can select a file, and the WASI-compatible path to that file gets stored in the settings map.
The asr companion branch adds a FileSelection type that implements the Widget trait such that an auto-splitter can put it in their settings gui like this:
#[derive(Gui)]
pub struct SettingsGui {
/// General Settings
_general_settings: Title,
/// Select a text file
#[filter = "*.txt"]
text_file: FileSelection,
}
This adds a
FileSelection
Widget to the Auto Splitting Runtime.Companion PRs:
The
asr-debugger
andLiveSplit.AutoSplittingRuntime
companion branches both implement this as a button in the settings Gui that opens a file dialog when pressed. The user can select a file, and the WASI-compatible path to that file gets stored in the settings map.The
asr
companion branch adds aFileSelection
type that implements theWidget
trait such that an auto-splitter can put it in their settings gui like this: