[pr-fix][shaders] Translate, shader-info: shaders are not saved into a source tree #73
Loading…
Reference in a new issue
No description provided.
Delete branch "iboom72/shader-saves-outside-repo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What it changes
Saved shaders come from the game, so rule #1 keeps them out of the repository (
docs/asset-policy.md).darner translaterefused aDARNER_EMIT_DUMPfolder inside a source tree, but not the folders ofDARNER_FAIL_DUMPandDARNER_DUMP_MATCH.darner shader-infonever checkedDARNER_SHADER_SAVEeither. All three now go throughdarner_core::ensure_outside_repobefore any work starts, asDARNER_EMIT_DUMPalready did.The test that refused
DARNER_EMIT_DUMPinside the repo now goes through all four switches, one at a time. Without this change, three of the four end on the missing input folder instead ofPolicyError::InsideRepo.The switches that
darner-gpuanddarner-hleread during a run are not changed.How it was tested
f4dbb344cargo test -p darner: unit tests 131 passed, 1 ignored; integration tests 2 + 2 + 8 passed. This includestranslate::tests::dump_inside_repo_is_refused.cargo clippy -p darner --all-targets -- -D warnings: no warnings.darnerpackage, without--locked.Checklist
main.docs/asset-policy.md.Checked for overlap