mirror of
https://github.com/aap/librw.git
synced 2026-08-10 09:37:04 +01:00
fixes to matfx
This commit is contained in:
@@ -874,6 +874,7 @@ StreamMemory::getLength(void)
|
||||
StreamFile*
|
||||
StreamFile::open(const char *path, const char *mode)
|
||||
{
|
||||
assert(this->file == nil);
|
||||
this->file = fopen(path, mode);
|
||||
if(this->file == nil){
|
||||
RWERROR((ERR_FILE, path));
|
||||
@@ -885,7 +886,9 @@ StreamFile::open(const char *path, const char *mode)
|
||||
void
|
||||
StreamFile::close(void)
|
||||
{
|
||||
assert(this->file);
|
||||
fclose(this->file);
|
||||
this->file = nil;
|
||||
}
|
||||
|
||||
uint32
|
||||
|
||||
Reference in New Issue
Block a user