mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 15:09:58 -04:00
Build kit: ship AMD's amd_fidelityfx_vk.dll for FSR 3.1 (make_kit.py --ffx) and let its DLLs past the size check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -33,7 +33,7 @@ def copy_tree(src, dst):
|
|||||||
def main():
|
def main():
|
||||||
ap = argparse.ArgumentParser(description=__doc__.splitlines()[0])
|
ap = argparse.ArgumentParser(description=__doc__.splitlines()[0])
|
||||||
ap.add_argument('--xlate', type=Path, required=True, help='folder with nx2navi_xlate.exe and nx2navi_xlate.id')
|
ap.add_argument('--xlate', type=Path, required=True, help='folder with nx2navi_xlate.exe and nx2navi_xlate.id')
|
||||||
ap.add_argument('--ffx', type=Path, help='AMD's signed amd_fidelityfx_vk.dll (FidelityFX SDK 1.1.4, MIT) for FSR 3.1')
|
ap.add_argument('--ffx', type=Path, help="AMD's signed amd_fidelityfx_vk.dll (FidelityFX SDK 1.1.4, MIT) for FSR 3.1")
|
||||||
ap.add_argument('--out', type=Path, default=ROOT / 'build' / 'kit')
|
ap.add_argument('--out', type=Path, default=ROOT / 'build' / 'kit')
|
||||||
ap.add_argument('--zip', action='store_true')
|
ap.add_argument('--zip', action='store_true')
|
||||||
a = ap.parse_args()
|
a = ap.parse_args()
|
||||||
@@ -58,7 +58,7 @@ def main():
|
|||||||
sys.path.insert(0, str(ROOT / 'tools'))
|
sys.path.insert(0, str(ROOT / 'tools'))
|
||||||
import check_content
|
import check_content
|
||||||
bad = [f'{p.relative_to(kit)}: {m}' for p in sorted(kit.rglob('*')) if p.is_file()
|
bad = [f'{p.relative_to(kit)}: {m}' for p in sorted(kit.rglob('*')) if p.is_file()
|
||||||
for m in check_content.problems_for(p, allow_large=p.suffix == '.exe')]
|
for m in check_content.problems_for(p, allow_large=p.suffix in ('.exe', '.dll'))] # the translator, AMD's DLL
|
||||||
if bad:
|
if bad:
|
||||||
sys.exit('check_content refuses these kit files, not zipped:\n ' + '\n '.join(bad[:20]))
|
sys.exit('check_content refuses these kit files, not zipped:\n ' + '\n '.join(bad[:20]))
|
||||||
size = sum(p.stat().st_size for p in kit.rglob('*') if p.is_file())
|
size = sum(p.stat().st_size for p in kit.rglob('*') if p.is_file())
|
||||||
|
|||||||
Reference in New Issue
Block a user