From 48f519aa6a1b050c5086e1c32d59086763369563 Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Mon, 19 Feb 2024 18:17:27 +0100 Subject: [PATCH] use CS_FLOAT --- extract_assets.py | 2 +- include/z64cutscene_commands.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/extract_assets.py b/extract_assets.py index ced7da4a1c..1aa6853f4c 100755 --- a/extract_assets.py +++ b/extract_assets.py @@ -28,7 +28,7 @@ def ExtractFile(xmlPath, outputPath, outputSourcePath): Path(outputPath).mkdir(parents=True, exist_ok=True) Path(outputSourcePath).mkdir(parents=True, exist_ok=True) - execStr = f"{zapdPath} e -eh -i {xmlPath} -b baseroms/gc-eu-mq-dbg/segments -o {outputPath} -osf {outputSourcePath} -gsf 1 -rconf {configPath} {ZAPDArgs}" + execStr = f"{zapdPath} e -eh -i {xmlPath} -b baseroms/gc-eu-mq-dbg/segments -o {outputPath} -osf {outputSourcePath} -gsf 1 -rconf {configPath} --cs-float both {ZAPDArgs}" if "overlays" in xmlPath: execStr += " --static" diff --git a/include/z64cutscene_commands.h b/include/z64cutscene_commands.h index beaecb7984..f5f74b756c 100644 --- a/include/z64cutscene_commands.h +++ b/include/z64cutscene_commands.h @@ -22,8 +22,10 @@ */ #ifdef __GNUC__ +#define CS_FLOAT(ieee754bin, f) (f) #define CMD_F(a) {.f = (a)} #else +#define CS_FLOAT(ieee754bin, f) (ieee754bin) #define CMD_F(a) {(a)} #endif