forked from osoumen/C700
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRawBRRFile.h
More file actions
39 lines (29 loc) · 763 Bytes
/
RawBRRFile.h
File metadata and controls
39 lines (29 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* RawBRRFile.h
* C700
*
* Created by osoumen on 12/10/10.
* Copyright 2012 __MyCompanyName__. All rights reserved.
*
*/
#pragma once
#include "C700defines.h"
#include "FileAccess.h"
class RawBRRFile : public FileAccess {
public:
RawBRRFile( const char *path, bool isWriteable=true );
virtual ~RawBRRFile();
virtual bool Load();
virtual bool Write();
const InstParams *GetLoadedInst() const;
unsigned int GetHasFlag() const { return mHasData; }
void StoreInst( const InstParams *inst);
private:
static const int MAX_FILE_SIZE = 65538;
unsigned char mFileData[MAX_FILE_SIZE];
int mFileSize;
InstParams mInst;
char mInstFilePath[PATH_LEN_MAX+1];
unsigned int mHasData;
bool tryLoad(bool noLoopPoint);
};