#pragma once #include #include namespace BreaknesSDL { /// /// The board configuration read from the BoardDescription.json (issue #515). /// The SDL application looks up the board by name (kSDLBoardName by default, /// or the board selected on the command line via --board); the configuration /// is required - there is no built-in fallback. /// struct BoardConfig { /// /// Board name (the one used for the lookup). /// std::string name; std::string apu; /// /// PPU revision names of the board (up to 2). /// std::vector ppus; std::string p1; /// /// Physical layout of the TV Sets in the window: "horizontal" or "vertical". /// std::string tv_layout = "horizontal"; /// /// TV Set binding: tvs[i] = index of the PPU displayed on the i-th TV. /// Empty means the default identity binding (TV[i] shows PPU[i]). /// std::vector tvs; }; /// /// Load the board description from BoardDescription.json (next to the executable). /// Looks up the board by `board_name` (default: kSDLBoardName). Returns false when /// the file is missing or the board entry is not found. /// bool LoadBoardConfig(const char* path, const char* board_name, BoardConfig& out); }