MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / NostalgiaScreen_Version

Function NostalgiaScreen_Version

src/MenuOptions.c:1307–1317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1305}
1306
1307static void NostalgiaScreen_Version(void* screen, void* widget) {
1308 struct MenuOptionsScreen* s = (struct MenuOptionsScreen*)screen;
1309 struct ButtonWidget* btn = (struct ButtonWidget*)widget;
1310
1311 int ver = Game_Version.Version - 1;
1312 if (ver < VERSION_0017) ver = VERSION_0030;
1313
1314 Options_SetInt(OPT_GAME_VERSION, ver);
1315 GameVersion_Load();
1316 MenuOptionsScreen_Update(s, btn);
1317}
1318
1319static void NF_GetVersion(struct ButtonWidget* btn, cc_string* v) {
1320 String_AppendConst(v, Game_Version.Name);

Callers

nothing calls this directly

Calls 3

Options_SetIntFunction · 0.85
GameVersion_LoadFunction · 0.85
MenuOptionsScreen_UpdateFunction · 0.85

Tested by

no test coverage detected