source: golgotha/src/golg/obj_dll.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.2 KB
RevLine 
[80]1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef G1_OBJ_DLL_HH
10#define G1_OBJ_DLL_HH
11
12#error "don't use this anymore"
13
14#include "init/init.hh"
15#include "dll/dll.hh"
16#include "string/string.hh"
17
18class g1_dll_manager_class : public i4_init_class
19{
20protected:
21  enum {MAX_DLLS=512};
22
23  i4_str **name;
24  i4_dll_file **dll;
25  w16 dlls;
26  w16 current;
27  w16 last;
28public:
29  enum { INVALID=0xffff };
30
31  g1_dll_manager_class() : dlls(0), dll(0), name(0) {}
32
33  w16 current_ref() const { return current; }
34
35  virtual void init();
36  virtual void uninit();
37
38  w16 load(const char *s);
39  w16 load(const i4_const_str &dll_name);
40  void remove(w16 ref);
41  void remove_all();
42};
43
44extern g1_dll_manager_class g1_dll_man;
45
46void g1_load_object_dlls();
47void g1_remove_object_dlls();
48
49#endif
Note: See TracBrowser for help on using the repository browser.