// not necessary for mobile
#ifndef DP_MOBILETOUCH
+#ifndef DP_WASM
historyfile = FS_OpenRealFile("darkplaces_history.txt", "rb", false); // rb to handle unix line endings on windows too
if(historyfile)
{
FS_Close(historyfile);
}
+#endif
#endif
history_line = -1;
// not necessary for mobile
#ifndef DP_MOBILETOUCH
+#ifndef DP_WASM
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
#endif
ConBuffer_Shutdown(&history);