Skip to content
Snippets Groups Projects
Commit 256cae70 authored by deuce's avatar deuce
Browse files

Add support for alternate file paths.

parent f6570391
No related branches found
No related tags found
No related merge requests found
......@@ -83,8 +83,14 @@ function FileBase(dir) {
this.extdesc = exb.read(512).replace(/\x00.*$/, '');
}
}
if (file_exists(file_area.dir[dir].path+this.name))
this.path = fullpath(file_area.dir[dir].path+this.name);
if (this.altpath > 0 && file_area.alt_paths !== undefined) {
if (file_exists(file_area.alt_paths[this.altpath-1]+this.name))
this.path = fullpath(file_area.alt_paths[this.altpath-1]+this.name);
}
else {
if (file_exists(file_area.dir[dir].path+this.name))
this.path = fullpath(file_area.dir[dir].path+this.name);
}
};
FileEntry.prototype = {
get name() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment