修复 Linux CI 缺少策略路径归一化实现 #362
@@ -52,6 +52,11 @@ fn normalize_windows_policy_path(path: &Path) -> PathBuf {
|
||||
PathBuf::from(value.strip_prefix(r"\\?\").unwrap_or(&value))
|
||||
}
|
||||
|
||||
#[cfg(not(windows))]
|
||||
fn normalize_windows_policy_path(path: &Path) -> PathBuf {
|
||||
path.to_path_buf()
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
pub(crate) fn register_game_creator_user_selected_path(path: &Path, is_directory: bool) {
|
||||
let Some(key) = normalize_user_selected_path_key(path) else {
|
||||
|
||||
Reference in New Issue
Block a user