Skip to content

Commit

Permalink
📝 add instructions for AssetRipper
Browse files Browse the repository at this point in the history
  • Loading branch information
nicks96432 committed Feb 4, 2025
1 parent 90fb2e4 commit 7848829
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ Options:
* Make sure FFmpeg shared library is in your `PATH`
* On Windows, you can use `winget` to install FFmpeg so that it will be added to your `PATH` automatically.
For example, `winget install BtbN.FFmpeg.LGPL.Shared.7.1`. See `winget search ffmpeg` for more options.
3. Download [AssetRipper](https://github.com/AssetRipper/AssetRipper) to extract assets
* decompress the zip file and rename the folder to `./AssetRipper`.
* you can also specify the path via the `--asset-ripper-path` option.

## Build From Source

Expand Down
3 changes: 3 additions & 0 deletions README.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ Commands:
* 確保FFmpeg共享函式庫在你的 `PATH` 裡面
* Windows上可以用 `winget` 來安裝FFmpeg,這樣它就會被自動加進`PATH`裡,例如
`winget install BtbN.FFmpeg.LGPL.Shared.7.1` 。用 `winget search ffmpeg` 可以查看更多選擇
3. 如果要拆包,下載[AssetRipper](https://github.com/AssetRipper/AssetRipper)
* 解壓縮後重新命名為`./AssetRipper`
* 或是用`--asset-ripper-path`指定執行檔路徑

## 編譯

Expand Down
2 changes: 1 addition & 1 deletion src/mltd/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl Asset<'_> {
let mut buf = BufWriter::new(Vec::new());
tokio::io::copy(&mut stream_reader, &mut buf).await?;

Ok(Self { data: Cow::Owned(buf.into_inner()), info: asset_info })
Ok(Self { data: Cow::from(buf.into_inner()), info: asset_info })
}

/// Download the specified asset from MLTD asset server and write it to disk.
Expand Down

0 comments on commit 7848829

Please sign in to comment.