Alex Szpakowski
a4ff39e0d4
Improved error checking for some enum strings (resolves issue #690 ).
...
Also moved love.audio.newSource from Lua code into C++ code
2013-08-03 21:24:43 -03:00
Bart van Strien
bff2c1b5f1
Recreate love.filesystem.mount, adding mount and unmount, for your archive (and folder?) pleasure
...
--HG--
branch : love.filesystem.mount2
2013-06-22 14:58:12 +02: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
4952ebd5d9
love.filesystem.newFile now accepts an optional FileMode parameter ("r", "w", "a") to better mirror io.open
2013-05-08 17:47:37 -03:00
Alex Szpakowski
88d64954a4
Replaced the devil love.image module with love.image.magpie, which can decide which image library to use in a similar manner to love.sound.lullaby. Some rough edges still exist.
...
love.filesystem.newFileData now accepts filepaths and File objects.
--HG--
branch : image-CompressedData
2013-04-07 17:18:34 -03:00
Alex Szpakowski
2838208338
Cleaned up love.filesystem.load and love.filesystem.getLastModified code
2013-03-17 13:43:07 -03:00
Alex Szpakowski
129ae0f4eb
Added love.filesystem.append (issue #541 )
2013-03-17 03:40:13 -03:00
Alex Szpakowski
96229bcb5d
Cleaned up love.filesystem.read/write code
2013-03-17 03:30:36 -03:00
Alex Szpakowski
8d4f35b86b
Added love.filesystem.getSize (issue #541 )
2013-03-17 01:56:24 -03:00
Alex Szpakowski
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04: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
Bart van Strien
dd04074d62
Add love.filesystem.getIdentity
2012-06-01 17:31:44 +02:00
Bart van Strien
e57e9efe0e
Improve love.filesystem.lines
2012-01-14 18:18:18 +01:00
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06:00
Bart van Strien
c707a4ca45
Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations)
2011-12-24 01:10:40 +01:00
Bill Meltsner
6277f4c75b
lua libraries, even on mac, almost never come in .dylib form, but rather .so - change love.filesystem.require accordingly
2011-12-19 01:42:34 -06:00
Bart van Strien
0aae9684b3
Automated formatting fix
2011-11-16 11:32:41 +01:00
Bart van Strien
0d174cfb81
Fix compiler warnings
2011-08-26 12:48:57 +02:00
Bart van Strien
09367dc3bd
Make love loaders the first 2, preventing lua loaders from loading the wrong files (issue #283 )
2011-08-22 18:04:19 +02:00
Bart van Strien
59a407bc6d
Add second loader for binary modules
2011-08-12 13:49:49 +02:00
Bart van Strien
a79231f9f9
Catch exception in lines
2011-08-06 16:54:04 +02:00
rude
e1d1ebb2f1
Fix warnings in MSVC 2010.
2011-07-24 18:32:11 +02:00
Bart van Strien
160c17c180
Drop old require syntax (no more .lua extension)
2011-06-22 14:54:29 +02:00
Bart van Strien
fc5cda36e2
Allow merged games marked as 'release' to have their save dir directly in the appdata dir
2011-06-15 13:09:32 +02:00
Bart van Strien
453593c9b0
Catch some more file-opening exceptions and make them lua errors instead
2011-02-18 16:10:20 +01:00
Bill Meltsner
fde708160e
bringing in the new year by changing every 2010 to 2011
2011-01-15 14:40:27 -06:00
Bart van Strien
aa7ec54121
Add love.filesystem.getLastModified (issue #163 )
2011-01-06 22:54:51 +01:00
Bart van Strien
9b7df91797
Added ?/init.lua to the love loader (issue #116 )
2010-11-28 11:39:55 +01:00
Bart van Strien
2169f531f8
Threads now get the love.filesystem package.loader too
2010-10-14 20:24:38 +02:00
rude
d27dd8b5dd
Added base64 support for FileData, and inlined all resources in boot.lua/graphics.lua as base64. Also removed old reshax stuff.
2010-09-19 13:22:10 +02:00
bart@bartbes.ath.cx
bf72299223
Fixed bug/epic fail in loader
2010-04-18 23:40:01 +02:00
bart@bartbes.ath.cx
736f7ab1a2
love.thread can now share full userdata
2010-02-14 17:41:11 +01:00
bart@bartbes.ath.cx
355a94755d
Added first version of thread and enabled newFileData
2010-02-12 20:24:39 +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
623e701549
Modules now reside in Lua and are treated (almost) like normal objects.
...
Also added a way of getting a pointer to abstract module instances internally.
2009-09-02 21:18:13 +02:00
bart@bart
0aae22d523
Fixed PHYSFS_fileLength segfault on non-existant files by checking if a file exists when a file object is created
2009-08-26 17:20:23 +02:00
rude
dd420d68a3
Ok, project generation didn't really work out. Reverted.
2009-08-10 21:33:07 +02:00
rude
ba1a75e547
Added many comments, and changed function names for wrapper functions.
2009-08-09 21:08:55 +02:00
rude
8e681b4204
It's now possible to build each module individually (as a DLL).
2009-08-04 19:57:14 +02:00
rude
524ef5e118
Added looping in love.audio (though needs implementation in love.sound).
2009-08-01 22:11:48 +02:00
rude
0c241a14fb
Added resources, and changed slightly how wrappers expose functions.
2009-07-30 00:37:43 +02:00
rude
dcb3dfd83d
Initial Mercurial commit.
2009-07-26 15:46:49 +02:00