Jump to content

[binary function / method] net.GetLoginID()


Recommended Posts

  • Premium

M2 Download Center

This is the hidden content, please
( Internal )

spacer.png

 

UserInterface/PythonNetworkStream.h

search for:

void SetLoginInfo(const char* c_szID, const char* c_szPassword);

paste this under it:

std::string GetLoginID() const {return m_stID;}

UserInterface/PythonNetworkStreamModule.cpp

search for:

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

paste this under it:

PyObject* netGetLoginID(PyObject* poSelf, PyObject* poArgs)
{
	CPythonNetworkStream& rkNetStream=CPythonNetworkStream::Instance();
	return Py_BuildValue("s", rkNetStream.GetLoginID().c_str());
}

search for:

{ "SetLoginInfo",						netSetLoginInfo,						METH_VARARGS },

paste this under it:

{ "GetLoginID",								netGetLoginID,								METH_VARARGS },

 

usage: net.GetLoginID()
returns: string

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 7
  • Think 1
  • Good 4
  • Love 1
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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.