MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / PltWriteFile

Function PltWriteFile

Descent3/pilot.cpp:1756–1762  ·  view source on GitHub ↗

///////////////////////////////////////// writes a pilot out to file make sure Pilot->filename and Pilot->name are filled in correctly!!!!

Source from the content-addressed store, hash-verified

1754// writes a pilot out to file
1755// make sure Pilot->filename and Pilot->name are filled in correctly!!!!
1756int PltWriteFile(pilot *Pilot, bool newpilot) {
1757 if (Dedicated_server)
1758 return PLTW_NO_ERROR;
1759
1760 Pilot->write();
1761 return Pilot->flush(newpilot);
1762}
1763
1764////////////////////////////////////////////////////
1765// reads in a pilot file (fill in pilot name to read in the struct before calling)

Callers 10

GameSequencerFunction · 0.85
PilotSelectFunction · 0.85
PilotCreateFunction · 0.85
SetHUDModeFunction · 0.85
CtlConfigFunction · 0.85
OptionsMenuFunction · 0.85

Calls 2

writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected