blob: aadf32eac6db8ea0c86ebbab830acd935a849705 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#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
|