mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-27 14:32:15 +00:00
new debug function to save a string to a file
This commit is contained in:
parent
58788cd1ee
commit
38bb444bf0
1 changed files with 15 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.15 2002/07/11 04:26:46 niceass
|
||||||
|
// new debug function to save a string to a file
|
||||||
|
//
|
||||||
// Revision 1.14 2002/07/09 03:31:25 niceass
|
// Revision 1.14 2002/07/09 03:31:25 niceass
|
||||||
// oops
|
// oops
|
||||||
//
|
//
|
||||||
|
@ -817,3 +820,15 @@ int G_PlayerAlive(gentity_t *ent)
|
||||||
return qfalse;
|
return qfalse;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Want to save data right before RQ3 crashes? Ues this =D
|
||||||
|
*/
|
||||||
|
void G_DebugSaveData(char *Data) {
|
||||||
|
fileHandle_t f;
|
||||||
|
|
||||||
|
if (trap_FS_FOpenFile("debugout.txt", &f, FS_WRITE) >= 0) {
|
||||||
|
trap_FS_Write(Data, strlen(Data), f);
|
||||||
|
trap_FS_FCloseFile(f);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue