MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / Reload

Method Reload

neo/ui/UserInterface.cpp:128–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void idUserInterfaceManagerLocal::Reload( bool all ) {
129 ID_TIME_T ts;
130
131 int c = guis.Num();
132 for ( int i = 0; i < c; i++ ) {
133 if ( !all ) {
134 fileSystem->ReadFile( guis[i]->GetSourceFile(), NULL, &ts );
135 if ( ts <= guis[i]->GetTimeStamp() ) {
136 continue;
137 }
138 }
139
140 guis[i]->InitFromFile( guis[i]->GetSourceFile() );
141 common->Printf( "reloading %s.\n", guis[i]->GetSourceFile() );
142 }
143}
144
145void idUserInterfaceManagerLocal::ListGuis() const {
146 int c = guis.Num();

Callers

nothing calls this directly

Calls 6

ReadFileMethod · 0.80
GetSourceFileMethod · 0.80
GetTimeStampMethod · 0.80
NumMethod · 0.45
InitFromFileMethod · 0.45
PrintfMethod · 0.45

Tested by

no test coverage detected