Implemented CL_LoadBind

This commit is contained in:
smallmodel 2023-12-27 22:53:49 +01:00
parent 932bdd402c
commit c321470382
No known key found for this signature in database
GPG key ID: A96F163ED4891440
2 changed files with 13 additions and 0 deletions

View file

@ -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);
}

View file

@ -124,3 +124,5 @@ public:
void ActiveSound(Event *ev);
void EnterSound(Event *ev);
};
bool CL_LoadBind(const char* filename, bind_t* bind);