Files
Xray-core/common/platform/windows.go
T

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"
2020-11-25 19:01:53 +08:00
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 {
2023-10-28 18:21:57 -04:00
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)
}