Commit Graph

81 Commits

Author SHA1 Message Date
Bart van Strien 5b4ef23772 Move require path into filesystem module
--HG--
branch : minor
2014-09-05 07:57:42 +02:00
Alex Szpakowski aa05664d4c Merged default into minor
--HG--
branch : minor
2014-07-30 01:32:10 -03:00
Alex Szpakowski 73c0f1e222 Added love.filesystem.isSymlink, love.filesystem.setSymlinksEnabled, and love.filesystem.areSymlinksEnabled. Symbolic link support is disabled by default.
love.filesystem.isSymlink will always return false when symbolic link support is disabled, even if the given filepath is actually a symlink.
2014-07-24 00:31:11 -03:00
Alex Szpakowski d52bab4221 Updated the new module changes to use more compile/link-time checking rather than runtime checking. 2014-07-21 15:12:01 -03:00
Alex Szpakowski 014b9a46e5 Updated the Lua wrapper code for modules to account for cases where the module's instance is removed from memory completely and recreated during the program's lifetime. 2014-07-21 14:52:01 -03:00
Bart van Strien 59ab602111 Normalize slashes in paths unless they are direct user input (XDG_DATA_HOME/APPDATA, specifically) 2014-07-15 13:16:37 +02:00
Alex Szpakowski 53b20b63a5 Merged default into minor
--HG--
branch : minor
2014-05-21 21:16:37 -03:00
Alex Szpakowski e25cdfc71c Fixed creating and setting the write directory on some sandboxed operating systems 2014-05-05 00:27:42 -03:00
Alex Szpakowski 9d293af176 Fixed love.filesystem.setIdentity breaking if a file has been written to an old identity dir before the new setIdentity call 2014-05-04 04:10:46 -03:00
Alex Szpakowski 4d579074a1 Removed love.filesystem.exists (resolves issue #641.)
Use either love.filesystem.isFile or love.filesystem.isDirectory instead.

--HG--
branch : minor
2014-04-23 02:15:02 -03:00
Alex Szpakowski aba17607aa Added an optional callback function argument to love.filesystem.getDirectoryItems. Callback function takes a single argument containing a filepath string.
For example: love.filesystem.getDirectoryItems("", print)
2014-03-17 20:14:53 -03:00
Alex Szpakowski a13fd761cc Updated love.filesystem's C library loader for require to look in paths added via love.filesystem.mount, when in fused mode 2014-03-12 06:19:56 -03:00
Alex Szpakowski 3120a0e650 Goodbye 2013, hello 2014! 2014-01-03 17:28:58 -04:00
Alex Szpakowski 8cc5364d15 Changed the SearchOrder argument of love.filesystem.setIdentity and love.filesystem.mount to a boolean (append) instead of an enum 2013-10-30 17:05:46 -03:00
Alex Szpakowski 249dad3cae love.filesystem.mkdir -> love.filesystem.createDirectory, love.filesystem.enumerate -> love.filesystem.getDirectoryItems. Resolves issue #609. 2013-10-20 04:07:37 -03:00
Bart van Strien f6f8251234 Hopefully fix appdata dir creation on windows 2013-10-15 20:03:22 +02:00
Alex Szpakowski 8b7f151a4d Added joystick vibration support for most common controllers (resolves issue #159).
Added Joystick:setVibration(left, right), Joystick:getVibration, and Joystick:isVibrationSupported.
left and right are numbers between 0 and 1 which correspond to the strength of the gamepad's left and right rumble motors, if it has them.
2013-10-05 01:54:41 -03:00
Bart van Strien 0e6786988e Try to create appdata dir if it doesn't exist (hopefully resolves #680) 2013-10-04 14:30:56 +02:00
Alex Szpakowski 06f80d5c08 Fixed undefined behaviour when love exceptions are converted into Lua errors (resolves issue #729) 2013-09-05 23:17:29 -03:00
Alex Szpakowski daf50698b8 Added love.filesystem.getSourceBaseDirectory and changed love.filesystem.mount to allow mounting the path returned by love.filesystem.getSourceBaseDirectory in fused mode. 2013-08-10 20:11:50 -03:00
Alex Szpakowski fc3affb9b9 Removed 'release mode' and love.releaseerrhand, and added love.filesystem.isFused (resolves issue #579).
Games which are fused (either via appending the .love to the executable or with --fused) automatically have the changes which previously only applied to fused games in release mode.
2013-08-05 15:02:50 -03:00
Alex Szpakowski 7a20bbc6c4 Added an optional search order enum ("first" or "last") to love.filesystem.setIdentity and love.filesystem.mount (resolves issue #694) 2013-08-04 00:32:23 -03:00
Alex Szpakowski ce9d0be1ea Fixed love.filesystem.mount to consistently fail to mount things which are inside the game source directory, instead of only failing when the source dir is a zipped .love 2013-08-01 02:39:54 -03:00
Alex Szpakowski 579a3052e6 Removed restriction on mounting a filepath to root
--HG--
branch : love.filesystem.mount2
2013-06-22 17:04:51 -03:00
Alex Szpakowski b4fa9131d2 Fixed love.filesystem.[un]mount
--HG--
branch : love.filesystem.mount2
2013-06-22 15:54:53 -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
Alex Szpakowski 4b92c4bf4b Fixed old save directories not being removed from the filesystem search path properly when setIdentity is called 2013-06-12 00:54:46 -03:00
Alex Szpakowski d5aa807747 More internal code cleanup 2013-03-31 19:02:27 -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 a2cb35f4e3 Constified some Filesystem module methods 2013-03-17 03:54:11 -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
rude 2149ecdf44 Use "L" to force wide literal string.
If multi-byte character set is chosen, TEXT() does not produce a wide string,
causing compilation errors.
2012-11-18 10:53:17 +01: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 4b6df9baa2 Hopefully fix some more warnings in filesystem 2011-12-28 14:39:13 +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 59a407bc6d Add second loader for binary modules 2011-08-12 13:49:49 +02:00
Bart van Strien d3280ae55b Fix segfault in lines_i 2011-08-06 17:14:52 +02:00
Bart van Strien eae6c0ff85 Remove duplicate lines_i, finally fix leak (issue #271) 2011-08-06 16:51:33 +02:00
Bart van Strien 9ed5906416 Fix lines iterator not closing opened files 2011-08-06 13:36:22 +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 7b8df4431a Use proper chunk names, so tracebacks show filenames. 2011-05-27 16:59:46 +02:00