Advertising
- close.patch
- Tuesday, October 9th, 2007 at 12:32:27pm MDT
- 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))
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.