From 1f41a50836aa5743a6807ed0516cdd5fbbfc6cc2 Mon Sep 17 00:00:00 2001 From: tomch Date: Sun, 16 Dec 2007 00:02:16 +0000 Subject: [PATCH] Fix: Extended HDD image file filter to include *.po --- AppleWin/source/Harddisk.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/AppleWin/source/Harddisk.cpp b/AppleWin/source/Harddisk.cpp index c679fd60..3cd1a073 100644 --- a/AppleWin/source/Harddisk.cpp +++ b/AppleWin/source/Harddisk.cpp @@ -233,6 +233,8 @@ void HD_SetEnabled(bool bEnabled) g_bHD_Enabled = bEnabled; + // FIXME: For LoadConfiguration(), g_uSlot=7 (see definition at start of file) + // . g_uSlot is only really setup by HD_Load_Rom(), later on RegisterIoHandler(g_uSlot, HD_IO_EMUL, HD_IO_EMUL, NULL, NULL, NULL, NULL); LPBYTE pCxRomPeripheral = MemGetCxRomPeripheral(); @@ -332,7 +334,8 @@ void HD_Select(int nDrive) ofn.lStructSize = sizeof(OPENFILENAME); ofn.hwndOwner = g_hFrameWindow; ofn.hInstance = g_hInstance; - ofn.lpstrFilter = TEXT("Hard Disk Images (*.hdv)\0*.hdv\0"); + ofn.lpstrFilter = TEXT("Hard Disk Images (*.hdv,*.po)\0*.hdv;*.po\0") + TEXT("All Files\0*.*\0"); ofn.lpstrFile = filename; ofn.nMaxFile = MAX_PATH; ofn.lpstrInitialDir = directory;