Alex Szpakowski
d982f02634
Renamed File:eof to File:isEOF (closes issue #683.)
2015-03-17 01:13:29 -03:00
Alex Szpakowski
a7e4148869
Merged default into minor
...
--HG--
branch : minor
2015-01-16 15:47:26 -04:00
Alex Szpakowski
c7b45b3505
Updated copyright for the new year
2014-12-31 19:32:43 -04:00
Alex Szpakowski
8d0654a6a7
Added runtime drag-and-drop file and folder support via new love.filedropped and love.directorydropped event callback functions. filedropped has a single File object argument, and directorydropped has a single string argument containing the full path of the directory, which can be used with love.filesystem.mount.
...
--HG--
branch : minor
2014-10-18 20:30:36 -03:00
Alex Szpakowski
028108ea64
Improved the error message when physfs fails to open a filepath.
2014-08-06 20:16:15 -03:00
Alex Szpakowski
724bdbd296
love.graphics.newImage, love.image.newImageData, etc. no longer leave Lua-owned FileData objects floating around waiting to be GC'd when called with filename arguments, resulting in less memory use on startup (resolves issue #890.)
...
Moved love.filesystem Lua wrapper code from src/modules/filesystem/physfs/ to src/modules/filesystem/.
2014-06-02 00:22:41 -03:00
Alex Szpakowski
3120a0e650
Goodbye 2013, hello 2014!
2014-01-03 17:28:58 -04:00
Alex Szpakowski
abd31ca4e2
Fixed ParticleSystems and Files crashing instead of erroring when given bad sizes (issue #666 )
2013-07-04 06:29:02 -03:00
Alex Szpakowski
8fbf43fcc3
Added File:setBuffer/getBuffer, File:flush, and File:getMode.
2013-06-27 06:26:20 -03:00
Alex Szpakowski
186bcae7cb
Added File:isOpen
2013-06-27 02:23:56 -03:00
Bart van Strien
721d50c2ef
Make most love.filesystem functions return nil, err instead of erroring (when used correctly)
...
Note that argument exceptions, for instance, are still thrown as errors.
Also fixes a potential uncaught exception with getSize being called for the optional
size arg in read, now it just uses the ALL constant instead.
File:read no longer opens and closes a file automagically (this was undocumented, and weird)
NOTE: the love.filesystem.lines iterator can still error, but this should only happen in
case there's something really, really wrong (otherwise love.filesystem.lines would've failed
already)
NOTE: love.filesystem.lines still errors, because otherwise you'd get weird errors from the for
loop (namely 'attempt to call nil value') instead of seeing anything useful
2013-05-10 16:39:02 +02:00
Alex Szpakowski
d5aa807747
More internal code cleanup
2013-03-31 19:02:27 -03:00
Alex Szpakowski
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04:00
Bart van Strien
b10ff8da42
Apply patch that fixes File:read from reading too much (on EOF) (bug #530 )
2012-12-15 13:58:34 +01:00
Bart van Strien
33d7115887
Make love.sound.newDecoder accept FileData, and make File->read return FileData
2012-10-14 17:19:40 +02:00
Bart van Strien
7793e7f02f
CRLF to LF
2012-07-04 14:40:24 +02:00
rude
81c38e22d0
Applied the new style guidelines.
...
Well, sort of. Lot's more to be done, but this is a start.
2012-06-28 23:52:33 +02:00
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06:00
Bart van Strien
4b6df9baa2
Hopefully fix some more warnings in filesystem
2011-12-28 14:39:13 +01:00
Bart van Strien
cd330783f0
Apparently some compilers hate macros being redefined..
2011-12-27 23:04:50 +01:00
Bart van Strien
864c800e10
Fix some warnings
2011-12-27 21:25:06 +01:00
Bill Meltsner
7378a90101
Upgrade love.filesystem to use 64-bit numbers for dealing with file sizes, thus (hopefully) enabling lovers to work with very large files (based on Boolsheet's patch in issue #179 )
2011-12-22 02:45:11 -06:00
Bart van Strien
0aae9684b3
Automated formatting fix
2011-11-16 11:32:41 +01:00
Bart van Strien
3da5b3fd46
Make the eof code compile on windows
2011-08-08 15:32:34 +02:00
Bart van Strien
7e06aebf66
Work around PhysicsFS eof bug on windows (issue #272 )
2011-08-07 18:23:07 +02:00
Bart van Strien
defd6c5ee4
Attempt to close open files when File objects are destroyed
2011-08-06 13:42:57 +02:00
Bart van Strien
610b89cd19
Handle PHYSFS_fileExists failing with empty strings on windows
2011-02-20 01:00:27 +01:00
Bill Meltsner
fde708160e
bringing in the new year by changing every 2010 to 2011
2011-01-15 14:40:27 -06:00
Bill Meltsner
73aba4bdd4
eliminated a whole bunch of gcc warnings
2010-02-09 13:21:25 -05:00
rude
72efaa283f
Fixed crash on attempt to open non-existent file.
2010-02-03 20:48:58 +01:00
rude
aa01c984b9
Updated all dates to 2010.
2010-01-31 16:54:47 +01:00
rude
87e3c4131c
Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
2009-10-10 11:11:04 +02:00
rude
28b1ee4f16
Fixed bug which caused files opened in write mode to fail.
2009-09-02 22:47:11 +02:00
rude
78370abb58
Fixed MemoryData.
2009-07-28 17:43:22 +02:00
rude
dcb3dfd83d
Initial Mercurial commit.
2009-07-26 15:46:49 +02:00