From 724c531b26c2aaf5c69cd261f688f4981001b61d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9E=81=E5=AE=A2=E6=9F=92?=
<58359338+badApple001@users.noreply.github.com>
Date: Wed, 3 Jan 2024 16:52:40 +0800
Subject: [PATCH] use _crt_secure_no_warnings #define _CRT_SECURE_NO_WARNINGS
---
.gitignore | 1 +
Il2cppEncrtypt.vcxproj | 3 +++
Native.cpp | 4 ++++
framework.h | 3 ++-
4 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index d8a0746..ced67c2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
.vs/*
+x64/*
diff --git a/Il2cppEncrtypt.vcxproj b/Il2cppEncrtypt.vcxproj
index 5a4310f..59f24f8 100644
--- a/Il2cppEncrtypt.vcxproj
+++ b/Il2cppEncrtypt.vcxproj
@@ -73,6 +73,9 @@
EasyObfuscation
+
+ EasyObfuscation
+
Level3
diff --git a/Native.cpp b/Native.cpp
index 7c5c7a4..d9f72d7 100644
--- a/Native.cpp
+++ b/Native.cpp
@@ -1,3 +1,5 @@
+
+
#include "pch.h"
#include "Native.h"
#include
@@ -11,6 +13,8 @@
#include
using namespace std;
+
+
static random_device s_seed; //硬件生成随机种子
static ranlux48 s_randomEngine(s_seed()); //利用种子生成随机数引擎
static uniform_int_distribution s_uint_distrib(UINT_MAX / 2, UINT_MAX);
diff --git a/framework.h b/framework.h
index 80cbbc9..07b8687 100644
--- a/framework.h
+++ b/framework.h
@@ -1,5 +1,6 @@
锘#pragma once
#define WIN32_LEAN_AND_MEAN // 浠 Windows 澶存枃浠朵腑鎺掗櫎鏋佸皯浣跨敤鐨勫唴瀹
+#define _CRT_SECURE_NO_WARNINGS
// Windows 澶存枃浠
-#include
+#include
\ No newline at end of file