MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / GetSavesNames

Method GetSavesNames

PanzerChasm/host.cpp:370–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370void Host::GetSavesNames( SavesNames& out_saves_names )
371{
372 //for( SaveComment& save_comment : out_saves_names )
373 for( unsigned int slot= 0u; slot < c_save_slots; slot++ )
374 {
375 SaveComment& out_save_comment= out_saves_names[slot];
376
377 char file_name[32];
378 GetSaveFileNameForSlot( slot, file_name, sizeof(file_name) );
379
380 if( LoadSaveComment( file_name, out_save_comment ) )
381 { /* all ok */ }
382 else
383 out_save_comment[0]= '\0';
384 }
385}
386
387void Host::SaveGame( const unsigned int slot_number )
388{

Callers 1

OnActivatedMethod · 0.80

Calls 2

GetSaveFileNameForSlotFunction · 0.85
LoadSaveCommentFunction · 0.85

Tested by

no test coverage detected