mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-24 23:54:01 +02:00
38 lines
1022 B
C++
38 lines
1022 B
C++
/*
|
|
* Rosalie's Mupen GUI - https://github.com/Rosalie241/RMG
|
|
* Copyright (C) 2020 Rosalie Wanders <rosalie@mailbox.org>
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 3.
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
#ifndef CORE_CALLBACK_HPP
|
|
#define CORE_CALLBACK_HPP
|
|
|
|
#include <functional>
|
|
#include <string>
|
|
|
|
// internal mupen64plus callbacks
|
|
#ifdef CORE_INTERNAL
|
|
|
|
#include "m64p/Api.hpp"
|
|
|
|
void CoreDebugCallback(void* context, int level, const char* message);
|
|
void CoreStateCallback(void* context, m64p_core_param param, int value);
|
|
|
|
#endif // CORE_INTERNAL
|
|
|
|
enum class CoreDebugMessageType
|
|
{
|
|
Error = 1,
|
|
Warning = 2,
|
|
Info = 3,
|
|
Status = 4,
|
|
Verbose = 5
|
|
};
|
|
|
|
bool CoreSetupCallbacks(std::function<void(enum CoreDebugMessageType, std::string, std::string)> debugCallbackFunc);
|
|
|
|
#endif // CORE_CALLBACK_HPP
|