@@ -55,7 +55,7 @@ void INetBlockReader::create_block(u32 size)
5555 /*
5656 if( !_buffer )
5757 {
58- _buffer = (u8*) Memory.mem_alloc ( size
58+ _buffer = (u8*) xr_malloc ( size
5959 #ifdef DEBUG_MEMORY_NAME
6060 , "INetBlockReader - storage"
6161 #endif // DEBUG_MEMORY_NAME
@@ -64,7 +64,7 @@ void INetBlockReader::create_block(u32 size)
6464 }
6565 if( _block_size < size )
6666 {
67- _buffer = (u8*)Memory.mem_realloc (_buffer,size
67+ _buffer = (u8*)xr_realloc (_buffer,size
6868 #ifdef DEBUG_MEMORY_NAME
6969 , "CMemoryWriter - storage"
7070 #endif // DEBUG_MEMORY_NAME
@@ -80,7 +80,7 @@ INetBlockReader::~INetBlockReader()
8080{
8181 R_ASSERT (!mem_reader.allocated () || mem_reader.count () == 0 );
8282 mem_reader.free_buff ();
83- // Memory.mem_free ( _buffer );
83+ // xr_free ( _buffer );
8484}
8585/*
8686 IC void w_string(const char *p) { w(p,(u32)xr_strlen(p));w_u8(13);w_u8(10); }
@@ -235,7 +235,7 @@ INetFileBuffWriter::INetFileBuffWriter(LPCSTR _file_name, u32 block_size, bool _
235235
236236INetFileBuffWriter::~INetFileBuffWriter () { xr_delete (mem_writter); }
237237/*
238- data = (BYTE*) Memory.mem_realloc (data,mem_size
238+ data = (BYTE*) xr_realloc (data,mem_size
239239#ifdef DEBUG_MEMORY_NAME
240240 , "CMemoryWriter - storage"
241241#endif // DEBUG_MEMORY_NAME
@@ -252,7 +252,7 @@ CReadMemoryBlock::CReadMemoryBlock(const u32 buff_size_, u8* buffer)
252252 : buf_size(buff_size_), file_size(0 ), position(0 ), _buffer(buffer)
253253{
254254 /*
255- data = (u8*) Memory.mem_alloc (file_size_
255+ data = (u8*) xr_malloc (file_size_
256256 #ifdef DEBUG_MEMORY_NAME
257257 , "CReadMemoryBlock - storage"
258258 #endif // DEBUG_MEMORY_NAME
@@ -263,7 +263,7 @@ CReadMemoryBlock::CReadMemoryBlock(const u32 buff_size_, u8* buffer)
263263
264264CReadMemoryBlock::~CReadMemoryBlock ()
265265{
266- // Memory.mem_free ( data );
266+ // xr_free ( data );
267267}
268268
269269#include " xrCore/FS_impl.h"
0 commit comments