Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://skyegg.com/svn/lore/hermit/trunk@13 12dc96f5-e900-0410-8a1c-9bb6d65b53e4
- Loading branch information
1 parent
6cfe3d0
commit f7337de
Showing
134 changed files
with
15,247 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
; Generated NSIS script file (generated by makensitemplate.phtml 0.21) | ||
; by 209.246.42.114 on Jul 06 02 @ 17:20 | ||
|
||
; NOTE: this .NSI script is designed for NSIS v1.8+ | ||
|
||
Name "Hermit" | ||
OutFile "Hermit1.3.exe" | ||
|
||
; Some default compiler settings (uncomment and change at will): | ||
; SetCompress auto ; (can be off or force) | ||
; SetDatablockOptimize on ; (can be off) | ||
; CRCCheck on ; (can be off) | ||
; AutoCloseWindow false ; (can be true for the window go away automatically at end) | ||
; ShowInstDetails hide ; (can be show to have them shown, or nevershow to disable) | ||
SetDateSave on ; (can be on to have files restored to their orginal date) | ||
|
||
LicenseText "You must agree to this license before installing." | ||
LicenseData "hermit\license.txt" | ||
|
||
InstallDir "$PROGRAMFILES\Hermit" | ||
InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Lore\Hermit" "" | ||
DirShow show ; (make this hide to not let the user change it) | ||
DirText "Select the directory to install Hermit in:" | ||
|
||
InstType "Typical" | ||
ComponentText "Select what you wish to install." | ||
|
||
Section "Hermit" ; (default section) | ||
SetOutPath "$INSTDIR" | ||
; add files / whatever that need to be installed here. | ||
File hermit\Release\Hermit.exe | ||
File hermit\hermit.ico | ||
File hermit\license.txt | ||
File hermit\relnotes.txt | ||
File hermit\hermit.txt | ||
File hermit\hermit.9x | ||
File hermit\hermit.nt | ||
SectionEnd ; end of default section | ||
|
||
Section "Desktop Icon" | ||
SectionIn 1 ; (uncomment and change this to add it to install types) | ||
SetOutPath "$INSTDIR" | ||
; Add optional commands here | ||
CreateShortCut "$DESKTOP\Hermit.lnk" "$INSTDIR\Hermit.exe" "" "$INSTDIR\Hermit.exe" "0" SW_SHOWNORMAL "ALT|CONTROL|H" | ||
SectionEnd ; end of section 'Desktop Icon' | ||
|
||
Section "Add To Start Menu" | ||
SectionIn 1 ; (uncomment and change this to add it to install types) | ||
SetOutPath "$INSTDIR" | ||
; Add optional commands here | ||
CreateDirectory "$SMPROGRAMS\Hermit" | ||
CreateShortCut "$SMPROGRAMS\Hermit\Hermit.lnk" "$INSTDIR\Hermit.exe" "" "$INSTDIR\Hermit.exe" "0" SW_SHOWNORMAL "ALT|CONTROL|H" | ||
CreateShortCut "$SMPROGRAMS\Hermit\User's Guide.lnk" "$INSTDIR\hermit.txt" | ||
CreateShortCut "$SMPROGRAMS\Hermit\Release Notes.lnk" "$INSTDIR\relnotes.txt" | ||
CreateShortCut "$SMPROGRAMS\Hermit\License.lnk" "$INSTDIR\license.txt" | ||
SectionEnd ; end of section 'Add To Start Menu' | ||
|
||
Section "-post" ; (post install section, happens last after any optional sections) | ||
; add any commands that need to happen after any optional sections here | ||
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Lore\Hermit" "" "$INSTDIR" | ||
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Hermit" "DisplayName" "Hermit (remove only)" | ||
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Hermit" "UninstallString" '"$INSTDIR\uninst.exe"' | ||
; write out uninstaller | ||
WriteUninstaller "$INSTDIR\uninst.exe" | ||
SectionEnd ; end of -post section | ||
|
||
; begin uninstall settings/section | ||
UninstallText "This will uninstall Hermit from your system" | ||
|
||
Section Uninstall | ||
; add delete commands to delete whatever files/registry keys/etc you installed here. | ||
Delete "$INSTDIR\uninst.exe" | ||
Delete "$INSTDIR\Hermit.exe" | ||
Delete "$INSTDIR\hermit.ico" | ||
Delete "$INSTDIR\license.txt" | ||
Delete "$INSTDIR\relnotes.txt" | ||
Delete "$INSTDIR\hermit.txt" | ||
Delete "$INSTDIR\hermit.9x" | ||
Delete "$INSTDIR\hermit.nt" | ||
Delete "$DESKTOP\hermit.lnk" | ||
Delete "$SMPROGRAMS\Hermit\Hermit.lnk" | ||
Delete "$SMPROGRAMS\Hermit\User's Guide.lnk" | ||
Delete "$SMPROGRAMS\Hermit\Release Notes.lnk" | ||
Delete "$SMPROGRAMS\Hermit\License.lnk" | ||
RMDir "$SMPROGRAMS\Hermit" | ||
DeleteRegKey HKEY_CURRENT_USER "Software\Lore\Hermit" | ||
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Lore\Hermit" | ||
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Hermit" | ||
RMDir "$INSTDIR" | ||
SectionEnd ; end of uninstall section | ||
|
||
; eof |
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,45 @@ | ||
; Generated NSIS script file (generated by makensitemplate.phtml 0.21) | ||
; by 209.246.42.114 on Jul 06 02 @ 17:20 | ||
|
||
; NOTE: this .NSI script is designed for NSIS v1.8+ | ||
|
||
Name "HermitSource" | ||
OutFile "HermitSource1.3.exe" | ||
|
||
; Some default compiler settings (uncomment and change at will): | ||
; SetCompress auto ; (can be off or force) | ||
; SetDatablockOptimize on ; (can be off) | ||
; CRCCheck on ; (can be off) | ||
; AutoCloseWindow false ; (can be true for the window go away automatically at end) | ||
; ShowInstDetails hide ; (can be show to have them shown, or nevershow to disable) | ||
SetDateSave on ; (can be on to have files restored to their orginal date) | ||
|
||
;LicenseText "You must agree to this license before installing." | ||
;LicenseData "hermit\license.txt" | ||
|
||
InstallDir "Dev" | ||
;InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Lore\Hermit" "" | ||
DirShow show ; (make this hide to not let the user change it) | ||
DirText "Select the directory to install HermitSource in:" | ||
|
||
;InstType "Typical" | ||
;ComponentText "Select what you wish to install." | ||
|
||
Section "" ; (default section) | ||
SetOutPath "$INSTDIR" | ||
; add files / whatever that need to be installed here. | ||
File Hermit.nsi | ||
File HermitSource.nsi | ||
SetOutPath "$INSTDIR" | ||
File /r inc | ||
SetOutPath "$INSTDIR\Console" | ||
File Console\*.* | ||
SetOutPath "$INSTDIR\general" | ||
File general\*.* | ||
SetOutPath "$INSTDIR\tree" | ||
File tree\*.* | ||
SetOutPath "$INSTDIR\Hermit" | ||
File hermit\*.* | ||
SectionEnd ; end of default section | ||
|
||
; eof |
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,21 @@ | ||
======================================================================== | ||
STATIC LIBRARY : console Project Overview | ||
======================================================================== | ||
|
||
AppWizard has created this console library project for you. | ||
No source files were created as part of your project. | ||
|
||
|
||
console.vcproj | ||
This is the main project file for VC++ projects generated using an Application Wizard. | ||
It contains information about the version of Visual C++ that generated the file, and | ||
information about the platforms, configurations, and project features selected with the | ||
Application Wizard. | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
Other notes: | ||
|
||
AppWizard uses "TODO:" comments to indicate parts of the source code you | ||
should add to or customize. | ||
|
||
///////////////////////////////////////////////////////////////////////////// |
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,45 @@ | ||
// Ask Dialog | ||
// Copyright (C) 1996 Michael D. Lore All Rights Reserved | ||
|
||
#include <cstring> | ||
#include "console/askdlg.h" | ||
|
||
|
||
AskDialog::AskDialog (Screen& screen, const char *title, const char *text) : | ||
Popup (screen, (int) strlen (text) + 4, 7) | ||
{ | ||
drawBackground (); | ||
drawBorder (title); | ||
|
||
writeText (2, 2, text); | ||
drawField (2, 4, "Yes"); | ||
drawField (7, 4, "No"); | ||
} | ||
|
||
int AskDialog::processEvent (const Event& event) | ||
{ | ||
switch (event.key) { | ||
|
||
case KB_ESC: | ||
case 'N': | ||
case 'n': | ||
mExitKey = KB_ESC; | ||
postEvent (Event (EV_QUIT)); | ||
break; | ||
|
||
// case KB_ENTER: | ||
case 'Y': | ||
case 'y': | ||
mExitKey = KB_ENTER; | ||
postEvent (Event (EV_QUIT)); | ||
break; | ||
|
||
default: | ||
return Popup::processEvent (event); | ||
} | ||
|
||
return 1; | ||
} | ||
|
||
|
||
// End |
Oops, something went wrong.