// add it to the iplog.txt file
// TODO: this ought to open the one in the userpath version of the base
// gamedir, not the current gamedir
+// not necessary for mobile
+#ifndef DP_MOBILETOUCH
Log_Printf(cl_iplog_name.string, "%s %s\n", address, name);
if (developer_extra.integer)
Con_DPrintf("CL_IPLog_Add: appending this line to %s: %s %s\n", cl_iplog_name.string, address, name);
+#endif
}
}
cl_iplog_loaded = true;
// TODO: this ought to open the one in the userpath version of the base
// gamedir, not the current gamedir
+// not necessary for mobile
+#ifndef DP_MOBILETOUCH
filedata = FS_LoadFile(cl_iplog_name.string, tempmempool, true, &filesize);
+#else
+ filedata = NULL;
+#endif
if (!filedata)
return;
text = (char *)filedata;
qfile_t *historyfile;
ConBuffer_Init(&history, HIST_TEXTSIZE, HIST_MAXLINES, zonemempool);
+// not necessary for mobile
+#ifndef DP_MOBILETOUCH
historyfile = FS_OpenRealFile("darkplaces_history.txt", "rb", false); // rb to handle unix line endings on windows too
if(historyfile)
{
FS_Close(historyfile);
}
+#endif
history_line = -1;
}
{
// TODO write history to a file
+// not necessary for mobile
+#ifndef DP_MOBILETOUCH
qfile_t *historyfile = FS_OpenRealFile("darkplaces_history.txt", "w", false);
if(historyfile)
{
FS_Printf(historyfile, "%s\n", ConBuffer_GetLine(&history, i));
FS_Close(historyfile);
}
+#endif
ConBuffer_Shutdown(&history);
}