From a3d37205370e2be10923b237d7fb6d45049dfc9e Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 10 Mar 2018 12:42:42 +0200 Subject: [PATCH] Directory harddrive uaehf.device support fix. --- hardfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardfile.cpp b/hardfile.cpp index 947c6aaf..c4b52e5d 100644 --- a/hardfile.cpp +++ b/hardfile.cpp @@ -2442,7 +2442,7 @@ static uae_u32 REGPARAM2 hardfile_open (TrapContext *ctx) struct hardfileprivdata *hfpd = &hardfpd[unit]; struct hardfiledata *hfd = get_hardfile_data_controller(unit); if (hfd) { - if (is_hardfile(hfd->ci.controller_type_unit) == FILESYS_VIRTUAL) { + if (is_hardfile(unit) == FILESYS_VIRTUAL) { if (start_thread(ctx, unit)) { hfpd->directorydrive = true; trap_put_word(ctx, hfpd->base + 32, trap_get_word(ctx, hfpd->base + 32) + 1); -- 2.47.3