Giter Site home page Giter Site logo

Comments (3)

dbalsom avatar dbalsom commented on June 4, 2024

Raw sector images are ..raw. They have no header, footer, tag or metadata, and thus the only way to tell something is a floppy image is by the extension, or the exact file size.

'MNX' doesn't sound like a standard extension used for floppy images, but a specific extension someone picked to be cute. (I could be wrong!)

I could just allow you to load any file that appeared in your floppy directory, but inadvertently loading a text file or a JPEG into your floppy drive was somthing i wanted to avoid. Also I didn't want to show other floppy types like TD0 and IMD that I do not support, which would just lead to confusion if I allowed them to be loaded.

I suppose it would be fairly safe to show files that either have the correct extension, OR are exactly the right size to be a known raw sector image.

from martypc.

dbalsom avatar dbalsom commented on June 4, 2024

Based on your comment from the other issue, your MNX disk images are "short" and thus there's really no way at all to tell it is a floppy image, other than to just know that it is. Wunderbar.

I'm just going to put a list of file extensions to interpret as raw sector images in the config, and people can add whatever they want or whatever else comes along. A short image can be allowed to load, assuming it is some multiple of 512 bytes, and assuming all the sectors are in standard order. The rest of the disk will be all 0's.

from martypc.

dbalsom avatar dbalsom commented on June 4, 2024

There is now a config section where you can specify what extensions should be considered to be raw sector images:

[emulator.media]
# Provide a list of file extensions toi interpret as raw floppy sector images.
raw_sector_image_extensions = [ "img", "ima", "dsk", "mnx" ]

image

They may still need to be padded to the correct size first.

from martypc.

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.