MCPcopy Create free account
hub / github.com/JACoders/OpenJK / UI_HandleLoadSelection

Function UI_HandleLoadSelection

code/ui/ui_main.cpp:1790–1803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1788 }
1789}
1790static void UI_HandleLoadSelection()
1791{
1792 Cvar_Set("ui_SelectionOK", va("%d",(s_savegame.currentLine < s_savegame.saveFileCnt)) );
1793 if (s_savegame.currentLine >= s_savegame.saveFileCnt)
1794 return;
1795#ifdef JK2_MODE
1796 Cvar_Set("ui_gameDesc", s_savedata[s_savegame.currentLine].currentSaveFileComments ); // set comment
1797
1798 if (!ui.SG_GetSaveImage(s_savedata[s_savegame.currentLine].currentSaveFileName, &screenShotBuf))
1799 {
1800 memset( screenShotBuf,0,(SG_SCR_WIDTH * SG_SCR_HEIGHT * 4));
1801 }
1802#endif
1803}
1804
1805/*
1806=================

Callers 2

UI_FeederCountFunction · 0.85
UI_FeederSelectionFunction · 0.85

Calls 2

Cvar_SetFunction · 0.50
vaFunction · 0.50

Tested by

no test coverage detected