random changes and bugfixes

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1547 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2005-02-19 02:05:03 +00:00
parent 285208a1c4
commit 2a72461b3a
4 changed files with 107 additions and 5 deletions
+8 -1
View File
@@ -670,9 +670,16 @@ int lzhuf_decode(lzhuf_session_t* sess) /* recover */
return 0;
}
void lzhuf_startSession(lzhuf_session_t* sess)
void lzhuf_startSession(lzhuf_session_t* sess, int bStdIO)
{
memset(sess, 0, sizeof(*sess));
if (bStdIO)
{
sess->read = fread;
sess->write = fwrite;
sess->seek = fseek;
sess->tell = ftell;
}
}
void lzhuf_endSession(lzhuf_session_t* sess)