Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Razmoth authored Sep 22, 2023
2 parents 6ebeaee + 45f3c10 commit d6e8caa
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build
on:
push:
branches:
- 'dev'
- 'main'
paths-ignore:
- '**/LICENSE'
- '**/README.md'
Expand Down
11 changes: 11 additions & 0 deletions AssetStudio/Classes/Shader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,17 @@ public SerializedSubProgram(ObjectReader reader)
m_GpuProgramType = (ShaderGpuProgramType)reader.ReadSByte();
reader.AlignStream();

if (reader.Game.Name == "GI" && (m_GpuProgramType == ShaderGpuProgramType.Unknown || !Enum.IsDefined(typeof(ShaderGpuProgramType), m_GpuProgramType)))
{
reader.Position -= 4;
var m_LocalKeywordIndices = reader.ReadUInt16Array();
reader.AlignStream();

m_ShaderHardwareTier = reader.ReadSByte();
m_GpuProgramType = (ShaderGpuProgramType)reader.ReadSByte();
reader.AlignStream();
}

if ((version[0] == 2020 && version[1] > 3) ||
(version[0] == 2020 && version[1] == 3 && version[2] >= 2) || //2020.3.2f1 and up
(version[0] > 2021) ||
Expand Down
8 changes: 8 additions & 0 deletions AssetStudioGUI/AssetStudioGUIForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion AssetStudioGUI/GUILogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void Log(LoggerEvent loggerEvent, string message, bool silent = false)
action(message);
break;
}

return message;
}
}
}
30 changes: 30 additions & 0 deletions AssetStudioGUI/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,4 @@ Special Thank to:
- Khang06: [Project](https://github.com/khang06/genshinblkstuff) for extraction.
- Radioegor146: [Asset-indexes](https://github.com/radioegor146/gi-asset-indexes) for recovered/updated asset_index's.
- Ds5678: [AssetRipper](https://github.com/AssetRipper/AssetRipper)[[discord](https://discord.gg/XqXa53W2Yh)] for information about Asset Formats & Parsing.
- mafaca: [uTinyRipper](https://github.com/mafaca/UtinyRipper) for `YAML` and `AnimationClipConverter`.
_____________________________________________________________________________________________________________________________

If you find `Studio` useful, you can leave a star 😄
If you want to support (optional), you can do so [here](https://ko-fi.com/razmoth)

Thank you, looking forward for your feedback
- mafaca: [uTinyRipper](https://github.com/mafaca/UtinyRipper) for `YAML` and `AnimationClipConverter`.
28 changes: 28 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
image: Visual Studio 2022

shallow_clone: true
clone_depth: 1
cache:
- '%APPVEYOR_BUILD_FOLDER%\AssetStudioFBXNative\obj'
- '%LocalAppData%\NuGet\v3-cache' # NuGet v3

environment:
FBX_SDK: https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-3-2/fbx202032_fbxsdk_vs2019_win.exe
File_NAME: Studio
File_Format: zip

install:
- pwsh: appveyor DownloadFile $env:FBX_SDK && Start (Get-ChildItem ./'fbx*'.exe -Name) /S -Wait

build_script:
- msbuild -m -t:AssetStudioGUI:publish -t:AssetStudioCLI:publish -r -p:Configuration=Release -v:minimal AssetStudio.sln

after_build:
- ps: $env:TIME_STRING=(Get-Date -UFormat "%Y%m%d%H%M%S%a").ToString()
- 7z a -y -mx9 %File_NAME%-%TIME_STRING%.%File_Format% %APPVEYOR_BUILD_FOLDER%\AssetStudioGUI\bin\Release\net6.0-windows\publish\
- appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\%File_NAME%-%TIME_STRING%.%File_Format%

# artifacts:
# - path: AssetStudioGUI\bin\Release\net6.0-windows\publish\
# name: "%File_NAME%-%TIME_STRING%.%File_Format%"
# type: zip

0 comments on commit d6e8caa

Please sign in to comment.