mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
* More unused stuff removal
delete:
- giant 'metaheaders' (JA2 All.h, Laptop All.h, etc), preferring to add #includes directly where needed
- unused ExceptionHandling and DbMan translation units
- unused WizShare.h, Bitmap.h, trle.h, video_private.h headers
* remove mentions from vc proj files too
* remove preprocessor conditionals for unused definitions
find . -iname '*.h' -o -iname '*.cpp' -exec unifdef.exe -m -UPRECOMPILED_HEADERS -UJA2_PRECOMPILED_HEADERS -UWIZ8_PRECOMPILED_HEADERS -UPRECOMPILEDHEADERS {} ';'
then manually fixed a couple files the tool errored out on
* yes, the comments too
as title
57 lines
1.4 KiB
C++
57 lines
1.4 KiB
C++
//**************************************************************************
|
|
//
|
|
// Filename : Install.c
|
|
//
|
|
// Purpose : install routines
|
|
//
|
|
// Modification history :
|
|
//
|
|
// 02dec96:HJH - Creation
|
|
//
|
|
//**************************************************************************
|
|
|
|
//**************************************************************************
|
|
//
|
|
// Includes
|
|
//
|
|
//**************************************************************************
|
|
|
|
#include "types.h"
|
|
#include <windows.h>
|
|
#include "Install.h"
|
|
#include "RegInst.h"
|
|
|
|
//**************************************************************************
|
|
//
|
|
// Defines
|
|
//
|
|
//**************************************************************************
|
|
|
|
//**************************************************************************
|
|
//
|
|
// Typedefs
|
|
//
|
|
//**************************************************************************
|
|
|
|
//**************************************************************************
|
|
//
|
|
// Functions
|
|
//
|
|
//**************************************************************************
|
|
|
|
BOOLEAN InstallApplication( STR strAppname, STR strPath )
|
|
{
|
|
HKEY hKey;
|
|
BOOL fRet = TRUE;
|
|
|
|
hKey = GetAppRegistryKey();
|
|
RegCloseKey( hKey );
|
|
|
|
//hKeySection = GetSectionKey("Startup");
|
|
//RegCloseKey( hKeySection );
|
|
|
|
fRet = fRet && WriteProfileChar( "Startup", "InstPath", strPath );
|
|
|
|
return(fRet);
|
|
}
|