[nostalgia/core] Change how gba_timer_t is configured

This commit is contained in:
Gary Talent 2022-02-10 21:28:54 -06:00
parent 0841b56399
commit f9d3521fe7
5 changed files with 20 additions and 7 deletions

View File

@ -9,9 +9,7 @@
#include <ox/std/types.hpp>
namespace nostalgia::core {
namespace config {
namespace nostalgia::core::config {
constexpr auto ImGuiEnabled =
#if __has_include(<imgui.h>)
@ -28,11 +26,8 @@ enum class SdlVsync {
constexpr auto GbaSpriteBufferLen = 128;
constexpr auto GbaEventLoopTimerBased = false;
constexpr auto GbaTimerBits = 32;
constexpr auto UserlandFpsPrint = false;
constexpr auto SdlVsyncOption = static_cast<int>(SdlVsync::Adaptive);
}
using gba_timer_t = uint32_t;
}

View File

@ -8,6 +8,7 @@
#include "addresses.hpp"
#include "bios.hpp"
#include "irq.hpp"
#include "core.hpp"
extern "C" void isr();

View File

@ -9,6 +9,7 @@
#include "addresses.hpp"
#include "bios.hpp"
#include "irq.hpp"
#include "core.hpp"
extern "C" void isr();

View File

@ -0,0 +1,15 @@
/*
* Copyright 2016 - 2022 Gary Talent (gary@drinkingtea.net). All rights reserved.
*/
#pragma once
#include <ox/std/types.hpp>
#include <nostalgia/core/config.hpp>
namespace nostalgia::core {
using gba_timer_t = ox::Uint<config::GbaTimerBits>;
}

View File

@ -8,6 +8,7 @@
#include <ox/std/bit.hpp>
#include "addresses.hpp"
#include "core.hpp"
#include "gfx.hpp"
#include "irq.hpp"