Vamiga: Snapshots cannot be loaded if no Rom is present

Created on 4 Jul 2020  路  1Comment  路  Source: dirkwhoffmann/vAmiga

If the default machine configuration does not specify a Kickstart Rom, the emulator refuses to load a snapshot file.

Bug

Most helpful comment

Confirmed: Method 'isReady()' was called too early:

Old code (MyController.swift):

```
// Check if the Amiga is ready to power on
if amiga.isReady() {

        // Power on the Amiga
        amiga.powerOn()

        // Process attachment (if any)
        mydocument.mountAmigaAttachment()

        // Launch the emulator thread
        amiga.run()

    }

New code: 

  ```
        // Process attachment (if any)
        mydocument.mountAmigaAttachment()

        // Check if the Amiga is ready to power on
        if amiga.isReady() {

            // Power on the Amiga
            amiga.powerOn()

            // Launch the emulator thread
            amiga.run()

        }

>All comments

Confirmed: Method 'isReady()' was called too early:

Old code (MyController.swift):

```
// Check if the Amiga is ready to power on
if amiga.isReady() {

        // Power on the Amiga
        amiga.powerOn()

        // Process attachment (if any)
        mydocument.mountAmigaAttachment()

        // Launch the emulator thread
        amiga.run()

    }

New code: 

  ```
        // Process attachment (if any)
        mydocument.mountAmigaAttachment()

        // Check if the Amiga is ready to power on
        if amiga.isReady() {

            // Power on the Amiga
            amiga.powerOn()

            // Launch the emulator thread
            amiga.run()

        }
Was this page helpful?
0 / 5 - 0 ratings

Related issues

dirkwhoffmann picture dirkwhoffmann  路  5Comments

dirkwhoffmann picture dirkwhoffmann  路  3Comments

dirkwhoffmann picture dirkwhoffmann  路  3Comments

dirkwhoffmann picture dirkwhoffmann  路  3Comments

Gianmarco72 picture Gianmarco72  路  4Comments