public class Convenience extends Object
| Modifier and Type | Field and Description |
|---|---|
static BiPredicate<File,File> |
LEXICALLY_FIRST_MEDIA
Magically chooses files to be attached, rules are: Attach first supported
file, eventually replace by lexically first disk or tape (e.g. side A, not
B).
|
| Constructor and Description |
|---|
Convenience(Player player) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
autostart(File file,
BiPredicate<File,File> isMediaToAttach,
File autoStartFile)
Auto-start C64 bundle (ZIP containing well-known formats or un-zipped entry).
|
boolean |
isSupportedMedia(File file)
Check well-known disk/tape/cartridge file extension
|
void |
setAutoStartedFile(Consumer<File> autoStartedFile) |
public static final BiPredicate<File,File> LEXICALLY_FIRST_MEDIA
public Convenience(Player player)
public boolean autostart(File file, BiPredicate<File,File> isMediaToAttach, File autoStartFile) throws IOException, SidTuneError, URISyntaxException
file - file to openisMediaToAttach - tester for media to attachautoStartFile - if media to attach is a disk/tape/cartridge this tune is loaded
after attaching the media (null means just reset C64, instead).IOException - image read errorSidTuneError - invalid tuneURISyntaxExceptionpublic boolean isSupportedMedia(File file)
file - file to checkCopyright © 2018 Ken Händel. All rights reserved.