Sasha Szpakowski
64a30f177f
Merge branch 'main' into 12.0-development
2024-02-10 12:24:48 -04:00
Sasha Szpakowski
94d5864144
update year for copyright notice
2024-02-10 12:13:22 -04:00
Sasha Szpakowski
6e80d85110
Merge branch 'main' into 12.0-development
2023-08-19 21:35:55 -03:00
Miku AuahDark
e559fd5e68
Pass pointer of PHYSFS_AndroidInit struct in Android when initializing PhysFS.
2023-06-01 15:33:04 +08:00
Sasha Szpakowski
6cc188b8ba
Merge pull request #1930 from pfirsich/physfs_skip_codesign
...
Add PHYSFS_Io StripSuffixIo to skip codesign signatures
2023-05-29 09:42:25 -03:00
Sasha Szpakowski
a161207f02
update PhysFS to 3.2.0.
...
Fixes #1880 .
2023-05-28 12:30:32 -03:00
Joel Schumacher
efc54d5124
Add PHYSFS_Io StripSuffixIo to skip codesign signatures
...
When a fused löve executable is signed with codesign on Windows some
data is appended to the executable, preventing physfs from finding the
zip file at the end of the file.
To help physfs out a bit, we try to find the zip ourselves in the case
of regular mount failure by looking for it's characteristic end of
central directory record and, once found, pretend to physfs that the
file is shorter than it actually is and ends at the end of the zip file.
2023-05-18 13:57:07 +02:00
Sasha Szpakowski
95d44c2c2d
very minor compile speed improvements
2023-02-11 16:29:24 -04:00
Sasha Szpakowski
f6cdbdc868
Merge branch 'main' into 12.0-development
2022-12-31 22:46:34 -04:00
Sasha Szpakowski
c823dbca96
Update copyright year for 2023
2022-12-31 22:25:49 -04:00
Miku AuahDark
aaeb318aa6
Android: Implement special path URI for passing file descriptors.
...
This is to workaround the limitation of content:// URI severely limited.
2022-05-22 22:40:09 +08:00
Alex Szpakowski
4e051c6faa
Re-add love.filesystem.exists.
...
It's still useful sometimes because it's a bit cheaper than getInfo.
2022-04-22 21:11:39 -03:00
Alex Szpakowski
b8ff64e9e3
Add love.filesystem.openFile. Deprecate love.filesystem.newFile.
2022-04-22 21:05:20 -03:00
Alex Szpakowski
d5865e160c
File objects inherit from Stream.
2022-04-21 19:53:27 -03:00
Alex Szpakowski
7f3538d2ba
Merge branch 'main' into 12.0-development
2022-01-05 21:10:27 -04:00
Alex Szpakowski
8e7fd10b6f
Update copyright year for 2022
2021-12-31 18:33:40 -04:00
Alex Szpakowski
c8038f22df
Merge branch 'main' into 12.0-development
2021-12-24 11:35:35 -04:00
Miku AuahDark
1bb22d2e90
Set game source path when using virtual archive in Android.
...
This will also prevent double `love.filesystem.setSource()` call
in that case.
2021-11-05 15:22:03 +08:00
Alex Szpakowski
21f5ba86d3
Merge branch 'master' into 12.0-development
2021-04-07 20:33:44 -03:00
Alex Szpakowski
f89aabb0bb
Update copyright year for 2021
2021-04-04 16:14:45 -03:00
Alex Szpakowski
04d59274ef
Merge branch 'master' into 12.0-development
2021-02-14 14:45:21 -04:00
Miku AuahDark
22455276f6
Implement experimental fusing method.
...
https://github.com/love2d/love-android/issues/201#issuecomment-772628115
2021-02-06 22:10:49 +08:00
Alex Szpakowski
f151190548
filesystem restructure work.
...
Add mount/unmountCommonPath, mount/unmountFullPath, getFullCommonPath.
Reimplement identity and save directory code in terms of new commonpath code.
Add internal createRealDirectory function (not exposed, currently).
2021-01-01 16:29:40 -04:00
Alex Szpakowski
f61a650a87
Add 'readonly' field to love.filesystem.getInfo's returned table
2020-12-31 00:06:41 -04:00
Alex Szpakowski
0706b6243c
Add love.filesystem.mountFullPath.
2020-10-03 19:28:57 -03:00
Alex Szpakowski
5f9b5a21d0
Merge default into minor
...
--HG--
branch : minor
2020-01-03 22:45:36 -04:00
Alex Szpakowski
fc4847c69d
Update copyright for the new year
2020-01-03 22:40:36 -04:00
Alex Szpakowski
d4a1247ca3
Potentially fix a compile error.
...
--HG--
branch : minor
2019-12-22 23:03:30 -04:00
Alex Szpakowski
453063e20f
Windows: Use a more modern API for determining the save directory.
...
--HG--
branch : minor
2019-12-22 22:41:13 -04:00
Alex Szpakowski
bc12312f0f
macOS: rename most internal uses of "macosx" to "macos".
...
--HG--
branch : minor
2019-12-22 17:54:20 -04:00
Alex Szpakowski
a27781aa6a
macOS/iOS: Use more modern APIs for determining the save directory.
...
--HG--
branch : minor
2019-12-22 17:42:23 -04:00
Alex Szpakowski
0752f27bdf
Update copyright year for 2019
2019-01-03 21:09:05 -04:00
Alex Szpakowski
a461f2d7af
Improve the error message when love.filesystem.init fails.
2018-01-28 16:53:09 -04:00
Alex Szpakowski
0bc820ee0e
Merged in cigumo/love (pull request #99 )
...
Changes Filesystem::setSource mount order on Android
Simplifies the way setSource is handled on Android. It tries to mount
first and if that fails it will copy to memory and mount.
This works alongside a separate patch to GameActivity.java submitted
to the love-android-sdl2 repo, that contains the /sdcard/lovegame
fallback mechanism, and also allows to copy the game.love to the app
cache dir, which is useful for large files.
2018-01-25 02:15:29 +00:00
Bart van Strien
e80247c191
Happy new year! ✨
2018-01-03 19:47:35 +01:00
Alex Szpakowski
640e8f0d2e
love.filesystem.mount can accept a Data object containing zipped data.
...
- Add mount(Data, archivename, mountpoint [, appendtopath]). 'archivename' must be a string that has not been used with mount before.
- Add mount(FileData, mountpoint [, appendtopath]). The file path of the FileData is used as the archive name.
- Add unmount(Data).
- unmount(archivename) also works.
2017-12-16 23:09:15 -04:00
Alex Szpakowski
ce46fa3ebe
Remove PhysFS 2.x-specific code, it's no longer needed since we always have PhysFS 3.
2017-12-16 19:56:02 -04:00
Alex Szpakowski
1d8a3326b3
Include the physfs 3.0.1 source in love.
2017-12-15 19:41:17 -04:00
Alex Szpakowski
bf67d7ad0e
PHYSFS_enumerateFiles bug has been fixed post-2.1.0.
...
--HG--
branch : minor
2017-09-04 01:18:48 -03:00
Alex Szpakowski
e4e4c6673e
Use PhysFS_getErrorByCode instead of PhysFS_getLastError, when available.
...
--HG--
branch : minor
2017-09-03 19:47:46 -03:00
Alex Szpakowski
9d0e984c3d
Add love.filesystem.getInfo. Deprecate love.filesystem.exists/isDirectory/isFile/isSymlink/getLastModified/getSize. Resolves issue #641 .
...
--HG--
branch : minor
2017-08-27 18:14:54 -03:00
Alex Szpakowski
7566db14f2
love.filesystem.isFile and isDirectory behave consistently between PhysFS 2.0 and 2.1/3.0 (see issue #641 ).
...
--HG--
branch : minor
2017-08-06 00:53:49 -03:00
Alex Szpakowski
abb72cb813
Happy new year! 🥂
...
--HG--
branch : minor
2017-01-02 01:28:29 -04:00
Alex Szpakowski
31b44797bc
Merge default into minor
...
--HG--
branch : minor
2016-05-12 18:20:01 -03:00
T-Bone
4ef7504c05
Fixed things pointed out by Alex Szpakowski and Bart von Strien
2016-04-09 07:28:03 +02:00
T-Bone
b2291fb62a
Fixes to make Löve compile on Windows 10 UWP
2016-04-07 22:56:03 +02:00
Alex Szpakowski
734789eb93
Added love.math.encode(format, data | string [, linelength]) and love.math.decode(format, data | string). Current formats are "base64" and "hex". The optional line length only applies to base64 and specifies the maximum number of characters per line in the encoded string.
...
Removed the variant of love.filesystem.newFileData which decoded a base64-encoded string since it's redundant.
--HG--
branch : minor
2016-03-28 19:28:40 -03:00
Bart van Strien
33341de7bc
Rewrite the c module loader, adding a search path ( fixes #1050 )
...
Note: also removes the restriction that only fused games can load libraries from
their save folders.
--HG--
branch : minor
2016-02-26 15:24:01 +01:00
Alex Szpakowski
8566729229
Merged in Bobbyjones/love/new-conf-flag-for-android-2 (pull request #53 )
...
New conf flag for android 2
2016-01-10 20:11:34 -04:00
BobbyJones
3aa51763e2
made a method for setting external save location on android
2016-01-02 18:52:25 -05:00