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

Function LGSSnapshot

Descent3/loadstate.cpp:1596–1609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1594}
1595
1596int LGSSnapshot(CFILE *fp) {
1597 int bm_handle = -1;
1598 int8_t valid_snapshot = 0;
1599
1600 // get snapshot byte
1601 valid_snapshot = cf_ReadByte(fp);
1602
1603 // if valid, read it in, otherwise just return
1604 if (valid_snapshot) {
1605 bm_handle = bm_AllocLoadBitmap(fp, 0);
1606 }
1607
1608 return bm_handle;
1609}
1610
1611//@@ // movement info.
1612//@@ switch (op->movement_type)

Callers 2

LoadGameStateFunction · 0.85
GetGameStateInfoFunction · 0.85

Calls 2

cf_ReadByteFunction · 0.85
bm_AllocLoadBitmapFunction · 0.85

Tested by

no test coverage detected