Changes

Jump to navigation Jump to search
→‎Loading files: Renaming functions and variables
Line 722: Line 722:     
===Loading files===
 
===Loading files===
Loading a file in ManiaPlanet is quite easy: you get the CSystemFid's pLoader and call its GetBuffer() method, which returns a stream object ready for reading (see Streams section). Once you're done reading, call the loader's FreeBuffer() method to release the stream.
+
Loading a file in ManiaPlanet is quite easy: you get the CSystemFid's pLoader and call its OpenBuffer() method, which returns a stream object ready for reading (see Streams section). Once you're done reading, call the loader's CloseBuffer() method to release the stream.
    
  class CLoader
 
  class CLoader
 
  {
 
  {
 
  public:
 
  public:
     virtual CClassicBuffer* GetBuffer(CSystemFid* pFid, int mode, CClassicBuffer* pInnerBuffer = NULL);  // mode: 1 = read, 2 = write
+
     virtual CClassicBuffer* OpenBuffer(CSystemFid* pFid, enum EMode, int);  // EMode: 1 = read, 2 = write
     virtual void FreeBuffer(CSystemFid* pFid, CClassicBuffer* pBuffer);
+
     virtual void CloseBuffer(CSystemFid* pFid, CClassicBuffer* pBuffer);
 
  };
 
  };
  

Navigation menu