mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-10 06:16:53 -05:00
118a99e773
* common/platform: cleanup unused functions * common/platform: search for assets in xdg data directories on non-windows platforms
18 lines
367 B
Go
18 lines
367 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package platform
|
|
|
|
import "path/filepath"
|
|
|
|
func LineSeparator() string {
|
|
return "\r\n"
|
|
}
|
|
|
|
// GetAssetLocation search for `file` in the excutable dir
|
|
func GetAssetLocation(file string) string {
|
|
const name = "v2ray.location.asset"
|
|
assetPath := NewEnvFlag(name).GetValue(getExecutableDir)
|
|
return filepath.Join(assetPath, file)
|
|
}
|