mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Implemented CL_LoadBind
This commit is contained in:
parent
932bdd402c
commit
c321470382
2 changed files with 13 additions and 0 deletions
|
@ -303,3 +303,14 @@ bool bindlistener::Load(Script& script)
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CL_LoadBind(const char* filename, bind_t* bind) {
|
||||
Script script;
|
||||
|
||||
bind->Clear();
|
||||
|
||||
bindlistener listener(bind);
|
||||
script.LoadFile(filename);
|
||||
// Load the bind file
|
||||
return listener.Load(script);
|
||||
}
|
||||
|
|
|
@ -124,3 +124,5 @@ public:
|
|||
void ActiveSound(Event *ev);
|
||||
void EnterSound(Event *ev);
|
||||
};
|
||||
|
||||
bool CL_LoadBind(const char* filename, bind_t* bind);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue