Feature Request: Deleting Files

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
chronologicaldot
Competition winner
Posts: 684
Joined: Mon Sep 10, 2012 8:51 am

Feature Request: Deleting Files

Post by chronologicaldot »

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()
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Feature Request: Deleting Files

Post by CuteAlien »

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
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Feature Request: Deleting Files

Post by hendu »

remove() is in C89, meaning even Visual Studio shouldn't have botched it.
chronologicaldot
Competition winner
Posts: 684
Joined: Mon Sep 10, 2012 8:51 am

Re: Feature Request: Deleting Files

Post by chronologicaldot »

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.
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).
*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.
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Feature Request: Deleting Files

Post by CuteAlien »

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! :-)
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
chronologicaldot
Competition winner
Posts: 684
Joined: Mon Sep 10, 2012 8:51 am

Re: Feature Request: Deleting Files

Post by chronologicaldot »

Ah, I see we still have that bug. I assume you mean this one, no?:
http://irrlicht.sourceforge.net/forum/v ... =7&t=50768
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Feature Request: Deleting Files

Post by CuteAlien »

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
Post Reply