From 76f1c56135ad4c7b17c198eb8615075813fa4b85 Mon Sep 17 00:00:00 2001 From: JupiterRider <60042618+JupiterRider@users.noreply.github.com> Date: Tue, 25 Oct 2022 21:58:31 +0200 Subject: [PATCH] Update utils.go --- raylib/utils.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/raylib/utils.go b/raylib/utils.go index f5a1979..ea98082 100644 --- a/raylib/utils.go +++ b/raylib/utils.go @@ -1,3 +1,6 @@ +//go:build !android +// +build !android + package rl /* @@ -13,7 +16,6 @@ import "C" import ( "fmt" "os" - "runtime" "unsafe" ) @@ -33,11 +35,7 @@ func TraceLog(logLevel TraceLogLevel, text string, v ...interface{}) { // HomeDir - Returns user home directory // NOTE: On Android this returns internal data path and must be called after InitWindow -func HomeDir() string { - if runtime.GOOS == "android" { - return getInternalStoragePath() - } - +func HomeDir() string { if homeDir, err := os.UserHomeDir(); err != nil { return homeDir }