MCPcopy Create free account
hub / github.com/dborth/fceugx / GetClickedSave

Method GetClickedSave

source/gui/gui_savebrowser.cpp:189–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189int GuiSaveBrowser::GetClickedSave()
190{
191 int found = -3;
192 for(int i=0; i<SAVELISTSIZE; i++)
193 {
194 if(saveBtn[i]->GetState() == STATE_CLICKED)
195 {
196 saveBtn[i]->SetState(STATE_SELECTED);
197 found = listOffset+i;
198 break;
199 }
200 }
201 return found;
202}
203
204/**
205 * Draw the button on screen

Callers 1

MenuGameSavesFunction · 0.80

Calls 2

GetStateMethod · 0.80
SetStateMethod · 0.45

Tested by

no test coverage detected