Compare commits

...

10 Commits

Author SHA1 Message Date
Agent X 4e01841693 . 2024-09-01 20:41:39 -04:00
ThePlayerRolo b18af26c61
Fix Compiler Bug. (#289)
* Add files via upload

* Update djui_panel_mod_menu.c

* Update djui_panel_mod_menu.c
2024-09-01 20:40:55 -04:00
Agent X 9bd8b7f017 Fix FOV jank 2024-09-01 19:19:10 -04:00
Agent X 044413653e This is no longer needed 2024-09-01 19:02:58 -04:00
Agent X a4ed5ddb53 v1.0.3 2024-09-01 19:00:38 -04:00
Agent X dad54c3dd3 Fix socket warning text cutting off early 2024-09-01 19:00:04 -04:00
Agent X e6edb61dfb Bump online version 2024-09-01 17:51:20 -04:00
Agent X 4a971580ea Update mod_storage.cpp 2024-09-01 16:09:47 -04:00
Agent X d9512a392a Revert "Sanity check MSAA"
This reverts commit 627ea49c14.
2024-09-01 15:19:26 -04:00
Agent X c94990f743 v1.0.2 2024-09-01 14:17:52 -04:00
9 changed files with 12 additions and 22 deletions

View File

@ -12557,13 +12557,10 @@ SPTASK_STATE_FINISHED_DP = 4
MAX_VERSION_LENGTH = 32
--- @type integer
MINOR_VERSION_NUMBER = 1
--- @type integer
PATCH_VERSION_NUMBER = 0
MINOR_VERSION_NUMBER = 2
--- @type string
SM64COOPDX_VERSION = "v1.0.1"
SM64COOPDX_VERSION = "v1.0.3"
--- @type integer
VERSION_NUMBER = 37

View File

@ -4463,7 +4463,6 @@
## [version.h](#version.h)
- MAX_VERSION_LENGTH
- MINOR_VERSION_NUMBER
- PATCH_VERSION_NUMBER
- SM64COOPDX_VERSION
- VERSION_NUMBER
- VERSION_REGION

View File

@ -1156,7 +1156,7 @@ static s32 obj_is_in_view(struct GraphNodeObject *node, Mat4 matrix) {
// visibly pop in or out at the edge of the screen.
//
// Half of the fov in in-game angle units instead of degrees.
s16 halfFov = (get_first_person_enabled() ? gFirstPersonCamera.fov : not_zero(gCurGraphNodeCamFrustum->fov, gOverrideFOV) / 2.0f + 1.0f) * 32768.0f / 180.0f + 0.5f;
s16 halfFov = ((get_first_person_enabled() ? gFirstPersonCamera.fov : not_zero(gCurGraphNodeCamFrustum->fov, gOverrideFOV)) / 2.0f + 1.0f) * 32768.0f / 180.0f + 0.5f;
f32 divisor = coss(halfFov);
if (divisor == 0) { divisor = 1; }

View File

@ -6,7 +6,6 @@
#include <assert.h>
#include <ctype.h>
#include "pc_main.h"
#include "platform.h"
#include "configfile.h"
#include "cliopts.h"
@ -57,8 +56,6 @@ struct FunctionConfigOption {
/*
*Config options and default values
*/
static_assert(NUM_SAVE_FILES == 4); // update this if more save slots are added
char configSaveNames[4][MAX_SAVE_NAME_STRING] = {
"SM64",
"SM64",
@ -684,8 +681,6 @@ NEXT_OPTION:
fs_close(file);
if ((int)configWindow.msaa > WAPI.get_max_msaa()) { configWindow.msaa = WAPI.get_max_msaa(); }
if (configFrameLimit < 30) { configFrameLimit = 30; }
if (configFrameLimit > 3000) { configFrameLimit = 3000; }

View File

@ -47,11 +47,10 @@ void djui_panel_host_message_do_host(UNUSED struct DjuiBase* caller) {
}
void djui_panel_host_message_create(struct DjuiBase* caller) {
f32 warningLines = 0;
char* warningMessage = NULL;
bool hideHostButton = false;
warningLines = 7;
f32 warningLines = 8;
warningMessage = calloc(512, sizeof(char));
snprintf(warningMessage, 512, DLANG(HOST_MESSAGE, WARN_SOCKET), configHostPort);

View File

@ -87,7 +87,9 @@ static void djui_panel_mod_menu_mod_create_element(struct DjuiBase* parent, int
}
break;
}
case MOD_MENU_ELEMENT_MAX:
case MOD_MENU_ELEMENT_MAX: {
break;
}
}
}

View File

@ -4397,11 +4397,10 @@ char gSmluaConstants[] = ""
"COOP_OBJ_FLAG_LUA = (1 << 1)\n"
"COOP_OBJ_FLAG_NON_SYNC = (1 << 2)\n"
"COOP_OBJ_FLAG_INITIALIZED = (1 << 3)\n"
"SM64COOPDX_VERSION = 'v1.0.1'\n"
"SM64COOPDX_VERSION = 'v1.0.3'\n"
"VERSION_TEXT = 'v'\n"
"VERSION_NUMBER = 37\n"
"MINOR_VERSION_NUMBER = 1\n"
"PATCH_VERSION_NUMBER = 0\n"
"MINOR_VERSION_NUMBER = 2\n"
"VERSION_REGION = 'JP'\n"
"VERSION_REGION = 'EU'\n"
"VERSION_REGION = 'SH'\n"

View File

@ -96,7 +96,7 @@ C_FIELD bool mod_storage_save_number(const char* key, f32 value) {
// this assumes mod_storage_load will only ever be called by Lua
static char str[MAX_KEY_VALUE_LENGTH];
if (floor(value) == value) {
snprintf(str, MAX_KEY_VALUE_LENGTH, "%d", (s64)value);
snprintf(str, MAX_KEY_VALUE_LENGTH, "%lld", (s64)value);
} else {
snprintf(str, MAX_KEY_VALUE_LENGTH, "%f", value);
}

View File

@ -1,13 +1,12 @@
#ifndef VERSION_H
#define VERSION_H
#define SM64COOPDX_VERSION "v1.0.1"
#define SM64COOPDX_VERSION "v1.0.3"
// internal version
#define VERSION_TEXT "v"
#define VERSION_NUMBER 37
#define MINOR_VERSION_NUMBER 1
#define PATCH_VERSION_NUMBER 0
#define MINOR_VERSION_NUMBER 2
#if defined(VERSION_JP)
#define VERSION_REGION "JP"