Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct rom_file {
- char fname[16];
- uint16_t fstart;
- uint16_t fsize;
- } rom_file_t;
- rom_file_t files[ROMDRV_MAX_FILE_COUNT];
- uint8_t file_count = 0;
- uint16_t fnum;
- for (fnum = 0; fnum < file_count; fnum++) {
- if ((files[fnum].fname[0] != 0) && (strcmp((char*)&(files[fnum].fname), path) == 0)) {
- break;
- }
- }
- if (fnum == file_count) {
- //debug_puts("ROM FS: File not found!\r\n");
- return NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment