cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

MemoryRule.cpp (2767B)


      1/*
      2 * Gearboy - Nintendo Game Boy Emulator
      3 * Copyright (C) 2012  Ignacio Sanchez
      4
      5 * This program is free software: you can redistribute it and/or modify
      6 * it under the terms of the GNU General Public License as published by
      7 * the Free Software Foundation, either version 3 of the License, or
      8 * any later version.
      9
     10 * This program is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     13 * GNU General Public License for more details.
     14
     15 * You should have received a copy of the GNU General Public License
     16 * along with this program.  If not, see http://www.gnu.org/licenses/
     17 *
     18 */
     19
     20#include "MemoryRule.h"
     21
     22MemoryRule::MemoryRule(Processor* pProcessor, Memory* pMemory,
     23        Video* pVideo, Input* pInput, Cartridge* pCartridge, Audio* pAudio)
     24{
     25    m_pProcessor = pProcessor;
     26    m_pMemory = pMemory;
     27    m_pVideo = pVideo;
     28    m_pInput = pInput;
     29    m_pCartridge = pCartridge;
     30    m_pAudio = pAudio;
     31    m_bCGB = false;
     32    InitPointer(m_pRamChangedCallback);
     33}
     34
     35MemoryRule::~MemoryRule()
     36{
     37
     38}
     39
     40void MemoryRule::SaveRam(std::ostream&)
     41{
     42    Log("MemoryRule::SaveRam not implemented");
     43}
     44
     45bool MemoryRule::LoadRam(std::istream&, s32)
     46{
     47    Log("MemoryRule::LoadRam not implemented");
     48    return false;
     49}
     50
     51void MemoryRule::SetRamChangedCallback(RamChangedCallback callback)
     52{
     53    m_pRamChangedCallback = callback;
     54}
     55
     56size_t MemoryRule::GetRamSize()
     57{
     58    Log("MemoryRule::GetRamSize not implemented");
     59    return 0;
     60}
     61
     62size_t MemoryRule::GetRTCSize()
     63{
     64    Log("MemoryRule::GetRTCSize not implemented");
     65    return 0;
     66}
     67
     68u8* MemoryRule::GetRamBanks()
     69{
     70    Log("MemoryRule::GetRamBanks not implemented");
     71    return NULL;
     72}
     73
     74u8* MemoryRule::GetCurrentRamBank()
     75{
     76    Log("MemoryRule::GetCurrentRamBank not implemented");
     77    return NULL;
     78}
     79
     80int MemoryRule::GetCurrentRamBankIndex()
     81{
     82    Log("MemoryRule::GetCurrentRamBankIndex not implemented");
     83    return 0;
     84}
     85
     86u8* MemoryRule::GetRomBank0()
     87{
     88    Log("MemoryRule::GetRomBank0 not implemented");
     89    return NULL;
     90}
     91
     92int MemoryRule::GetCurrentRomBank0Index()
     93{
     94    Log("MemoryRule::GetCurrentRomBank0Index not implemented");
     95    return 0;
     96}
     97
     98u8* MemoryRule::GetCurrentRomBank1()
     99{
    100    Log("MemoryRule::GetCurrentRomBank1 not implemented");
    101    return NULL;
    102}
    103
    104int MemoryRule::GetCurrentRomBank1Index()
    105{
    106    Log("MemoryRule::GetCurrentRomBank1Index not implemented");
    107    return 1;
    108}
    109
    110u8* MemoryRule::GetRTCMemory()
    111{
    112    Log("MemoryRule::GetRTCMemory not implemented");
    113    return NULL;
    114}
    115
    116void MemoryRule::SaveState(std::ostream&)
    117{
    118    Log("MemoryRule::SaveState not implemented");
    119}
    120
    121void MemoryRule::LoadState(std::istream&)
    122{
    123    Log("MemoryRule::LoadState not implemented");
    124}