[jak2] force-envmap? hack (#2316)

Also affects texscroll and ripple, but I'm not sure what would be good
places to test those.
This commit is contained in:
ManDude
2023-03-11 22:13:55 +00:00
committed by GitHub
parent a1dee19d0d
commit 0c64d48b0d
3 changed files with 8 additions and 3 deletions
@@ -857,6 +857,9 @@
)
;;(.lui fg-work 28672)
(set! fg-work (scratchpad-object foreground-work))
(with-pc
(when (-> *pc-settings* force-envmap?)
(set! dist-in 0.0)))
(let* ((bone-calc (the-as bone-calculation (-> dma-buf base)))
(matrix-mem (the-as object (&+ (the-as pointer bone-calc) 64)))
)
+1 -1
View File
@@ -771,7 +771,7 @@
)
(menu "Level of detail"
(flag "PS2 LOD " #f ,(dm-lambda-boolean-flag (-> *pc-settings* ps2-lod-dist?)))
;(flag "Force Envmap" #f ,(dm-lambda-boolean-flag (-> *pc-settings* force-envmap?)))
(flag "Force Envmap" #f ,(dm-lambda-boolean-flag (-> *pc-settings* force-envmap?)))
(int-var "LOD Tfrag" 0 dm-lod-int 0 1 #t 0 2)
(int-var "LOD Tie" 1 dm-lod-int 0 1 #t 0 3)
;(int-var "LOD Ocean" 2 dm-lod-int 0 1 #t 0 3)
@@ -92,5 +92,7 @@ def update_all_blocks(game_name, block_dict):
final_lines.append(line)
i = i + 1
# Update the file contents
with open(path, "w") as f:
f.writelines(final_lines)
# Don't write a new file unless we have to, though
if lines != final_lines:
with open(path, "w") as f:
f.writelines(final_lines)