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

Function OpenFilterLogFiles

editor/TableFileFilterMng.cpp:2078–2094  ·  view source on GitHub ↗

Opens the Filter Log Files

Source from the content-addressed store, hash-verified

2076
2077// Opens the Filter Log Files
2078void OpenFilterLogFiles(void) {
2079 char fullpath[_MAX_PATH + 1];
2080
2081 ddio_MakePath(fullpath, LocalD3Dir, "Remaining Pages.txt", NULL);
2082 remaining_log_file = cfopen(fullpath, "wt");
2083 if (remaining_log_file == NULL) {
2084 mprintf(0, "Couldn't open \"Remaining Pages\" log file!\n");
2085 return;
2086 }
2087
2088 ddio_MakePath(fullpath, LocalD3Dir, "Removed Pages.txt", NULL);
2089 removed_log_file = cfopen(fullpath, "wt");
2090 if (removed_log_file == NULL) {
2091 mprintf(0, "Couldn't open \"Removed Pages\" log file!\n");
2092 return;
2093 }
2094}
2095
2096// Returns the pagetype string for a given type
2097void GetPageTypeString(int type, CString &type_text) {

Callers 1

CreateNewTableFileMethod · 0.85

Calls 2

cfopenFunction · 0.85
ddio_MakePathFunction · 0.50

Tested by

no test coverage detected