Resolving issue for API change in bastools.

This commit is contained in:
Rob Greene 2018-11-24 00:35:34 -06:00
parent c5ff4fb97d
commit 26ff14e0ea
1 changed files with 3 additions and 1 deletions

View File

@ -188,7 +188,9 @@ public class ac {
* to 0x801.
*/
public static void putAppleSoft(String imageName, String fileName) throws IOException, DiskException {
Configuration config = Configuration.builder().build();
File fakeTempSource = File.createTempFile("ac-", "bas");
fakeTempSource.deleteOnExit();
Configuration config = Configuration.builder().sourceFile(fakeTempSource).build();
Queue<Token> tokens = TokenReader.tokenize(System.in);
Parser parser = new Parser(tokens);
Program program = parser.parse();