Jump to content

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

UserInterface/PythonNetworkStreamModule.cpp

 

Search: 

#include "AbstractPlayer.h"

add after

#ifdef ENABLE_FIX_D_YMIR_WORK
#include <windows.h>
#include <string>
bool WrongPathYmir(const std::string& dirName_in)
{
	DWORD type = GetFileAttributesA(dirName_in.c_str());

	if (type == INVALID_FILE_ATTRIBUTES)
		return false;

	if (type & FILE_ATTRIBUTE_DIRECTORY)
		return true;

	return false;
}
#endif

search:

PyObject* netSetLoginInfo(PyObject* poSelf, PyObject* poArgs)
{

before  char* szName; add:

#ifdef ENABLE_FIX_D_YMIR_WORK
	std::string moduleFake = "**D:\\ymir work\\**";
	if (WrongPathYmir(std::string("D") + std::string(":\\") + std::string("ymir") + std::string(" work\\")))
	{
		TraceError("D:\\ymir work folder detected.");
		::Sleep(500);
		exit(0);
	}
#endif

 

It's not made by me

This checks the folder when you login in game.

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.