lazarus/platform/file.go

33 lines
514 B
Go
Raw Normal View History

2019-01-09 02:34:51 +00:00
package platform
import "github.com/FooSoft/lazarus/formats/mpq"
var fileState struct {
2019-01-09 02:45:19 +00:00
mountPoints map[string]*mpq.Archive
2019-01-09 02:34:51 +00:00
}
type File struct {
}
func FileMountArchive(mountPath, archivePath string) error {
return nil
}
func FileUnmountArchive(mountPath string) error {
return nil
}
func FileUnmountAll() error {
for _, archive := range fileState.mountPoints {
if err := archive.Close(); err != nil {
return err
}
}
return nil
}
2019-01-09 02:34:51 +00:00
func FileOpen(path string) (*File, error) {
return nil, nil
}