Add HomeDir function
This commit is contained in:
parent
4ae938ada9
commit
4f1b3206c5
6 changed files with 92 additions and 21 deletions
|
@ -1,4 +1,4 @@
|
|||
// +build !android
|
||||
// +build !android,!windows
|
||||
|
||||
package raylib
|
||||
|
||||
|
@ -38,3 +38,8 @@ func TraceLog(msgType int, text string, v ...interface{}) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// HomeDir returns user home directory
|
||||
func HomeDir() string {
|
||||
return os.Getenv("HOME")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue