Know the time when a file was created

0 favourites
  • 3 posts
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • Hello.

    Is it possible to know when the files were created with NW.js ?, I mean the date / time the files were created.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I believe you can fetch current time and date using the expression Browser.ExecJS("Date()")

  • I believe you can fetch current time and date using the expression Browser.ExecJS("Date()")

    Ok, problem solved, thanks.

    I needed to know that because my game generates two similar types of data.

    1 - The data of the session

    2 - the saved game data

    When the player saves the game, the session data is now converted to saved game data.

    Then I need to prevent the player from manually copying the data from a session and paste it into the saved data folder.

    So to fix this, when loading a game I need to verify that the data in the saved game folder was created at the correct time. If the data does not match the time it means that the files are copied by the user.

    Any alternative way to do this?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)