News for hackers. Stuff that matters.
Re:Show HN: A friend and I spent 6 years making a simulation... by duped on Wednesday June 01, 2022 @05:55PM (#31588651)
It's pretty straightforward to have an abstraction for file systems with "special" file locations, it's been common in app sdks for at least a decade in a half. Unity doesn't have something like that?

Eg you would never use /tmp or %USER%/AppData, but call a function File::getPath(TempDirectory) or something like that.

Re:Show HN: A friend and I spent 6 years making a simulation... by kroltan on Wednesday June 01, 2022 @06:50PM (#31589150)
It does, but I'm guessing it's just one simply understandable example.

C# has the very Windows-centric https://docs.microsoft.com/en-us/dotnet/api/system.environme...

Unity itself has the Application.*Path properties for some more general cross-platform-aware paths. https://docs.unity3d.com/ScriptReference/Application.html