Feature Request: Deleting Files
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Feature Request: Deleting Files
Maybe I missed it (as I sometimes do), but I was looking through the Irrlicht file handling system and, much to my dismay, realized we have no way to delete files. We can remove them from the resource cache of irrlicht, but it'd be nice to be able to delete them with a simple function, like IFileSystem::deleteFile()
Re: Feature Request: Deleting Files
Not saying it's not useful, but it's kinda getting into territory beyond that of a 3D engine. The reason we have opening files is because it's needed by the engine.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Feature Request: Deleting Files
remove() is in C89, meaning even Visual Studio shouldn't have botched it.
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Re: Feature Request: Deleting Files
mm... Not to be rude, but I disagree. Irrlicht does alot more than acting as a 3D engine (for Pete's sakes, it's got a GUI system with a color selector). It's tailored towards game dev afaik, and part of that can involve deleting old files. I could give specific examples, but people would only nit-pick and give excuses why every example I give is an "exception" (and by that logic, every game is an exception).CuteAlien wrote:Not saying it's not useful, but it's kinda getting into territory beyond that of a 3D engine. The reason we have opening files is because it's needed by the engine.
*sigh* That said, I don't see how it's too much to add, but if that's the way you want it, so be it. You and Nadro seem to be the only guys working on the engine anyways. Thanks for all your work.
Re: Feature Request: Deleting Files
Not much code to add, but the kind of feature where people hate you if you get it wrong. And Irrlicht's filesystem still has unfixed bugs. There is a upper/case lower-case mess going on which had been mostly fixed a few years ago, but some artifacts are still in the engine (for example the file-list created in the file-open dialog, but could affect more places). Not such a big problem if something opens wrong or not at all, but different story with deleting files.
I think users are better of using more standard libraries for this specific task. While obviously there is no better free game-ui-system out there than Irrlicht! :-)
I think users are better of using more standard libraries for this specific task. While obviously there is no better free game-ui-system out there than Irrlicht! :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Re: Feature Request: Deleting Files
Ah, I see we still have that bug. I assume you mean this one, no?:
http://irrlicht.sourceforge.net/forum/v ... =7&t=50768
http://irrlicht.sourceforge.net/forum/v ... =7&t=50768
Re: Feature Request: Deleting Files
Yeah :-/
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm