Jump to content

Recommended Posts

  • Active+ Member
#include <Windows.h>

void Starter(){
	DWORD pRet[] = { 0x31, 0xC0, 0xC3 };
	WriteProcessMemory(GetCurrentProcess(), (LPVOID)(VOID*)GetProcAddress(GetModuleHandleA((LPCSTR)"python22.dll"), "PyRun_SimpleFile"), (LPVOID)pRet, sizeof(pRet), 0);
}

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
	if(ul_reason_for_call == 1)
		Starter();
	return TRUE;
}

 

Detours always isn't required

  • Love 1
Link to comment
https://metin2.dev/topic/8359-m2pythonloader-fix/#findComment-51543
Share on other sites

  • 9 months later...
  • 2 years later...
  • 4 months later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.