Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan full file for MD5 hash to pick up all Ogre changes. #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

skittles1
Copy link
Contributor

Scanning only the first 1024 bytes was causing some Ogre file changes not
to be detected (e.g. alterations in a large text file that don't change file length).

The whole file is now hashed, and the filename salting has been removed.
This is the same method used in the new Ogre updater, and is as fast or
faster than the existing method of scanning (code used is directly from the
Ogre updater).

If you decide to use this change to the patcher we should coordinate the
release so 112 can update their patchinfo.txt at the same time.

Scanning the first 1024 bytes was causing some Ogre file changes not to
be detected (e.g. alterations in a large text file that don't alter
length).

The whole file is now hashed, and the filename salting has been removed.
This is the same method used in the new Ogre updater, and is as fast or
faster than the existing method of scanning (code used is directly from
the Ogre updater).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant