28 lines
1.0 KiB
C++
28 lines
1.0 KiB
C++
/****************************************************************************
|
|
* *
|
|
* Project64 - A Nintendo 64 emulator. *
|
|
* http://www.pj64-emu.com/ *
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
* *
|
|
* License: *
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
* *
|
|
****************************************************************************/
|
|
#pragma once
|
|
|
|
class CSram
|
|
{
|
|
public:
|
|
CSram(bool ReadOnly);
|
|
~CSram();
|
|
|
|
void DmaFromSram(BYTE * dest, int StartOffset, int len);
|
|
void DmaToSram(BYTE * Source, int StartOffset, int len);
|
|
|
|
private:
|
|
bool LoadSram();
|
|
|
|
bool m_ReadOnly;
|
|
HANDLE m_hFile;
|
|
};
|