forked from hendrikp/Plugin_SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
444 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Plugin_SDK_1.1.0.0.exe | ||
https://github.com/downloads/hendrikp/Plugin_SDK/Plugin_SDK_1.1.0.0.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
; Plugin SDK - for licensing and copyright see license.txt | ||
|
||
; Macros to support downloading and executing plugin installers | ||
|
||
!macro DownloadAndExecuteLatestPluginInstaller dlsource dlcommand dlparam | ||
; Pluginfo file | ||
StrCpy $3 "$PLUGINDOWNLOADDIR\plugindl.info" | ||
|
||
; Cleanup last tempfile | ||
IfFileExists $3 0 +2 | ||
Delete $3 | ||
|
||
; Download | ||
inetc::get ${dlsource} $3 /END | ||
Pop $R0 ; Get the return value | ||
StrCmp $R0 "OK" +3 | ||
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST|MB_SETFOREGROUND "Failed to get Plugin Information:$\n${dlsource}$\n$R0" | ||
Goto skipplugin | ||
|
||
; Check if File exists | ||
IfFileExists $3 +3 0 | ||
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST|MB_SETFOREGROUND "Plugin Information not present:$\n${dlsource}$\n$R0" | ||
Goto skipplugin | ||
|
||
; Read Plugin Information | ||
ClearErrors | ||
StrCpy $1 "" | ||
StrCpy $2 "" | ||
FileOpen $0 $3 r | ||
IfErrors +5 | ||
FileRead $0 $1 | ||
IfErrors +2 | ||
FileRead $0 $2 | ||
FileClose $0 | ||
|
||
; Check Errors | ||
StrCmp $2 "" 0 +3 | ||
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST|MB_SETFOREGROUND "Failed to read Plugin Information:$\n$3" | ||
Goto skipplugin | ||
|
||
; Install | ||
DetailPrint "Downloading Plugin: $1" | ||
!insertmacro DownloadAndExecutePluginInstaller "$1" "$PLUGINDOWNLOADDIR\$2" ${dlcommand} "${dlparam}" | ||
|
||
skipplugin: | ||
ClearErrors | ||
!macroend | ||
|
||
!macro DownloadAndExecutePluginInstaller dlsource dltarget dlcommand dlparam | ||
; Download | ||
inetc::get ${dlsource} ${dltarget} /END | ||
Pop $R0 ; Get the return value | ||
StrCmp $R0 "OK" +3 | ||
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST|MB_SETFOREGROUND "Plugin Download failed:$\n${dlsource}$\n$R0" | ||
Goto +4 | ||
${dlcommand} '${dltarget} ${dlparam}"$INSTDIR"' | ||
IfErrors 0 +2 | ||
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST|MB_SETFOREGROUND "Plugin Installation failed:$\n${dltarget}" | ||
ClearErrors | ||
!macroend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
; Plugin SDK - for licensing and copyright see license.txt | ||
|
||
; Contains the plugin descriptions | ||
|
||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_PLUGINS} "Plugins that can be installed automatically also Plugin SDK for more avaible Plugins.$\n$\nReview the licenses of the Plugins!" | ||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_PLUGINS} "The latest plugins that can be installed automatically. For more available Plugins visit Crydev.$\n$\nReview the licenses of the Plugins!" | ||
|
||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_PLUGIN_VIDEOPLAYER} "Videoplayer for 2D screen and 3D objects using WebM format, requires D3D Plugin" | ||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_PLUGIN_VIDEOPLAYER_MAIN} "Plugin for Users, Designers and Developers" | ||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_PLUGIN_VIDEOPLAYER_SAMPLES} "Usage Samples for Designers and Developers" | ||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_PLUGIN_OSC} "Open Sound Control protocol support for integrating external applications / sound hardware" | ||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_PLUGIN_FLITE} "Provides Text to Speech" | ||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_PLUGIN_FLITE} "Provides Text to Speech Commands and Flownodes" | ||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_PLUGIN_D3D} "Exposes Direct3D 9 and 11 functionality, also access to the renderthread" | ||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_PLUGIN_JOYSTICK} "Adds Joystick/Controllers as Flownode Input node" | ||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_PLUGIN_JOYSTICK} "Adds Joystick / Controllers as Flownode Input node" | ||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_PLUGIN_CRASH} "Crashes the process and serves as sample plugin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,48 @@ | ||
; Plugin SDK - for licensing and copyright see license.txt | ||
|
||
; Contains the plugins that can be downloaded by the Plugin SDK installer | ||
; The files need to be executable nsis installers | ||
; msi or other installers is also possible but may require custom parameters | ||
|
||
Section "Videoplayer 1.7" SEC_PLUGIN_VIDEOPLAYER | ||
!insertmacro DownloadAndExecutePluginInstaller "https://github.com/downloads/hendrikp/Plugin_Videoplayer/Plugin_Videoplayer_1.6.2.zip" "$PLUGINDOWNLOADDIR\Plugin_Videoplayer_1.6.2.zip" | ||
!insertmacro DownloadAndExecutePluginInstaller "https://github.com/downloads/hendrikp/Plugin_Videoplayer/Plugin_Videoplayer_1.6.2_Samples.zip" "$PLUGINDOWNLOADDIR\Plugin_Videoplayer_1.6.2_Samples.zip" | ||
SectionEnd | ||
; .info file description | ||
; First line: Filename Installer with Version string (will get stored in the Plugin SDK Download directory) | ||
; e.g. Plugin_Videoplayer_1.7.0.0.exe | ||
; Second line: Source URL (http/https and 301 redirects supported) | ||
; e.g. https://github.com/downloads/hendrikp/Plugin_Videoplayer/Plugin_Videoplayer_1.7.0.0.exe | ||
|
||
SectionGroup "Videoplayer" SEC_PLUGIN_VIDEOPLAYER | ||
Section /o "Plugin" SEC_PLUGIN_VIDEOPLAYER_MAIN | ||
AddSize 1500 | ||
!insertmacro DownloadAndExecuteLatestPluginInstaller "https://raw.github.com/hendrikp/Plugin_Videoplayer/master/latestredist.info" ExecWait "/S /D=" | ||
SectionEnd | ||
|
||
Section /o "Samples" SEC_PLUGIN_VIDEOPLAYER_SAMPLES | ||
AddSize 54000 | ||
!insertmacro DownloadAndExecuteLatestPluginInstaller "https://raw.github.com/hendrikp/Plugin_Videoplayer/master/latestsamples.info" ExecWait "/S /D=" | ||
SectionEnd | ||
SectionGroupEnd | ||
|
||
Section "OSC 1.1" SEC_PLUGIN_OSC | ||
Section /o "OSC" SEC_PLUGIN_OSC | ||
AddSize 500 | ||
!insertmacro DownloadAndExecuteLatestPluginInstaller "https://raw.github.com/hendrikp/Plugin_OSC/master/latestredist.info" ExecWait "/S /D=" | ||
SectionEnd | ||
|
||
Section "Flite 1.1" SEC_PLUGIN_FLITE | ||
Section /o "Flite" SEC_PLUGIN_FLITE | ||
AddSize 14000 | ||
!insertmacro DownloadAndExecuteLatestPluginInstaller "https://raw.github.com/hendrikp/Plugin_Flite/master/latestredist.info" ExecWait "/S /D=" | ||
SectionEnd | ||
|
||
Section "D3D 1.7" SEC_PLUGIN_D3D | ||
Section /o "D3D" SEC_PLUGIN_D3D | ||
AddSize 200 | ||
!insertmacro DownloadAndExecuteLatestPluginInstaller "https://raw.github.com/hendrikp/Plugin_D3D/master/latestredist.info" ExecWait "/S /D=" | ||
SectionEnd | ||
|
||
Section "Joystick 1.1" SEC_PLUGIN_JOYSTICK | ||
Section /o "Joystick" SEC_PLUGIN_JOYSTICK | ||
AddSize 200 | ||
!insertmacro DownloadAndExecuteLatestPluginInstaller "https://raw.github.com/hendrikp/Plugin_Joystick/master/latestredist.info" ExecWait "/S /D=" | ||
SectionEnd | ||
|
||
Section "Crash 1.1" SEC_PLUGIN_CRASH | ||
Section /o "Crash" SEC_PLUGIN_CRASH | ||
AddSize 200 | ||
!insertmacro DownloadAndExecuteLatestPluginInstaller "https://raw.github.com/hendrikp/Plugin_Crash/master/latestredist.info" ExecWait "/S /D=" | ||
SectionEnd |
Oops, something went wrong.