Difference between revisions of "love.filesystem.getSource"

(Created page with "{{newin|0.9.0|090|type=function}} Returns the full path to the the .love file or directory. If the game is fused to the LÖVE executable, then...")
 
m (Fix mismatched (and wrong) description)
 
Line 16: Line 16:
 
* [[love.filesystem.getSourceBaseDirectory]]
 
* [[love.filesystem.getSourceBaseDirectory]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Returns the full path to the directory containing the .love file or directory.}}
+
{{#set:Description=Returns the full path to the .love file or directory.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.filesystem.getSource}}
 
{{i18n|love.filesystem.getSource}}

Latest revision as of 13:31, 13 September 2017

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Returns the full path to the the .love file or directory. If the game is fused to the LÖVE executable, then the executable is returned.

Function

Synopsis

path = love.filesystem.getSource( )

Arguments

None.

Returns

string path
The full platform-dependent path of the .love file or directory.

See Also

Other Languages