mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 02:20:25 +01:00
Some work to get Stream.cpp compiling.
This commit is contained in:
parent
fbfef87ce0
commit
c2be372822
|
@ -220,7 +220,7 @@ void InitStreams(void)
|
|||
CPrintF("\n");
|
||||
|
||||
const char *dirsep = CFileSystem::GetDirSeparator();
|
||||
LoadFileList(_afnmNoCRC, CTFILENAME("Data" + dirsep + "NoCRC.lst"));
|
||||
LoadFileList(_afnmNoCRC, CTFILENAME("Data") + CTString(dirsep) + CTString("NoCRC.lst"));
|
||||
|
||||
_pShell->SetINDEX(CTString("sys")+"_iCPU"+"Misc", 1);
|
||||
}
|
||||
|
@ -887,7 +887,7 @@ void CTFileStream::Open_t(const CTFileName &fnFileName, CTStream::OpenMode om/*=
|
|||
// if openning operation was not successfull
|
||||
if(fstrm_pFile == NULL && fstrm_iZipHandle==-1) {
|
||||
// throw exception
|
||||
Throw_t(TRANS("Cannot open file `%s' (%s)"), (CTString&)fnmFullFileName,
|
||||
Throw_t(TRANS("Cannot open file `%s' (%s)"), (const char *) (CTString&)fnmFullFileName,
|
||||
strerror(errno));
|
||||
}
|
||||
|
||||
|
@ -912,7 +912,7 @@ void CTFileStream::Create_t(const CTFileName &fnFileName,
|
|||
if (!_bThreadCanHandleStreams) {
|
||||
// error
|
||||
::ThrowF_t(TRANS("Cannot create file `%s', stream handling is not enabled for this thread"),
|
||||
(CTString&)fnFileNameAbsolute);
|
||||
(const char *) (CTString&)fnFileNameAbsolute);
|
||||
}
|
||||
|
||||
CTFileName fnmFullFileName;
|
||||
|
|
Loading…
Reference in New Issue
Block a user