Git Product home page Git Product logo

pvpgn's People

Contributors

d1zzy avatar pelish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pvpgn's Issues

str_to_hex, hex_to_str in utils.cpp

Noticed someone was complaining about str_to_hex and hex_to_str in the file, maybe they'll like this a little better.

void StringToHex(const UCHAR *datainput, UINT32 datalength, std::string &outbuffer)
{
	static const char *values = "0123456789ABCDEF";
	outbuffer = "";
	for (UINT i = 0; i < datalength; i++) {
		const UCHAR c = datainput[i];
		outbuffer += values[c >> 4];
		outbuffer += values[c & 15];
	}
}

void HexToString(const UCHAR *datainput, UINT32 datalength, UCHAR *OutPut)
{
	if (datalength & 1) throw std::invalid_argument("HexToString: Bad length!");
	static const char *values = "0123456789ABCDEF";

	for (UINT i = 0; i < datalength; i += 2)
	{
		char a = datainput[i];
		char b = datainput[i + 1];
		const char* c = std::lower_bound(values, values + 16, a);
		if (*c != a) throw std::invalid_argument("HexToString: [a] not a hex digit");
		const char* d = std::lower_bound(values, values + 16, b);
		if (*d != b) throw std::invalid_argument("HexToString: [b] not a hex digit");

		OutPut[i / 2] = ((c - values) << 4) | (d - values);
	}
}

Php Track & track.h

Hello, sorry for my horrible English, I am Argentine. I was looking about TrackPHP, although it is a dead code seems to work and that part can optimize it. But for that to work you would need to add that "track.h" file that includes the pvpgn server (attached). I wondered if they could add it to the project so work on the new version of TrackPHP then share the code. Of course, I would appreciate an answer.

tracker.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.