Skip to content

Commit

Permalink
[unity]去掉多余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Nov 6, 2024
1 parent 54de836 commit 0415fc4
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions unity/native_src_il2cpp/Src/PesapiAddonLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,11 @@
*/

#include "pesapi.h"
#if defined(PLATFORM_WINDOWS)
#include <windows.h>
#endif

#include <map>
#include <string>
#include <iostream>
#include <regex>

#pragma warning(push, 0)
#include "libplatform/libplatform.h"
#include "v8.h"
#pragma warning(pop)

#define STRINGIFY_(x) #x
#define STRINGIFY(x) STRINGIFY_(x)

#ifndef MSVC_PRAGMA
#if !defined(__clang__) && defined(_MSC_VER)
#define MSVC_PRAGMA(Pragma) __pragma(Pragma)
#else
#define MSVC_PRAGMA(...)
#endif
#endif

static std::map<std::string, void*> GHandlers;

static int LoadAddon(const char* path, const char* module_name)
{
return -1;
}

EXTERN_C_START
int pesapi_load_addon(const char* path, const char* module_name)
{
return LoadAddon(path, module_name);
return -1;
}

EXTERN_C_END
Expand Down

0 comments on commit 0415fc4

Please sign in to comment.