summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/imd_dsk.cpp
Commit message (Collapse)AuthorAgeFilesLines
* imd_dsk.cpp: Fix segmentation fault saving FM track Jesse Marroquin2021-07-291-1/+1
| | | Incorrect cell size for FM track results in empty bitstream that ultimately causes data.empty() to seg fault.
* imd: do the number of tracks test only on 5.25, 8" and 3.5" is always 80, 3" ↵ Olivier Galibert2021-04-121-11/+12
| | | | is always 40
* imd: Don't crash when trying to put a 80-track image in a 40-track drive Olivier Galibert2021-03-311-0/+5
|
* flopimg: Change the extracted bitstreams into vector<bool> Olivier Galibert2021-01-221-13/+11
| | | | | | | flopimg: Change the extracted sectors into vector<vector<uint8_t>> flopimg: Add a Mac sector extraction apple 3.5 gcr: Generalize track creation/extraction apple 3.5 gcr: Add a pure sector format
* imd_dsk: restore # of tracks check [R. Belmont] arbee2021-01-101-1/+4
|
* imd_dsk: use has_variant() and accept either HD or QD as 80-track drives [R. ↵ arbee2021-01-101-7/+4
| | | | Belmont]
* imd_fmt.cpp: if an IMD image is 40 track but the drive is HD, put the data ↵ arbee2021-01-091-4/+64
| | | | on even tracks like hardware would show [R. Belmont]
* Provide the variants to the floppy formats Olivier Galibert2021-01-091-3/+3
|
* Fix most implicit fallthrough warnings from clang Vas Crabb2020-11-171-1/+1
|
* Got rid of global_alloc/global_free. Vas Crabb2020-10-031-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | The global_alloc/global_free functions have outlived their usefulness. They don't allow consistently overriding the default memory allocation behaviour because they aren't used consistently, and we don't have standard library allocator wrappers for them that we'd need to use them consistently with all the standard library containers we're using. If you need to change the default allocator behaviour, you can override the new/delete operators, and there are ways to get more fine-grained control that way. We're already doing that to pre-fill memory in debug builds. Code was already starting to depend on global_alloc/global_free wrapping new/delete. For example some parts of the code (including the UI and Windows debugger) was putting the result of global_alloc in a std::unique_ptr wrappers without custom deleters, and the SPU sound device was assuming it could use global_free to release memory allocated with operator new. There was also code misunderstanding the behaviour of global_alloc, for example the GROM port cartridge code was checking for nullptr when a failure will actually throw std::bad_alloc. As well as substituting new/delete, I've made several things use smart pointers to reduce the chance of leaks, and fixed a couple of leaks, too.
* imd_dsk: Fix bug when changing IMD image [lfantoniosi] (#7289) lfantoniosi2020-09-251-0/+6
| | | | | * Fix bug when changing IMD image These arrays weren't zeroed when changing a IMD disk for saving.
* srcclean and cleanup (nw) Vas Crabb2020-06-211-2/+2
|
* Add ImageDisk IMD save support lfantoniosi2020-06-131-36/+146
| | | | Allow to save IMD floppy image disk. Tested on Zorba and Kaypro II
* (nw) formats: reduce dependencies on libemu Vas Crabb2020-04-131-5/+5
| | | | | | | | | | | The only link dependency left is emu_fatalerror. The format handlers really shouldn't be throwing fatal errors at all - they should just fail to load an image they can't handle. Maybe the interface should be enhanced to allow better propagation of errors up from the format handlers so they can be displayed in a UI rather than just logged. The only other two dependencies are on logmacro.h (pure macros) and the PAIR type from emucore.h (possibly worth moving to util).
* use C++ library includes (nw) firewave2020-01-221-2/+2
|
* imd_dsk.cpp: Add some sanity checking on geometry AJR2018-07-271-1/+19
|
* ImageDisk loader: don't crash on tracks with no data Sergey Svishchev2017-01-101-4/+7
|
* more TRUE/FALSE cleanup (nw) Miodrag Milanovic2016-10-221-6/+6
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-43/+43
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* dynamic_buffer is just std::vector<UINT8> (nw) Miodrag Milanovic2016-10-211-1/+1
|
* Bad OG, no cookie, nw either therealmogminer@gmail.com2016-09-251-1/+1
|
* fixing some more override (nw) Miodrag Milanovic2015-12-061-1/+1
|
* clang-modernize part 5 Miodrag Milanovic2015-12-041-5/+5
|
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-0/+514