From: <ba...@us...> - 2009-01-18 19:46:23
|
Revision: 41 http://scrupp.svn.sourceforge.net/scrupp/?rev=41&view=rev Author: basique Date: 2009-01-18 19:46:14 +0000 (Sun, 18 Jan 2009) Log Message: ----------- - the Lua builtin commands 'dofile' and 'require' support the virtual filesystem provided by Scrupp (using PhysFS) That means: - 'require' searches for Lua files in the virtual filesystem using the new path.scrupppath variable which defaults to '?.lua;scripts/?.lua'; If it does not succeed, if falls back to the standard behaviour - path.scrupppath can be overridden by the environment variable SCRUPP_PATH - 'dofile' looks for its argument in the virtual filesystem as well; If it does not succeed, it falls back to the standard behaviour (as in the original Lua distribution) - new functions which use the virtual filesystem: - scrupp.fileExists(<path>) - scrupp.isDirectory(<path>) - scrupp.isSymbolicLink(<path>) - the base dir is no longer appended to the search path, but prepended Modified Paths: -------------- trunk/scripts/animation.lua trunk/scripts/font.lua trunk/scripts/timer.lua trunk/src/FileIO.c trunk/src/FileIO.h trunk/src/Main.c trunk/src/Main.h This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |