JVCL Help:TJvPatchFile.IsPatched

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Checks a file to determine if it may have already been patched.


Pascal

 functionIsPatched(constFileName: string): Boolean;


Parameters

Parameters Description
const FileName: string File to check for updated content.


Return Value

Boolean - True when the file appears to have been patched.


Description

IsPatched is a Boolean function used to indicate if patches in the Differences property have already been applied using the Patch method. IsPatched performs a rudimentary test for the file specified in Filename; the file must exist and its' size is examine to determine if it matches the size stored in the Differences property. It does not perform any in-depth comparison of the contents with the file specified in StartFile.
IsPatched returns False when Filename cannot be located, Differences contains an invalid format, or when the size of the file in Filename differs from the value for the patched file in Differences.


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page