forked from Mirrors/openclonk
Remove .c4k icon
parent
c69e2c9248
commit
085acf3d9a
|
@ -58,15 +58,11 @@ bool SetC4FileClasses(const char *szEnginePath)
|
|||
if (!SetRegFileClass("Clonk4.Binary", "c4b", "Clonk 4 Binary", szEnginePath, 8, "application/octet-stream")) return false;
|
||||
if (!SetRegFileClass("Clonk4.Video", "c4v", "Clonk 4 Video", szEnginePath, 9, "video/avi")) return false;
|
||||
if (!SetRegFileClass("Clonk4.Weblink", "c4l", "Clonk 4 Weblink", szEnginePath, 10, C4FileClassContentType)) return false;
|
||||
if (!SetRegFileClass("Clonk4.Key", "c4k", "Clonk 4 Key", szEnginePath, 11, "application/octet-stream")) return false;
|
||||
if (!SetRegFileClass("Clonk4.Update", "c4u", "Clonk 4 Update", szEnginePath, 12, C4FileClassContentType)) return false;
|
||||
if (!SetRegFileClass("Clonk4.Update", "c4u", "Clonk 4 Update", szEnginePath, 11, C4FileClassContentType)) return false;
|
||||
|
||||
if (!SetProtocol("clonk", "%s %%1 /Fullscreen", szEnginePath)) return false;
|
||||
|
||||
char strCommand[2048];
|
||||
// c4k installation: send to engine
|
||||
sprintf(strCommand, "\"%s\" \"%%1\"", szEnginePath);
|
||||
if (!SetRegShell("Clonk4.Key", "Register", "Register", strCommand)) return false;
|
||||
// c4u application: send to engine
|
||||
sprintf(strCommand, "\"%s\" \"%%1\"", szEnginePath);
|
||||
if (!SetRegShell("Clonk4.Update", "Update", "Update", strCommand, true)) return false;
|
||||
|
|
BIN
src/res/c4k.ico
BIN
src/res/c4k.ico
Binary file not shown.
Before Width: | Height: | Size: 25 KiB |
|
@ -42,7 +42,6 @@ IDI_08_C4M ICON DISCARDABLE "c4m.ico"
|
|||
IDI_09_C4B ICON DISCARDABLE "c4b.ico"
|
||||
IDI_10_C4V ICON DISCARDABLE "c4v.ico"
|
||||
IDI_11_C4L ICON DISCARDABLE "c4l.ico"
|
||||
IDI_12_C4K ICON DISCARDABLE "c4k.ico"
|
||||
IDI_13_C4U ICON DISCARDABLE "c4u.ico"
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
|
|
|
@ -69,7 +69,6 @@
|
|||
#define IDI_09_C4B 4009
|
||||
#define IDI_10_C4V 4010
|
||||
#define IDI_11_C4L 4011
|
||||
#define IDI_12_C4K 4012
|
||||
#define IDI_13_C4U 4013
|
||||
#define IDM_FILE_CLOSE 5003
|
||||
#define IDM_FILE_OPEN 5004
|
||||
|
|
|
@ -123,8 +123,6 @@ Section -Post
|
|||
WriteRegStr HKCR ".c4v\Content Type" "" "video/avi"
|
||||
WriteRegStr HKCR ".c4l" "" "Clonk4.Weblink"
|
||||
WriteRegStr HKCR ".c4l\Content Type" "" "vnd.clonk.c4group"
|
||||
WriteRegStr HKCR ".c4k" "" "Clonk4.Key"
|
||||
WriteRegStr HKCR ".c4k\Content Type" "" "application/octet-stream"
|
||||
WriteRegStr HKCR ".c4u" "" "Clonk4.Update"
|
||||
WriteRegStr HKCR ".c4u\Content Type" "" "vnd.clonk.c4group"
|
||||
; Register file classes
|
||||
|
@ -148,13 +146,9 @@ Section -Post
|
|||
WriteRegStr HKCR "Clonk4.Video\DefaultIcon" "" "$INSTDIR\Clonk.exe,9"
|
||||
WriteRegStr HKCR "Clonk4.Weblink" "" "Clonk 4 Weblink"
|
||||
WriteRegStr HKCR "Clonk4.Weblink\DefaultIcon" "" "$INSTDIR\Clonk.exe,10"
|
||||
WriteRegStr HKCR "Clonk4.Key" "" "Clonk 4 Key"
|
||||
WriteRegStr HKCR "Clonk4.Key\DefaultIcon" "" "$INSTDIR\Clonk.exe,11"
|
||||
WriteRegStr HKCR "Clonk4.Update" "" "Clonk 4 Update"
|
||||
WriteRegStr HKCR "Clonk4.Update\DefaultIcon" "" "$INSTDIR\Clonk.exe,12"
|
||||
WriteRegStr HKCR "Clonk4.Update\DefaultIcon" "" "$INSTDIR\Clonk.exe,11"
|
||||
; Register additional file handling
|
||||
WriteRegStr HKCR "Clonk4.Key\Shell\Register" "" "Register"
|
||||
WriteRegStr HKCR "Clonk4.Key\Shell\Register\Command" "" "$\"$INSTDIR\Clonk.exe$\" $\"%1$\""
|
||||
WriteRegStr HKCR "Clonk4.Update\Shell\Update" "" "Update"
|
||||
WriteRegStr HKCR "Clonk4.Update\Shell\Update\Command" "" "$\"$INSTDIR\Clonk.exe$\" $\"%1$\""
|
||||
; Remove old use of App Paths
|
||||
|
@ -221,8 +215,6 @@ Section Uninstall
|
|||
DeleteRegKey HKCR "Clonk4.Video"
|
||||
DeleteRegKey HKCR ".c4l"
|
||||
DeleteRegKey HKCR "Clonk4.Weblink"
|
||||
DeleteRegKey HKCR ".c4k"
|
||||
DeleteRegKey HKCR "Clonk4.Key"
|
||||
DeleteRegKey HKCR ".c4u"
|
||||
DeleteRegKey HKCR "Clonk4.Update"
|
||||
|
||||
|
|
Loading…
Reference in New Issue