Wintermute Engine Forum

Wintermute Engine => Feature requests, suggestions => Topic started by: odnorf on April 10, 2003, 10:18:14 AM

Title: file methods
Post by: odnorf on April 10, 2003, 10:18:14 AM
How about adding methods for handle files?
Like CreateFile, DeleteFile, CopyFile, PutLineInFile, DeleteLineFromFile, e.t.c.....

I'm thinking about Grim Fandango where everytime you saved a game it genarated an html file which contained all the dialogues you had in the current game.

(I'm not goint to use that for my first small adventure but I think it could be usefull for some other people or me in the future.)
Title: Re:file methods
Post by: Mnemonic on April 10, 2003, 10:43:42 AM
(This could be a perfect application for an extension DLL library ;))

OK, not a big problem, although I'm a bit cautious about that, a malicious WME script could do a damage to your system...
Title: Re:file methods
Post by: odnorf on April 10, 2003, 10:58:02 AM
Yes it could be dangerous if some person decides to create a small demo which does Game.DeleteDir(c:\winnt). But you could bound the methods to work only in the games' dir and not outside it and unless someone decides to install a game in a system folder it's not going to be dangerous  :)

(I wish i was a good programer so I could create a few dlls for this great engine.)