mirror of
https://github.com/open-goal/jak-project
synced 2026-07-07 14:13:45 -04:00
[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:
@@ -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)))
|
||||
)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user