1
mirror of https://github.com/XTLS/Xray-core.git synced 2025-12-12 20:49:48 +04:00
Files
xray-core/common/platform/windows.go

23 lines
584 B
Go
Raw Normal View History

2021-09-20 21:00:55 +08:00
//go:build windows
2020-11-25 19:01:53 +08:00
// +build windows
package platform
import "path/filepath"
func LineSeparator() string {
return "\r\n"
}
// GetAssetLocation searches for `file` in the env dir and the executable dir
2020-11-25 19:01:53 +08:00
func GetAssetLocation(file string) string {
assetPath := NewEnvFlag(AssetLocation).GetValue(getExecutableDir)
2020-11-25 19:01:53 +08:00
return filepath.Join(assetPath, file)
}
// GetCertLocation searches for `file` in the env dir and the executable dir
func GetCertLocation(file string) string {
certPath := NewEnvFlag(CertLocation).GetValue(getExecutableDir)
return filepath.Join(certPath, file)
}