Quote:
Angband source
* Load all macro stars from disk
*/
void psp_load_macros() {
char buf[1024];
sprintf(buf,"%smacros.txt",ANGBAND_DIR);
int fff = sceIoOpen(buf, PSP_O_RDONLY, 0777);
/* If the file was not there, we'll use the defaults */
if (fff < 0)
return;
psp_load_star(fff, &star);
sceIoClose(fff);
}
Quote:
T.o.M.E source
* Load all macro stars from disk
*/
void psp_load_macros() {
char buf[1024];
/* some variants of angband have a trailing slash in ANGBAND_DIR
* and others don't, build_path won't work because the psp seems
* to be intolerant of double slashes. */
if (!suffix(ANGBAND_DIR, PATH_SEP))
sprintf(buf,"%s%smacros.txt",ANGBAND_DIR,PATH_SEP) ;
else
sprintf(buf,"%smacros.txt",ANGBAND_DIR);
int fff = sceIoOpen(buf, PSP_O_RDONLY, 0777);
/* If the file was not there, we'll use the defaults */
if (fff < 0)
return;
psp_load_star(fff, &star);
sceIoClose(fff);
}
Is the cause this??