Add Seek for asset
This commit is contained in:
parent
e365f75e34
commit
ea0628725d
5 changed files with 26 additions and 8 deletions
|
@ -9,7 +9,6 @@ package raylib
|
|||
import "C"
|
||||
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
"unsafe"
|
||||
)
|
||||
|
@ -86,7 +85,7 @@ func ClearDroppedFiles() {
|
|||
}
|
||||
|
||||
// Open asset
|
||||
func OpenAsset(name string) (io.ReadCloser, error) {
|
||||
func OpenAsset(name string) (Asset, error) {
|
||||
f, err := os.Open(name)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue