Compare commits

...

5 Commits

Author SHA1 Message Date
thecozies
7de18d10fc Merge pull request #714 from HackerN64/develop/2.1.2
Release: v2.1.2
2023-09-27 16:54:38 -05:00
Gregory Heskett
01c3f20c6f v2.1.2 2023-09-27 11:13:53 -05:00
thecozies
38f25d2b83 rename flips src dir (#711) 2023-09-27 11:55:14 -04:00
someone2639
48bea33052 spawn lakitu at the origin (#712)
Co-authored-by: someone2639 <someone2639@gmail.com>
2023-09-27 11:54:00 -04:00
thecozies
b8f770ae48 Release/2.1.1 (#709)
* removed extraneous mat stack index decrement in geo_process_camera (#708)

* Fixed typo in FCR enums (#707)

* v2.1.1

---------

Co-authored-by: Matt Pharoah <mtpharoah@gmail.com>
2023-09-26 14:05:46 -04:00
8 changed files with 15 additions and 16 deletions

View File

@@ -1 +1 @@
v2.1.0
v2.1.2

View File

@@ -4,19 +4,19 @@
#include "types.h"
typedef enum {
FRC_RM_ROUND_TO_NEAREST = 0x0,
FRC_RM_ROUND_TO_ZERO = 0x1,
FRC_RM_ROUND_TO_POSITIVE_INFINITY = 0x2,
FRC_RM_ROUND_TO_MINUS_INFINITY = 0x3
FCR_RM_ROUND_TO_NEAREST = 0x0,
FCR_RM_ROUND_TO_ZERO = 0x1,
FCR_RM_ROUND_TO_POSITIVE_INFINITY = 0x2,
FCR_RM_ROUND_TO_MINUS_INFINITY = 0x3
} FloatRoundingMode;
typedef enum {
FRC_EXCEPTION_INEXACT_OPERATION = 0x1,
FRC_EXCEPTION_UNDERFLOW = 0x2,
FRC_EXCEPTION_OVERFLOW = 0x4,
FRC_EXCEPTION_DIVISION_BY_ZERO = 0x8,
FRC_EXCEPTION_INVALID_OPERATION = 0x10,
FRC_EXCEPTION_UNIMPLEMENTED_OPERATION = 0x20 // only for Cause bits
FCR_EXCEPTION_INEXACT_OPERATION = 0x1,
FCR_EXCEPTION_UNDERFLOW = 0x2,
FCR_EXCEPTION_OVERFLOW = 0x4,
FCR_EXCEPTION_DIVISION_BY_ZERO = 0x8,
FCR_EXCEPTION_INVALID_OPERATION = 0x10,
FCR_EXCEPTION_UNIMPLEMENTED_OPERATION = 0x20 // only for Cause bits
} FloatExceptionBits;
extern FloatRoundingMode fcr_get_rounding_mode(void);

View File

@@ -35,7 +35,7 @@ void bhv_intro_scene_loop(void) {
switch (gCutsceneObjSpawn) {
case CUTSCENE_OBJ_BEGINNING_LAKITU:
spawn_object(o, MODEL_LAKITU, bhvBeginningLakitu);
spawn_object_at_origin(o, 0, MODEL_LAKITU, bhvBeginningLakitu);
break;
case CUTSCENE_OBJ_BEGINNING_PEACH:

View File

@@ -101,7 +101,7 @@ void detect_emulator() {
* RZ will output not 1.0f, RN will output exactly 1.0f
*/
const FloatRoundingMode roundingMode = fcr_get_rounding_mode();
fcr_set_rounding_mode(FRC_RM_ROUND_TO_NEAREST);
fcr_set_rounding_mode(FCR_RM_ROUND_TO_NEAREST);
if (1.0f != round_double_to_float(0.9999999999999999)) {
gEmulator = EMU_WIIVC;
fcr_set_rounding_mode(roundingMode);

View File

@@ -47,7 +47,7 @@
*
*/
s16 gMatStackIndex;
s16 gMatStackIndex = 0;
ALIGNED16 Mat4 gMatStack[32];
ALIGNED16 Mtx *gMatStackFixed[32];
f32 sAspectRatio;
@@ -722,7 +722,6 @@ void geo_process_camera(struct GraphNodeCamera *node) {
geo_process_node_and_siblings(node->fnNode.node.children);
gCurGraphNodeCamera = NULL;
}
gMatStackIndex--;
}
/**

View File

@@ -65,7 +65,7 @@ ifeq ($(HOST_ENV),MinGW)
endif
flips: CC := $(CXX)
flips_SOURCES := Flips/Flips.cpp
flips_SOURCES := FlipsSrc/Flips.cpp
flips_CFLAGS := -Wall -Wextra -fopenmp -Os -flto -fuse-linker-plugin -fomit-frame-pointer -fmerge-all-constants \
-fvisibility=hidden -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables \
-ffunction-sections -fdata-sections -Wl,--gc-sections \