[nostalgia/core] Change how gba_timer_t is configured
This commit is contained in:
parent
0841b56399
commit
f9d3521fe7
@ -9,9 +9,7 @@
|
|||||||
|
|
||||||
#include <ox/std/types.hpp>
|
#include <ox/std/types.hpp>
|
||||||
|
|
||||||
namespace nostalgia::core {
|
namespace nostalgia::core::config {
|
||||||
|
|
||||||
namespace config {
|
|
||||||
|
|
||||||
constexpr auto ImGuiEnabled =
|
constexpr auto ImGuiEnabled =
|
||||||
#if __has_include(<imgui.h>)
|
#if __has_include(<imgui.h>)
|
||||||
@ -28,11 +26,8 @@ enum class SdlVsync {
|
|||||||
|
|
||||||
constexpr auto GbaSpriteBufferLen = 128;
|
constexpr auto GbaSpriteBufferLen = 128;
|
||||||
constexpr auto GbaEventLoopTimerBased = false;
|
constexpr auto GbaEventLoopTimerBased = false;
|
||||||
|
constexpr auto GbaTimerBits = 32;
|
||||||
constexpr auto UserlandFpsPrint = false;
|
constexpr auto UserlandFpsPrint = false;
|
||||||
constexpr auto SdlVsyncOption = static_cast<int>(SdlVsync::Adaptive);
|
constexpr auto SdlVsyncOption = static_cast<int>(SdlVsync::Adaptive);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
using gba_timer_t = uint32_t;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
#include "addresses.hpp"
|
#include "addresses.hpp"
|
||||||
#include "bios.hpp"
|
#include "bios.hpp"
|
||||||
#include "irq.hpp"
|
#include "irq.hpp"
|
||||||
|
#include "core.hpp"
|
||||||
|
|
||||||
extern "C" void isr();
|
extern "C" void isr();
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#include "addresses.hpp"
|
#include "addresses.hpp"
|
||||||
#include "bios.hpp"
|
#include "bios.hpp"
|
||||||
#include "irq.hpp"
|
#include "irq.hpp"
|
||||||
|
#include "core.hpp"
|
||||||
|
|
||||||
extern "C" void isr();
|
extern "C" void isr();
|
||||||
|
|
||||||
|
15
src/nostalgia/core/gba/core.hpp
Normal file
15
src/nostalgia/core/gba/core.hpp
Normal 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>;
|
||||||
|
|
||||||
|
}
|
@ -8,6 +8,7 @@
|
|||||||
#include <ox/std/bit.hpp>
|
#include <ox/std/bit.hpp>
|
||||||
|
|
||||||
#include "addresses.hpp"
|
#include "addresses.hpp"
|
||||||
|
#include "core.hpp"
|
||||||
#include "gfx.hpp"
|
#include "gfx.hpp"
|
||||||
#include "irq.hpp"
|
#include "irq.hpp"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user