summaryrefslogtreecommitdiff
path: root/src/input/N64RomInput.cpp
blob: 465c92dd16375d79b34edf6c4f7e3160f9fd40ba (plain)
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
#include "N64RomInput.h"

#include "spdlog/spdlog.h"

void N64RomInput::Open() {
    this->mCartridge = std::make_shared<N64::Cartridge>(this->mData);
    this->mCartridge->Initialize();
}

std::string N64RomInput::GetHash() {
    return this->mCartridge->GetHash();
}

std::string N64RomInput::GetTitle() {
    return this->mCartridge->GetGameTitle();
}

uint32_t N64RomInput::GetVersionCRC() {
    return this->mCartridge->GetCRC();
}

void N64RomInput::LogInfo() {
    SPDLOG_CRITICAL("Game: {}", this->mCartridge->GetGameTitle());
    SPDLOG_CRITICAL("CRC: {}", this->mCartridge->GetCRC());
    SPDLOG_CRITICAL("Version: {}", this->mCartridge->GetVersion());
    SPDLOG_CRITICAL("Country: [{}]", this->mCartridge->GetCountryCode());
    SPDLOG_CRITICAL("Hash: {}", this->mCartridge->GetHash());
}