1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Obliterate hsBool

This commit is contained in:
2012-07-11 01:28:00 -04:00
parent 5f78b33db4
commit a709e17069
1041 changed files with 7889 additions and 8070 deletions

View File

@ -274,7 +274,7 @@ void RegisterFileTypes( HWND mainWnd )
// Check our file extensions
char prpAssoc[ 512 ];
hsBool needToRegister = true;
bool needToRegister = true;
if( plWinRegistryTools::GetCurrentFileExtensionAssociation( ".prp", prpAssoc, sizeof( prpAssoc ) ) )
{
if( strcmp( prpAssoc, "PlasmaPackFile" ) == 0 )

View File

@ -137,7 +137,7 @@ class plResDlgLoader : public plRegistryPageIterator, public plRegistryKeyIterat
((plResManager *)hsgResMgr::ResMgr())->IterateAllPages( this );
}
virtual hsBool EatPage( plRegistryPageNode *page )
virtual bool EatPage( plRegistryPageNode *page )
{
char str[ 512 ];
@ -153,7 +153,7 @@ class plResDlgLoader : public plRegistryPageIterator, public plRegistryKeyIterat
return true;
}
virtual hsBool EatKey( const plKey& key )
virtual bool EatKey( const plKey& key )
{
if( fCurrType != key->GetUoid().GetClassType() )
{
@ -366,7 +366,7 @@ void plResTreeView::VerifyCurrentPage( HWND treeCtrl )
void plResTreeView::UpdateInfoDlg( HWND treeCtrl )
{
hsBool showAsHex = (hsBool)IsDlgButtonChecked( fInfoDlg, IDC_SHOWASHEX );
bool showAsHex = (bool)IsDlgButtonChecked( fInfoDlg, IDC_SHOWASHEX );
SetDlgItemText( fInfoDlg, IDC_NAME, "" );
SetDlgItemText( fInfoDlg, IDC_CLASS, "" );

View File

@ -61,7 +61,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
// Sets the given registry key to the given string value. If valueName = nil,
// sets the (default) value
static hsBool ISetRegKey( const char *keyName, const char *value, const char *valueName = nil )
static bool ISetRegKey( const char *keyName, const char *value, const char *valueName = nil )
{
HKEY regKey;
DWORD result;
@ -107,7 +107,7 @@ static hsBool ISetRegKey( const char *keyName, const char *value, const char *
// |--- command (value = command line)
//
hsBool plWinRegistryTools::AssociateFileType( const char *fileTypeID, const char *fileTypeName, const char *appPath, int iconIndex )
bool plWinRegistryTools::AssociateFileType( const char *fileTypeID, const char *fileTypeName, const char *appPath, int iconIndex )
{
char keyName[ 512 ], keyValue[ 512 ];
@ -147,7 +147,7 @@ hsBool plWinRegistryTools::AssociateFileType( const char *fileTypeID, const cha
// where fileExtension includes the leading . and fileTypeID is the same
// typeID registered with the above function
hsBool plWinRegistryTools::AssociateFileExtension( const char *fileExtension, const char *fileTypeID )
bool plWinRegistryTools::AssociateFileExtension( const char *fileExtension, const char *fileTypeID )
{
return ISetRegKey( fileExtension, fileTypeID );
}
@ -156,7 +156,7 @@ hsBool plWinRegistryTools::AssociateFileExtension( const char *fileExtension, c
// Obtains the current fileTypeID associated with the given file extension,
// or a null string if it isn't yet associated.
hsBool plWinRegistryTools::GetCurrentFileExtensionAssociation( const char *extension, char *buffer, int bufferLen )
bool plWinRegistryTools::GetCurrentFileExtensionAssociation( const char *extension, char *buffer, int bufferLen )
{
long dataLen;

View File

@ -56,13 +56,13 @@ class plWinRegistryTools
public:
// Associates a given file type in the Win32 registry with the given application. Also assigns a default icon if iconIndex != -1
static hsBool AssociateFileType( const char *fileTypeID, const char *fileTypeName, const char *appPath, int iconIndex = -1 );
static bool AssociateFileType( const char *fileTypeID, const char *fileTypeName, const char *appPath, int iconIndex = -1 );
// Assigns a given file extension to a previously registered Win32 file type (using the above function)
static hsBool AssociateFileExtension( const char *fileExtension, const char *fileTypeID );
static bool AssociateFileExtension( const char *fileExtension, const char *fileTypeID );
// Obtains the current fileTypeID associated with the given file extension, or a null string if it isn't yet associated
static hsBool GetCurrentFileExtensionAssociation( const char *extension, char *buffer, int bufferLen );
static bool GetCurrentFileExtensionAssociation( const char *extension, char *buffer, int bufferLen );
};
#endif //_plWinRegistryTools_h