Adjusting for resource fork support.

This commit is contained in:
Rob Greene 2022-06-25 20:13:19 -05:00
parent 06c76ed1c3
commit 990a92d9df
1 changed files with 1 additions and 2 deletions

View File

@ -64,8 +64,7 @@ public class OverrideFileEntryReader implements FileEntryReader {
}
@Override
public Optional<byte[]> getResourceData() {
// Special case, the AppleCommander API does not really handle resource forks.
return resourceData;
return resourceData.or(() -> parent.map(FileEntryReader::getResourceData).filter(Optional::isPresent).map(Optional::get));
}
@Override
public Optional<Integer> getBinaryAddress() {