Skip to content

A simple Defold extension to get the project root dir when running from the editor

License

Notifications You must be signed in to change notification settings

dapetcu21/defold-project-dir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Defold Project Directory extension

This is a small native extension that makes it so that you can get the project directory of a game that is being run from the editor (where bundled resources are not available).

-- Will return nil when not running from the editor or the path to the project root otherwise
print(defoldprojectdir.get_project_directory())

-- Will return the path to the game's executable (or nil on unsupported platforms)
print(defoldprojectdir.get_executable_path())

-- The path separator ("/" on POSIX, "\\" on Windows) 
print(defoldprojectdir.PATH_SEP)

About

A simple Defold extension to get the project root dir when running from the editor

Resources

License

Stars

Watchers

Forks

Packages

No packages published