mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-05 01:29:07 +00:00
feat(sound): add SI2 Log methods
This commit is contained in:
parent
e7a11be6aa
commit
91e29bbf52
6 changed files with 95 additions and 16 deletions
|
|
@ -1,17 +1,26 @@
|
|||
#ifndef SOUND_SI2_HPP
|
||||
#define SOUND_SI2_HPP
|
||||
|
||||
#include "sound/SI2Script.hpp"
|
||||
#include "ui/Types.hpp"
|
||||
#include <storm/Log.hpp>
|
||||
#include <cstdint>
|
||||
#include <cstdarg>
|
||||
#include <fmod.h>
|
||||
#include <fmod_errors.h>
|
||||
|
||||
class SI2 {
|
||||
public:
|
||||
// Static variables
|
||||
static FrameScript_Method s_ScriptFunctions[NUM_SCRIPT_FUNCTIONS_SI2];
|
||||
static FrameScript_Method s_ScriptFunctions[];
|
||||
static uint32_t sm_logFlags;
|
||||
static HSLOG sm_log;
|
||||
|
||||
// Static functions
|
||||
static void RegisterScriptFunctions();
|
||||
static int32_t Log_Init();
|
||||
static void Log_Write(const char* format, ...);
|
||||
static void Log_Write(uint32_t line, const char* filename, FMOD_RESULT errcode, const char* format, ...);
|
||||
static int32_t Init(int32_t flag);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue