19 lines
470 B
C++
19 lines
470 B
C++
#pragma once
|
|
|
|
#include <functional>
|
|
|
|
namespace sphaira::libhaze {
|
|
|
|
bool Init();
|
|
bool IsInit();
|
|
void Exit();
|
|
|
|
using OnInstallStart = std::function<bool(const char* path)>;
|
|
using OnInstallWrite = std::function<bool(const void* buf, size_t size)>;
|
|
using OnInstallClose = std::function<void()>;
|
|
|
|
void InitInstallMode(const OnInstallStart& on_start, const OnInstallWrite& on_write, const OnInstallClose& on_close);
|
|
void DisableInstallMode();
|
|
|
|
} // namespace sphaira::libhaze
|