Application:getNativePath

From GiderosMobile
Revision as of 17:30, 12 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2021.10
Class: Application

Description

Returns the system path for a given resource. <syntaxhighlight lang="lua"> (string) = application:getNativePath(path) </source>

Parameters

path: (string) path to an application local resource

Return values

Returns (string) the native path of the given resource

Example

<syntaxhighlight lang="lua"> local imgpath = application:getNativePath("gfx/myimage.png") -- image in /gfx project folder print(imgpath) -- "C:/Users/xxx/AppData/Local/Temp/gideros/YYY/resource/gfx/myimage.png" </source>