From f986277ed8e554c4396fab4262c0d666b829712a Mon Sep 17 00:00:00 2001 From: spacy51 Date: Sat, 15 Aug 2009 19:48:32 +0000 Subject: [PATCH] Fix file type associations for Windows Vista. Use Chip-Like icon from shell32.dll for all ROMs. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@886 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/Associate.cpp | 3 +- src/win32/Reg.cpp | 168 ++++++++++++++++++++++++---------------- src/win32/Reg.h | 4 +- 3 files changed, 105 insertions(+), 70 deletions(-) diff --git a/src/win32/Associate.cpp b/src/win32/Associate.cpp index b76dec94..9cbda27f 100644 --- a/src/win32/Associate.cpp +++ b/src/win32/Associate.cpp @@ -95,7 +95,8 @@ void Associate::OnOk() commandPath.Format("\"%s\" \"%%1\"", applicationPath); regAssociateType("VisualBoyAdvance.Binary", "Binary", - commandPath); + commandPath, + "%SystemRoot%\\system32\\SHELL32.dll,-13"); for(int i = 0; i < 7; i++) { if(mask & (1<