Some work to get Stream.cpp compiling.

This commit is contained in:
Ryan C. Gordon 2016-03-31 12:25:53 -04:00
parent fbfef87ce0
commit c2be372822

View File

@ -220,7 +220,7 @@ void InitStreams(void)
CPrintF("\n"); CPrintF("\n");
const char *dirsep = CFileSystem::GetDirSeparator(); 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); _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 openning operation was not successfull
if(fstrm_pFile == NULL && fstrm_iZipHandle==-1) { if(fstrm_pFile == NULL && fstrm_iZipHandle==-1) {
// throw exception // 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)); strerror(errno));
} }
@ -912,7 +912,7 @@ void CTFileStream::Create_t(const CTFileName &fnFileName,
if (!_bThreadCanHandleStreams) { if (!_bThreadCanHandleStreams) {
// error // error
::ThrowF_t(TRANS("Cannot create file `%s', stream handling is not enabled for this thread"), ::ThrowF_t(TRANS("Cannot create file `%s', stream handling is not enabled for this thread"),
(CTString&)fnFileNameAbsolute); (const char *) (CTString&)fnFileNameAbsolute);
} }
CTFileName fnmFullFileName; CTFileName fnmFullFileName;