// PcbLoader - locate and read board JSON documents. // // Search order: // 1. Built-in board definitions: /boards/.json // 2. User board JSONs (JSONES subset): /*.json — a file whose board // type matches overrides the built-in definition or adds a new board. #pragma once #include namespace CartPcb { class PcbLoader { public: /// /// Load the board JSON text for the given board type. /// /// Board type, e.g. "NES-NROM-256". /// The Nescartdb data directory. /// A user directory with custom board JSONs (may be empty). /// Receives the JSON text on success. static bool LoadBoard(const std::string& boardType, const std::string& builtinDir, const std::string& userDir, std::string& outJson); }; }