Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
897 B

  1. // This is the interface to Valve atoms, a simple global table of pointers
  2. // that does not change when we reload a game system. Its purpose is to facilitate
  3. // on-the-fly unloading and reloading of AppSystems. The intended use is this:
  4. // Appsystem allocates its interfaces on global heap (managed by tier0) and
  5. // places pointers to those interfaces into the atom table. Then, when
  6. // somebody unloads and reloads this system, the system will see that the atom
  7. // is not NULL and reconnect so that the old pointers remain valid.
  8. ////////////////////////////////////////////////////////////////////////////////
  9. #ifndef TIER0_ATOMS_HDR
  10. #define TIER0_ATOMS_HDR
  11. enum VAtomEnum
  12. {
  13. VATOM_VJOBS, // vjobs.prx system
  14. VATOM_COUNT
  15. };
  16. // Do NOT cache these pointers to pointers, they may change
  17. // the *GetVAtom() doesn't change, though
  18. PLATFORM_INTERFACE void** GetVAtom( int nAtomIndex );
  19. #endif