From 0dd8da7b4a754a9a7e6af94f13b47c8c83776401 Mon Sep 17 00:00:00 2001 From: Alphalaneous <38200084+Alphalaneous@users.noreply.github.com> Date: Thu, 27 Jun 2024 17:45:06 -0400 Subject: [PATCH] maybe --- src/main.cpp | 2 ++ src/utils/Utils.h | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6c76d62..7c04ad2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,5 @@ +#define _CRT_SECURE_NO_DEPRECATE + #include #include "ui/hooks/MenuLayer.h" #include "ui/hooks/LoadingLayer.h" diff --git a/src/utils/Utils.h b/src/utils/Utils.h index 54102c5..455f423 100644 --- a/src/utils/Utils.h +++ b/src/utils/Utils.h @@ -214,8 +214,6 @@ class Utils { return newSplash; } - #define _CRT_SECURE_NO_WARNINGS - static std::string wstrToStr(std::wstring wstr) { int slength = (int)wstr.length() + 1; @@ -226,8 +224,6 @@ class Utils { return r; } - #undef _CRT_SECURE_NO_WARNINGS - static ccColor3B colorForCode(wchar_t code){ switch(code){