Re: Re: Expanded Windows Compile Guide

Home › Forums › Development › Expanded Windows Compile Guide › Re: Re: Expanded Windows Compile Guide

#26119
cadbusca
Member

Thank you for the clarification.

WIIMC+ has an option to check for the validity of music files before adding them to a playlist.
To do so it uses the functions “diropen” and “dirclose” within fileop.cpp

If you have installed or upgraded to Devkitpro R23 or R24 you must change those two calls within fileop.cpp to “opendir” and “closedir” before attempting to compile WIIMC+.

After you merge the WIIMC+ patch with SVN 971, here is the code snip that needs to change:
For me they are lines 3460 and 3465.

Within function:

int VerifyPlaylistEntry(char *currentfile)


if(strcmp(lastdirsaved,currentdir) != 0) //jhb50 check for changed directory
{
DIR_ITER *dir;
dir = diropen(currentdir); <====== change to opendir
strcpy(lastdirsaved,currentdir);
if(dir)
{
lastdirexists = true;
dirclose(dir); <====== change to closedir
}
else