minor fixes
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <filesystem>
|
||||
#include <SDL.h>
|
||||
#include <SDL_vulkan.h>
|
||||
|
||||
VkInstance instance{};
|
||||
using json = nlohmann::json;
|
||||
|
||||
@@ -15,7 +15,7 @@ struct Window {
|
||||
[[nodiscard]] bool gotClosed(SDL_Event event);
|
||||
ImFont *uiFont{}, *codeFont{};
|
||||
u32 windowID{};
|
||||
float volumeL = 0.1, volumeR = 0.1;
|
||||
float volumeL = 0.01, volumeR = 0.01;
|
||||
void LoadROM(n64::Core& core, const std::string& path);
|
||||
private:
|
||||
bool lockVolume = true;
|
||||
|
||||
@@ -20,7 +20,7 @@ void Scheduler::enqueueAbsolute(const Event& event) {
|
||||
|
||||
void Scheduler::tick(u64 t, n64::Mem& mem, n64::Registers& regs) {
|
||||
ticks += t;
|
||||
if(ticks >= events.top().time) {
|
||||
while(ticks >= events.top().time) {
|
||||
events.top().event_cb(mem, regs);
|
||||
events.pop();
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ enum MessageType : u8 {
|
||||
|
||||
template <MessageType messageType = Info, typename ...Args>
|
||||
constexpr void print(const std::string& fmt, Args... args) {
|
||||
#ifndef __WIN32
|
||||
#ifndef _WIN32
|
||||
if constexpr(messageType == Error) {
|
||||
fmt::print(fmt::emphasis::bold | fg(fmt::color::red), fmt, args...);
|
||||
exit(-1);
|
||||
|
||||
Reference in New Issue
Block a user