Index: apps/plugins/doom/rockdoom.c =================================================================== --- apps/plugins/doom/rockdoom.c (révision 15047) +++ apps/plugins/doom/rockdoom.c (copie de travail) @@ -755,7 +755,11 @@ printf("There were still: %d files open\n", fpoint); while(fpoint>0) { +#ifdef SIMULATOR + close(filearray[fpoint]); +#else rb->close(filearray[fpoint]); +#endif fpoint--; } Index: apps/plugins/doom/rockmacros.h =================================================================== --- apps/plugins/doom/rockmacros.h (révision 15047) +++ apps/plugins/doom/rockmacros.h (copie de travail) @@ -41,11 +41,13 @@ #ifdef SIMULATOR #undef open +#undef close #undef lseek #undef filesize #undef read #undef write #define open(a,b) rb->sim_open((a),(b)) +#define close(a) rb->sim_close((a)) #define lseek(a,b,c) rb->sim_lseek((a),(b),(c)) #define filesize(a) rb->sim_filesize((a)) #define read(a,b,c) rb->sim_read((a),(b),(c))