mirror of
https://github.com/zeldaret/ss
synced 2026-05-24 15:20:58 -04:00
30 lines
444 B
C++
30 lines
444 B
C++
#ifndef D_DYLINK_H
|
|
#define D_DYLINK_H
|
|
|
|
#include "common.h"
|
|
|
|
class dDynamicModuleControl {
|
|
public:
|
|
dDynamicModuleControl(): mPtr(nullptr) {}
|
|
virtual ~dDynamicModuleControl();
|
|
|
|
void set(u16 *ptr, int count);
|
|
BOOL do_link() const;
|
|
BOOL do_unlink();
|
|
|
|
private:
|
|
u16 *mPtr;
|
|
int mCount;
|
|
};
|
|
|
|
namespace dDyl {
|
|
|
|
void initRelsArc();
|
|
bool destroy();
|
|
bool isLinked(u16 relId);
|
|
int tryLink(u16 relId);
|
|
|
|
} // namespace dDyl
|
|
|
|
#endif
|