mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Wrapped fopen/close/read/write functions inside a simple "IOFile" class. Reading, writing, and error checking became simpler in most cases. It should be near impossible to forget to close a file now that the destructor takes care of it. (I hope this fixes Issue 3635) I have tested the functionality of most things, but it is possible I broke something. :p
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7328 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -28,10 +28,10 @@
|
||||
#ifndef COMPRESSED_BLOB_H_
|
||||
#define COMPRESSED_BLOB_H_
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
|
||||
#include "Blob.h"
|
||||
#include "FileUtil.h"
|
||||
|
||||
namespace DiscIO
|
||||
{
|
||||
@ -73,7 +73,7 @@ private:
|
||||
u64 *block_pointers;
|
||||
u32 *hashes;
|
||||
int data_offset;
|
||||
FILE *file;
|
||||
File::IOFile m_file;
|
||||
u64 file_size;
|
||||
u8 *zlib_buffer;
|
||||
int zlib_buffer_size;
|
||||
|
Reference in New Issue
Block a user