Skip to content

Commit

Permalink
Allow .DSK files to be associated with ep128emu as CPC or TVC disk im…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
istvan-v committed Dec 22, 2016
1 parent 70aff31 commit 97ee7ff
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions installer/ep128emu.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -375,18 +375,13 @@ Section "Associate Spectrum .TZX and .Z80 files with ep128emu" SecAssocZX

SectionEnd

Section "Associate CPC .CDT, .DSK and .SNA files with ep128emu" SecAssocCPC
Section "Associate CPC .CDT and .SNA files with ep128emu" SecAssocCPC

WriteRegStr HKCR ".cdt" "" "Ep128Emu.CDTFile"
WriteRegStr HKCR "Ep128Emu.CDTFile" "" "Ep128Emu CPC tape file"
WriteRegStr HKCR "Ep128Emu.CDTFile\DefaultIcon" "" "$INSTDIR\ep128emu.exe,2"
WriteRegStr HKCR "Ep128Emu.CDTFile\shell" "" "open"
WriteRegStr HKCR "Ep128Emu.CDTFile\shell\open\command" "" '"$INSTDIR\ep128emu.exe" -cpc "tape.imageFile=%1"'
WriteRegStr HKCR ".dsk" "" "Ep128Emu.DSKFile"
WriteRegStr HKCR "Ep128Emu.DSKFile" "" "Ep128Emu CPC disk image"
WriteRegStr HKCR "Ep128Emu.DSKFile\DefaultIcon" "" "$INSTDIR\ep128emu.exe,2"
WriteRegStr HKCR "Ep128Emu.DSKFile\shell" "" "open"
WriteRegStr HKCR "Ep128Emu.DSKFile\shell\open\command" "" '"$INSTDIR\ep128emu.exe" -cpc "floppy.a.imageFile=%1"'
WriteRegStr HKCR ".sna" "" "Ep128Emu.SNAFile"
WriteRegStr HKCR "Ep128Emu.SNAFile" "" "Ep128Emu CPC snapshot file"
WriteRegStr HKCR "Ep128Emu.SNAFile\DefaultIcon" "" "$INSTDIR\ep128emu.exe,2"
Expand All @@ -395,6 +390,26 @@ Section "Associate CPC .CDT, .DSK and .SNA files with ep128emu" SecAssocCPC

SectionEnd

Section /o "Associate CPC .DSK files with ep128emu" SecAssocDiskCPC

WriteRegStr HKCR ".dsk" "" "Ep128Emu.CPCDiskFile"
WriteRegStr HKCR "Ep128Emu.CPCDiskFile" "" "Ep128Emu CPC disk image"
WriteRegStr HKCR "Ep128Emu.CPCDiskFile\DefaultIcon" "" "$INSTDIR\ep128emu.exe,2"
WriteRegStr HKCR "Ep128Emu.CPCDiskFile\shell" "" "open"
WriteRegStr HKCR "Ep128Emu.CPCDiskFile\shell\open\command" "" '"$INSTDIR\ep128emu.exe" -cpc "floppy.a.imageFile=%1"'

SectionEnd

Section /o "Associate TVC .DSK files with ep128emu" SecAssocDiskTVC

WriteRegStr HKCR ".dsk" "" "Ep128Emu.TVCDiskFile"
WriteRegStr HKCR "Ep128Emu.TVCDiskFile" "" "Ep128Emu TVC disk image"
WriteRegStr HKCR "Ep128Emu.TVCDiskFile\DefaultIcon" "" "$INSTDIR\ep128emu.exe,3"
WriteRegStr HKCR "Ep128Emu.TVCDiskFile\shell" "" "open"
WriteRegStr HKCR "Ep128Emu.TVCDiskFile\shell\open\command" "" '"$INSTDIR\ep128emu.exe" -tvc "floppy.a.imageFile=%1"'

SectionEnd

Section "Download and install ROM images" SecDLRoms

SetOutPath "$INSTDIR\roms"
Expand Down Expand Up @@ -455,7 +470,9 @@ SectionEnd
LangString DESC_SecSrc ${LANG_ENGLISH} "ep128emu source code"
LangString DESC_SecAssocFiles ${LANG_ENGLISH} "Associate snapshot and demo files with ep128emu"
LangString DESC_SecAssocZX ${LANG_ENGLISH} "Associate Spectrum .TZX and .Z80 files with ep128emu"
LangString DESC_SecAssocCPC ${LANG_ENGLISH} "Associate CPC .CDT, .DSK and .SNA files with ep128emu"
LangString DESC_SecAssocCPC ${LANG_ENGLISH} "Associate CPC .CDT and .SNA files with ep128emu"
LangString DESC_SecAssocDiskCPC ${LANG_ENGLISH} "Associate CPC .DSK files with ep128emu"
LangString DESC_SecAssocDiskTVC ${LANG_ENGLISH} "Associate TVC .DSK files with ep128emu"
LangString DESC_SecDLRoms ${LANG_ENGLISH} "Download and install ROM images"
LangString DESC_SecInstCfg ${LANG_ENGLISH} "Install configuration files"
LangString DESC_SecUtils ${LANG_ENGLISH} "Install epimgconv and other utilities"
Expand All @@ -467,6 +484,8 @@ SectionEnd
!insertmacro MUI_DESCRIPTION_TEXT ${SecAssocFiles} $(DESC_SecAssocFiles)
!insertmacro MUI_DESCRIPTION_TEXT ${SecAssocZX} $(DESC_SecAssocZX)
!insertmacro MUI_DESCRIPTION_TEXT ${SecAssocCPC} $(DESC_SecAssocCPC)
!insertmacro MUI_DESCRIPTION_TEXT ${SecAssocDiskCPC} $(DESC_SecAssocDiskCPC)
!insertmacro MUI_DESCRIPTION_TEXT ${SecAssocDiskTVC} $(DESC_SecAssocDiskTVC)
!insertmacro MUI_DESCRIPTION_TEXT ${SecDLRoms} $(DESC_SecDLRoms)
!insertmacro MUI_DESCRIPTION_TEXT ${SecInstCfg} $(DESC_SecInstCfg)
!insertmacro MUI_DESCRIPTION_TEXT ${SecUtils} $(DESC_SecUtils)
Expand Down

0 comments on commit 97ee7ff

Please sign in to comment.