mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
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/.
This commit is contained in:
+6
-6
@@ -185,6 +185,12 @@ set(LOVE_SRC_MODULE_FILESYSTEM_ROOT
|
||||
src/modules/filesystem/File.h
|
||||
src/modules/filesystem/FileData.cpp
|
||||
src/modules/filesystem/FileData.h
|
||||
src/modules/filesystem/wrap_File.cpp
|
||||
src/modules/filesystem/wrap_File.h
|
||||
src/modules/filesystem/wrap_FileData.cpp
|
||||
src/modules/filesystem/wrap_FileData.h
|
||||
src/modules/filesystem/wrap_Filesystem.cpp
|
||||
src/modules/filesystem/wrap_Filesystem.h
|
||||
)
|
||||
|
||||
set(LOVE_SRC_MODULE_FILESYSTEM_PHYSFS
|
||||
@@ -192,12 +198,6 @@ set(LOVE_SRC_MODULE_FILESYSTEM_PHYSFS
|
||||
src/modules/filesystem/physfs/File.h
|
||||
src/modules/filesystem/physfs/Filesystem.cpp
|
||||
src/modules/filesystem/physfs/Filesystem.h
|
||||
src/modules/filesystem/physfs/wrap_File.cpp
|
||||
src/modules/filesystem/physfs/wrap_File.h
|
||||
src/modules/filesystem/physfs/wrap_FileData.cpp
|
||||
src/modules/filesystem/physfs/wrap_FileData.h
|
||||
src/modules/filesystem/physfs/wrap_Filesystem.cpp
|
||||
src/modules/filesystem/physfs/wrap_Filesystem.h
|
||||
)
|
||||
|
||||
set(LOVE_SRC_MODULE_FILESYSTEM
|
||||
|
||||
Reference in New Issue
Block a user