mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-05-14 18:09:05 +00:00
5f7474120f
Reverts https://github.com/XTLS/Xray-core/commit/5d94a62a83073bc4aa378fb7e2198e15878e90da https://github.com/XTLS/Xray-core/commit/c715154309e41e759f544edd3667889e257fb3af https://github.com/XTLS/Xray-core/commit/961c352127f32c04034a88d021a683e6a80eac20 https://github.com/XTLS/Xray-core/commit/36425d2a6e53c755c96d25ef2323b7fffd1fab3f Fixes 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)
|
|
}
|