Comments (6)
I made a pull request for hxcpp:
It's possible it won't be merged. If that's the case, we may need to expose a C++ function from Lime instead.
Neko and HashLink seem to use the same inaccurate value from the stat syscall. I tried building both runtimes on macOS, but the builds failed on my machine (I've successfully built HashLink on this machine in the past, but there seems to be an issue with the latest mbedtls library from Homebrew, and I can't see how to downgrade it to whatever the older version was).
from openfl.
It appears that Haxe's sys.FileSystem.stat()
is returning the wrong value for FileStat.ctime
on macOS.
Comparing it to what Finder reports, Haxe's creation time is the same as the "Last opened" time.
from openfl.
I've determined that the same behavior applies to Linux. Apparently, the POSIX standard did not historically require file systems to track a file's creation time at all, and the stat
syscall used to get information about a file does not provide that information. It provides a few other timestamps, but those are different. At best, it provides a "status change time" which was historically recommended as the next best thing to creation time, but it appears that it is often not the same as the creation time.
macOS provides a (EDIT: nope, deprecated) macOS extends the stat64
syscall that includes more information, including the creation time.stat
struct to add a st_birthtime
field. I might be able to patch hxcpp to use this instead.
Newer Linux file systems store the creation time, but I had difficulty determining if there's an appropriate new syscall in Linux to use to get this information.
from openfl.
And I created an issue for HashLink: HaxeFoundation/hashlink#619
from openfl.
Was there any update on this @joshtynjala , is it yet available to any develop branch (?)
from openfl.
@rat-moonshine Nothing has been merged into our dependencies, so the behavior remains the same.
from openfl.
Related Issues (20)
- [HTML5] Unable load the raw bytes of a sound file. HOT 4
- [Flash] Type coercion failure when loading maps from SharedObject HOT 1
- [HashLink] Explicit cast from the OpenGLRenderer class HOT 2
- HTML5: openfl.display.Graphics.drawGraphicsData() does not correctly close a connected path HOT 1
- es6 generation fails under certain conditions HOT 2
- TextField High Memory Usage When Incrementing Large Numbers HOT 16
- Rounded Rectangle swf asset renders incorrectly HOT 4
- Add support for 2.5D properties like rotationX and rotationY
- Sounds over a certain length do not play properly. HOT 3
- Text Field fails to render certain Unicode characters HOT 6
- [html5] FileReferenceList doesn't dispatch Event.CANCEL HOT 1
- DropShadowFilter renders incorrectly when applied onto a TextField HOT 1
- OpenFL is compatible with old devices on WeChat IOS, which can cause`__scissorRectangle` An error occurred during off screen rendering;
- FlashPlayer does not change its size HOT 4
- [HTML5] Display looks bad when it is not a scale HOT 1
- Custom fonts don't support bold or italic variants on Windows HOT 3
- Uncaught TypeError: Cannot read properties of null (reading 'duration') - Sound.hx:761
- TextField does not handle <img> on platforms other than Flash HOT 3
- The Hashlink profiler does not work with OpenFL HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openfl.