mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Updated gitignore and Engine/bin for ticket #1
This commit is contained in:
parent
1cca6c95f2
commit
08d5ba86f7
593 changed files with 72474 additions and 0 deletions
62
Engine/bin/tools/nsis/app/Examples/VPatch/example.nsi
Normal file
62
Engine/bin/tools/nsis/app/Examples/VPatch/example.nsi
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
;VPatch example
|
||||
;Written by Joost Verburg
|
||||
|
||||
;--------------------------------
|
||||
|
||||
; The name of the installer
|
||||
Name "VPatch Test"
|
||||
|
||||
; The file to write
|
||||
OutFile "vpatchtest.exe"
|
||||
|
||||
; The default installation directory
|
||||
InstallDir "$PROGRAMFILES\VPatch Test"
|
||||
|
||||
; The text to prompt the user to enter a directory
|
||||
DirText "Choose a folder in which to install the VPatch Test!"
|
||||
|
||||
; Show details
|
||||
ShowInstDetails show
|
||||
|
||||
;--------------------------------
|
||||
; The normal way to use VPatch
|
||||
;--------------------------------
|
||||
!include "VPatchLib.nsh"
|
||||
|
||||
Section "Update file"
|
||||
; Set output path to the installation directory
|
||||
SetOutPath $INSTDIR
|
||||
|
||||
; Extract the old file under name 'updatefile.txt'
|
||||
File /oname=updatefile.txt oldfile.txt
|
||||
|
||||
; Update the file - it will be replaced with the new version
|
||||
DetailPrint "Updating updatefile.txt using patch..."
|
||||
!insertmacro VPatchFile "patch.pat" "$INSTDIR\updatefile.txt" "$INSTDIR\temporaryfile.txt"
|
||||
|
||||
SectionEnd
|
||||
|
||||
;-------------------------------
|
||||
; The hard way to use VPatch
|
||||
;-------------------------------
|
||||
Section "New version in separate file"
|
||||
|
||||
; Set output path to the installation directory
|
||||
SetOutPath $INSTDIR
|
||||
|
||||
; Extract the old file
|
||||
File oldfile.txt
|
||||
|
||||
; Extract the patch to the plug-ins folder (temporary)
|
||||
InitPluginsDir
|
||||
File /oname=$PLUGINSDIR\patch.pat patch.pat
|
||||
|
||||
; Update the old file to the new file using the patch
|
||||
DetailPrint "Updating oldfile.txt using patch to newfile.txt..."
|
||||
vpatch::vpatchfile "$PLUGINSDIR\patch.pat" "$INSTDIR\oldfile.txt" "$INSTDIR\newfile.txt"
|
||||
|
||||
; Show result
|
||||
Pop $R0
|
||||
DetailPrint "Result: $R0"
|
||||
|
||||
SectionEnd
|
||||
6
Engine/bin/tools/nsis/app/Examples/VPatch/newfile.txt
Normal file
6
Engine/bin/tools/nsis/app/Examples/VPatch/newfile.txt
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
*** THIS IS A TEST FILE FOR THE VPATCH EXAMPLE ***
|
||||
*** COMPILE EXAMPLE.NSI TO TEST ***
|
||||
|
||||
newfile - vpatch
|
||||
|
||||
67890 - GHIJKL
|
||||
6
Engine/bin/tools/nsis/app/Examples/VPatch/oldfile.txt
Normal file
6
Engine/bin/tools/nsis/app/Examples/VPatch/oldfile.txt
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
*** THIS IS A TEST FILE FOR THE VPATCH EXAMPLE ***
|
||||
*** COMPILE EXAMPLE.NSI TO TEST ***
|
||||
|
||||
oldfile - vpatch
|
||||
|
||||
12345 - ABCDEF
|
||||
BIN
Engine/bin/tools/nsis/app/Examples/VPatch/patch.pat
Normal file
BIN
Engine/bin/tools/nsis/app/Examples/VPatch/patch.pat
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue