Add escude script export support

This commit is contained in:
2025-06-02 21:38:38 +08:00
parent 24192050dc
commit abf30c8a55
14 changed files with 1454 additions and 27 deletions

View File

@@ -48,6 +48,9 @@ impl std::fmt::Display for WinError {
}
pub fn decode_to_string(cp: u32, data: &[u8]) -> Result<String, WinError> {
if data.is_empty() {
return Ok(String::new());
}
let needed_len = unsafe {
MultiByteToWideChar(
cp,