GetFileTime does not update?

About Monkey 2 Forums Monkey 2 Development GetFileTime does not update?

This topic contains 2 replies, has 2 voices, and was last updated by  Hezkore 1 year, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7921

    Hezkore
    Participant

    I’m trying to use GetFileTime to detect changes to some files while my app is running.
    But it seems GetFileTime only works once, then it just reuses the same value on the next call.
    Is this a bug or working as intended?
    And is there any other way I can detect changes to the files while my app is running?

    #8047

    Mark Sibly
    Keymaster

    GetFileTime should return the time the file was last modified – if you don’t modify the file, it wont change!

    Seems to work OK as mx2cc uses it often and if it didn’t nothing would build properly!

    #8048

    Hezkore
    Participant

    Yeah it seems very random…
    The same test I’ve used all along, which previously has not worked on this machine, now works.
    The game I’m building which checks if files have changed, still doesn’t work, and it doesn’t work on any of my machines.
    I’m trying to track down what’s causing it.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.