mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-24 07:02:27 +01:00
byuu says: Changelog: - nall::lstring -> nall::string_vector - added IntegerBitField<type, lo, hi> -- hopefully it works correctly... - Multitap 1-4 -> Super Multitap 2-5 - fixed SFC PPU CGRAM read regression - huge amounts of SFC PPU IO register cleanups -- .bits really is lovely - re-added the read/write(VRAM,OAM,CGRAM) helpers for the SFC PPU - but they're now optimized to the realities of the PPU (16-bit data sizes / no address parameter / where appropriate) - basically used to get the active-display overrides in a unified place; but also reduces duplicate code in (read,write)IO
35 lines
903 B
C++
35 lines
903 B
C++
#if defined(Hiro_BrowserDialog)
|
|
|
|
struct BrowserDialogWindow;
|
|
|
|
struct BrowserDialog {
|
|
using type = BrowserDialog;
|
|
|
|
BrowserDialog();
|
|
auto openFile() -> string; //one existing file
|
|
auto openFiles() -> string_vector; //any existing files or folders
|
|
auto openFolder() -> string; //one existing folder
|
|
auto saveFile() -> string; //one file
|
|
auto selectFolder() -> string; //one existing folder
|
|
auto setFilters(const string_vector& filters = {}) -> type&;
|
|
auto setParent(const sWindow& parent) -> type&;
|
|
auto setPath(const string& path = "") -> type&;
|
|
auto setTitle(const string& title = "") -> type&;
|
|
|
|
private:
|
|
struct State {
|
|
string action;
|
|
string_vector filters = {"*"};
|
|
sWindow parent;
|
|
string path;
|
|
string_vector response;
|
|
string title;
|
|
} state;
|
|
|
|
auto _run() -> string_vector;
|
|
|
|
friend class BrowserDialogWindow;
|
|
};
|
|
|
|
#endif
|