Logo Search packages:      
Sourcecode: scummvm version File versions

OSystem * OSystem::instance (  )  [static]

Returns a pointer to the (singleton) OSystem instance, that is, to the active backend. This is not quite a "proper" singleton, since OSystem is an interface not a real class (and thus it isn't based on our Singleton template).

Returns:
the pointer to the (singleton) OSystem instance

Definition at line 61 of file system.cpp.

                           {
      if (!s_system)
            s_system = createSystem();
      return s_system;
}


Generated by  Doxygen 1.6.0   Back to index