Skip to content

Commit

Permalink
dumpdfs: fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
rasky committed Oct 23, 2023
1 parent 6963df1 commit 72a313d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/dumpdfs/dumpdfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ enum
};

/* Internal filesystem stuff */
typedef struct {
uint32_t handle;
uint32_t size;
uint32_t loc;
uint32_t cart_start_loc;
} open_file_t;
#define MAX_OPEN_FILES 4
static void *base_ptr = 0;
static open_file_t open_files[MAX_OPEN_FILES];
static directory_entry_t* directories[MAX_DIRECTORY_DEPTH];
Expand Down Expand Up @@ -530,7 +537,6 @@ int dfs_open(const char * const path)
file->size = get_size(&t_node);
file->loc = 0;
file->cart_start_loc = t_node.file_pointer;
file->cached_loc = 0xFFFFFFFF;

return file->handle;
}
Expand Down

0 comments on commit 72a313d

Please sign in to comment.