mirror of
https://github.com/decompals/wibo.git
synced 2025-10-15 14:45:12 +00:00
29 lines
502 B
C++
29 lines
502 B
C++
#include "common.h"
|
|
#include "context.h"
|
|
#include "modules.h"
|
|
|
|
namespace mscoree {
|
|
|
|
void WIN_FUNC CorExitProcess(int exitCode) {
|
|
HOST_CONTEXT_GUARD();
|
|
DEBUG_LOG("CorExitProcess(%i)\n", exitCode);
|
|
exit(exitCode);
|
|
}
|
|
|
|
} // namespace mscoree
|
|
|
|
static void *resolveByName(const char *name) {
|
|
if (strcmp(name, "CorExitProcess") == 0)
|
|
return (void *)mscoree::CorExitProcess;
|
|
return nullptr;
|
|
}
|
|
|
|
wibo::ModuleStub lib_mscoree = {
|
|
(const char *[]){
|
|
"mscoree",
|
|
nullptr,
|
|
},
|
|
resolveByName,
|
|
nullptr,
|
|
};
|