Update README.md

master
Marius Petcu 2018-03-06 20:14:26 +02:00 committed by GitHub
parent 1a3a4a4462
commit aebe10b5e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -180,6 +180,22 @@ end)
---
Get the absolute path to the game's containing directory. On macOS this will be the path to the .app bundle
```lua
path = defos.get_bundle_root()
```
---
Change the game's icon at runtime.
```lua
defos.set_window_icon(path_to_icon)
```
---
If you'd like to see any other feature, open an issue.
## Example