Application:getNativePath

From GiderosMobile
Revision as of 17:09, 12 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source" to "</syntaxhighlight")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2021.10
Class: Application

Description

Returns the system path for a given resource.

(string) = application:getNativePath(path)

Parameters

path: (string) path to an application local resource

Return values

Returns (string) the native path of the given resource

Example

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"