MCPcopy Create free account
hub / github.com/Meridian59/Meridian59 / ReadLevelData

Function ReadLevelData

roomedit/source/load.cpp:80–96  ·  view source on GitHub ↗

/ * ReadLevelData: Read in the given room file, and extract Vertices, LineDefs, * SideDefs, and Sectors. */

Source from the content-addressed store, hash-verified

78 * SideDefs, and Sectors.
79 */
80void ReadLevelData (char *levelname)
81{
82 int infile;
83
84 infile = open(levelname, O_BINARY | O_RDONLY);
85 if (infile < 0)
86 {
87 Notify("Error opening file %s", levelname);
88 return;
89 }
90 if (LoadRoom(infile) == FALSE)
91 Notify("Error reading file %s", levelname);
92
93 close(infile);
94
95 return;
96}
97/***************************************************************************/
98/*
99 * AddVertex: Add given vertex if it doesn't already appear in Vertexes.

Callers 1

TEditorClientMethod · 0.85

Calls 3

NotifyFunction · 0.85
LoadRoomFunction · 0.85
closeFunction · 0.85

Tested by

no test coverage detected