mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-11-13 21:52:50 +00:00
https://github.com/XTLS/Xray-core/pull/5824#issuecomment-6796919801
22 lines
566 B
Go
22 lines
566 B
Go
//go: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)
|
|
}
|