Adjusting for resource fork support.
This commit is contained in:
parent
06c76ed1c3
commit
990a92d9df
|
@ -64,8 +64,7 @@ public class OverrideFileEntryReader implements FileEntryReader {
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Optional<byte[]> getResourceData() {
|
public Optional<byte[]> getResourceData() {
|
||||||
// Special case, the AppleCommander API does not really handle resource forks.
|
return resourceData.or(() -> parent.map(FileEntryReader::getResourceData).filter(Optional::isPresent).map(Optional::get));
|
||||||
return resourceData;
|
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Optional<Integer> getBinaryAddress() {
|
public Optional<Integer> getBinaryAddress() {
|
||||||
|
|
Loading…
Reference in New Issue