GithubHelp home page GithubHelp logo

Support extended ADF files about vamigaweb HOT 8 CLOSED

mras0 avatar mras0 commented on August 24, 2024
Support extended ADF files

from vamigaweb.

Comments (8)

mras0 avatar mras0 commented on August 24, 2024 2

Yes, seems to work πŸ‘ Hoi intro music is now playing for me with the extended ADF version of the disks.

from vamigaweb.

mithrendal avatar mithrendal commented on August 24, 2024

added like you said on my machine


#include "EXTFile.h"

...

  if (EXTFile::isCompatible(filename)) {
      printf("%s - Loading EXT file\n", filename);
      EXTFile ext{blob, len};
      return std::make_unique<FloppyDisk>(ext);
    }

and the compile succeeds...

so when the extension is also ADF then it should be enough like this right ? Do you have any of these disks to test ? Hang on while I will publish a test version ....

from vamigaweb.

mithrendal avatar mithrendal commented on August 24, 2024

pushed it to test environment 😎
https://vamigaweb.github.io/uat/

from vamigaweb.

mras0 avatar mras0 commented on August 24, 2024

I think it's filtered in the GUI, maybe here:

if(file_slot_file_name.match(/[.](adf|hdf|dms|exe|vAmiga)$/i))

Here's a small one that should work: show_regs.zip

I don't know if there's a standard extension for these files. If people also just call them ".adf" maybe it's better not to change the GUI and instead load like this:

    if (ADFFile::isCompatible(filename)) {
      printf("%s - Loading ADF file\n", filename);
      try {
        ADFFile adf{blob, len};
        return std::make_unique<FloppyDisk>(adf);
      } catch (const VAError& e) {
        // Maybe it's an extended ADF?
        printf("Error loading %s - %s. Trying to load as extended ADF\n", filename, e.what());
        EXTFile ext{blob, len};
        return std::make_unique<FloppyDisk>(ext);
      }
    }

from vamigaweb.

mithrendal avatar mithrendal commented on August 24, 2024

I see your point. Will check what winuae accepts for extensions … we can lean on their behavior

from vamigaweb.

mithrendal avatar mithrendal commented on August 24, 2024

winuae file dialog

image

hmm no .ext file extension ... 😬can not insert the showreg.ext file with this dialog ... only files with the listed extensions show up in the file list

lets try drag and drop into emulator canvas window ...

πŸ€“yes that works ... hmmm what should we do now πŸ™„?

from vamigaweb.

mras0 avatar mras0 commented on August 24, 2024

People probably expect extended ADFs to work with a ".adf" extension then (Example: dirkwhoffmann/vAmiga#672), so probably what I suggested above (first try to load as a normal ADF, and if that fails, load as an extended one).

from vamigaweb.

mithrendal avatar mithrendal commented on August 24, 2024

πŸ™‹πŸ»ok did as you instructed me ... and published to test environment

https://vamigaweb.github.io/uat/

EDIT: for me loading show_regs works now 😍...

maybe @rhinoid s game on extended adf works now too with sound ?

then we can publish to the regular version now?

from vamigaweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.