MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / ParseApple2Type

Function ParseApple2Type

source/SaveState.cpp:245–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243#define SS_YAML_VALUE_BASE64A "Base 64A"
244
245static eApple2Type ParseApple2Type(std::string type)
246{
247 if (type == SS_YAML_VALUE_APPLE2) return A2TYPE_APPLE2;
248 else if (type == SS_YAML_VALUE_APPLE2PLUS) return A2TYPE_APPLE2PLUS;
249 else if (type == SS_YAML_VALUE_APPLE2JPLUS) return A2TYPE_APPLE2JPLUS;
250 else if (type == SS_YAML_VALUE_APPLE2E) return A2TYPE_APPLE2E;
251 else if (type == SS_YAML_VALUE_APPLE2EENHANCED) return A2TYPE_APPLE2EENHANCED;
252 else if (type == SS_YAML_VALUE_APPLE2C) return A2TYPE_APPLE2C;
253 else if (type == SS_YAML_VALUE_PRAVETS82) return A2TYPE_PRAVETS82;
254 else if (type == SS_YAML_VALUE_PRAVETS8M) return A2TYPE_PRAVETS8M;
255 else if (type == SS_YAML_VALUE_PRAVETS8A) return A2TYPE_PRAVETS8A;
256 else if (type == SS_YAML_VALUE_TK30002E) return A2TYPE_TK30002E;
257 else if (type == SS_YAML_VALUE_BASE64A) return A2TYPE_BASE64A;
258
259 throw std::runtime_error("Load: Unknown Apple2 type");
260}
261
262static std::string GetApple2TypeAsString(void)
263{

Callers 1

ParseUnitApple2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected