Re: Re: restore_points file

Home › Forums › Help and Support › restore_points file › Re: Re: restore_points file

#27530
aka107
Member

@mylbee wrote:

Good Evening Rodries,

i read that in mplayer.c :


int i;
char tmppath[MAXPATHLEN];
char *buff = mem2_malloc(MAX_RESTORE_POINTS*1024 + 1024,OTHER_AREA);
buff[0] = 0;

Does it means that restore_points is already in mem2 ?
Is it also possible to allocate 512 bytes instead of 1024 bytes ?

No, this is the buffer to read the file.
If MAX_RESTORE_POINTS is too big you will get an error because we use OTHER_AREA to load the file, and OTHER_AREA is 3MB size (in wiimc.cpp)
Anyway I don’t like that code so I’ll change it later