diff options
| author | Harley Travis <harleytravis123@outlook.com> | 2026-06-20 20:00:32 -0500 |
|---|---|---|
| committer | Harley Travis <harleytravis123@outlook.com> | 2026-06-20 20:00:32 -0500 |
| commit | edd15150f34b040d5ab68a1b418705c0de895a1e (patch) | |
| tree | 0f0c7fc7d4440b76607169cf33dd3e3267b6e44a /Kernel/Patches/Let2BlkDevTypeFDC.HC | |
| parent | 26fd4c3343fb5a55ac8b305a6adea3212e3d7fdd (diff) | |
| download | templeos-floppy-driver-edd15150f34b040d5ab68a1b418705c0de895a1e.tar.gz | |
Re-arrange patch files
Some of the patches are applied to files in subdirectories of ::/Kernel and ::/Adam. The directory tree has been re-arranged in such a way as to allow them to be #included without having the compiler backtrack to their parent directory.
Diffstat (limited to 'Kernel/Patches/Let2BlkDevTypeFDC.HC')
| -rw-r--r-- | Kernel/Patches/Let2BlkDevTypeFDC.HC | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Kernel/Patches/Let2BlkDevTypeFDC.HC b/Kernel/Patches/Let2BlkDevTypeFDC.HC deleted file mode 100644 index be31e7f..0000000 --- a/Kernel/Patches/Let2BlkDevTypeFDC.HC +++ /dev/null @@ -1,22 +0,0 @@ -// PATCH: Remaps ltrs W-Z for floppy drives -// FILE: ::/Kernel/BlkDev/DskDrv.HC -// TO INSTALL: Comment out the original function. -// THEN: #include this file after it. - -I64 Let2BlkDevType(U8 drv_let) -{//Drv letter to BlkDev Type. drv_let=0 not allowed. See BDT_NULL. - drv_let=Let2Let(drv_let); - if ('A'<=drv_let<='B') - return BDT_RAM; - if ('C'<=drv_let<='L') - return BDT_ATA; - if ('M'<=drv_let<='P') - return BDT_ISO_FILE_READ; - if ('Q'<=drv_let<='S') - return BDT_ISO_FILE_WRITE; - if ('T'<=drv_let<='V') - return BDT_ATAPI; - if ('W'<=drv_let<='Z') - return BDT_FLOPPY; - return BDT_NULL; -}
\ No newline at end of file |
