30 if (s ==
"pokeemerald") {
33 if (s ==
"pokefirered") {
36 if (s ==
"pokeruby") {
39 if (s ==
"pokeemerald-expansion") {
61 return "pokeemerald-expansion";
63 panic(
"unhandled BaseGame value");
82 constexpr auto parse(std::format_parse_context &ctx)
std::optional< BaseGame > base_game_from_str(const std::string &s)
Converts a string to BaseGame.
BaseGame
Identifies the target base game for a decompilation project.
void panic(const StringViewSourceLoc &s)
Unconditionally terminates the program with a panic message.
std::ostream & operator<<(std::ostream &os, const PrimaryPairingMode m)
Stream insertion operator for PrimaryPairingMode.
std::string to_string(const PrimaryPairingMode m)
Converts a PrimaryPairingMode to its canonical string representation.