mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-13 20:16:41 -05:00
13 lines
260 B
Go
13 lines
260 B
Go
|
package filesystem
|
||
|
|
||
|
import (
|
||
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2loader/asset"
|
||
|
)
|
||
|
|
||
|
// OnAddSource is a shim method to allow loading of filesystem sources
|
||
|
func OnAddSource(path string) (asset.Source, error) {
|
||
|
return &Source{
|
||
|
Root: path,
|
||
|
}, nil
|
||
|
}
|