Skip to content

Commit

Permalink
fallback to actor name + build windows sep for now
Browse files Browse the repository at this point in the history
  • Loading branch information
bananaturtlesandwich committed Sep 2, 2023
1 parent 838bc56 commit b6aa876
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 23 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ jobs:
draft: true
prerelease: true
body: "# Changes"
windows:
needs: draft
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v1
- name: build
run: cargo build -r
- name: upload
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.draft.outputs.upload }}
asset_path: target/release/stove.exe
asset_name: stove.exe
asset_content_type: application/x-msdownload
# windows:
# needs: draft
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - uses: Swatinem/rust-cache@v1
# - name: build
# run: cargo build -r
# - name: upload
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ needs.draft.outputs.upload }}
# asset_path: target/release/stove.exe
# asset_name: stove.exe
# asset_content_type: application/x-msdownload

macos:
needs: draft
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ edition = "2021"

[dependencies]
unreal_asset = { git = "https://github.com/astrotechies/unrealmodding", rev = "40bc421" }
repak = { git = "https://github.com/bananaturtlesandwich/repak", rev = "87f8190", features = ["oodle"] }
repak = { git = "https://github.com/bananaturtlesandwich/repak", rev = "87f8190" }
aes = "0.8"
glam = { version = "0.23", features = ["fast-math", "bytemuck"] }
winit = "0.28"
egui = { version = "0.22", features = ["persistence", "serde"] }
egui-winit = "0.22"
egui-wgpu = "0.22"
pollster = { version = "0.3", features = ["macro"]}
pollster = { version = "0.3", features = ["macro"] }
egui-notify = "0.7"
egui_file = "0.10"
bytemuck = "1.13"
Expand Down
13 changes: 9 additions & 4 deletions src/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ impl Actor {
let name = match asset.get_engine_version()
>= unreal_asset::engine_version::EngineVersion::VER_UE5_1
{
true => {
let len = i32::from_le_bytes(norm.extras[8..12].try_into().unwrap()) as usize;
String::from_utf8(norm.extras[12..12 + len].to_vec()).unwrap()
}
true => match norm.extras[8..12]
.try_into()
.ok()
.map(|i| i32::from_le_bytes(i) as usize)
.and_then(|len| String::from_utf8(norm.extras[12..12 + len].to_vec()).ok())
{
Some(name) => name,
None => norm.base_export.object_name.get_owned_content(),
},
false => norm.base_export.object_name.get_owned_content(),
};
let class = asset
Expand Down

0 comments on commit b6aa876

Please sign in to comment.