MCPcopy Create free account
hub / github.com/EngoEngine/engo / openFile

Function openFile

engo_mobile.go:203–210  ·  view source on GitHub ↗

openFile is the mobile-specific way of opening a file

(url string)

Source from the content-addressed store, hash-verified

201
202// openFile is the mobile-specific way of opening a file
203func openFile(url string) (io.ReadCloser, error) {
204 usedUrl := url
205 if strings.HasPrefix(url, "assets/") {
206 usedUrl = usedUrl[7:]
207 }
208
209 return asset.Open(usedUrl)
210}
211
212// IsAndroidChrome tells if the browser is Chrome for android
213func IsAndroidChrome() bool {

Callers

nothing calls this directly

Calls 1

OpenMethod · 0.80

Tested by

no test coverage detected