19.12.2010 - variables and structs, fixed consoleand interfaces

This commit is contained in:
peri4
2010-12-19 22:00:21 +03:00
parent 8926fe2f69
commit a32edb1fef
12 changed files with 291 additions and 35 deletions

View File

@@ -5,11 +5,11 @@ bool PIFile::open(const PIString & path_, Flags<Mode> mode_) {
cpath = path_;
cmode = mode_;
if (cmode[New]) {
stream.open(cpath, fstream::in | fstream::out | fstream::trunc);
stream.open(cpath.stdString().c_str(), fstream::in | fstream::out | fstream::trunc);
stream.close();
cmode &= ~New;
stream.open(cpath, (fstream::openmode)(int)cmode | fstream::binary);
} else stream.open(cpath, (fstream::openmode)(int)cmode | fstream::binary);
stream.open(cpath.stdString().c_str(), (fstream::openmode)(int)cmode | fstream::binary);
} else stream.open(cpath.stdString().c_str(), (fstream::openmode)(int)cmode | fstream::binary);
return isOpened();
}