🚧 Add app.SetFile function
This commit is contained in:
parent
d87422488c
commit
810dbe691e
1 changed files with 4 additions and 1 deletions
|
|
@ -9,9 +9,12 @@ var file *media.Probe
|
|||
|
||||
func PickNewFile() media.Probe {
|
||||
path := files.PickRandomFile()
|
||||
return SetFile(path)
|
||||
}
|
||||
|
||||
func SetFile(path string) media.Probe {
|
||||
f := media.ProbeFile(path)
|
||||
file = &f
|
||||
|
||||
return f
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue