mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-05-08 14:13:22 +00:00
Reverts5d94a62a83c715154309961c35212736425d2a6eFixes https://github.com/XTLS/Xray-core/issues/5538 https://github.com/XTLS/Xray-core/issues/5536
23 lines
584 B
Go
23 lines
584 B
Go
//go:build windows
|
|
// +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
|
|
func GetAssetLocation(file string) string {
|
|
assetPath := NewEnvFlag(AssetLocation).GetValue(getExecutableDir)
|
|
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)
|
|
}
|