Programs usually call the OpenLibrary function. This function does all the version checking. It first checks whether the library has been opened before. If it's already open, it uses that copy and just increases the use count. But if the library has not been opened before, it first checks if there is a newer version on disk before it uses the one in ROM.
|