Jump to content
Sign in to follow this  

Forçar Nome De Executável

Recommended Posts

Serve para que o cliente fechar-se caso não possua o nome pré-definido.

Exemplo: O nome pré-definido é "Blabla.exe", se o executável do cliente for Blabla.exe então irá abrir. Caso o nome seja diferente, por exemplo BlaBla1.exe, o cliente irá fechar-se.


Ir até ao ficheiro game/src/input.cpp


Procurar por:


void CInputProcessor::Version(LPCHARACTER ch, const char* c_pData)


if (!ch)



TPacketCGClientVersion * p = (TPacketCGClientVersion *) c_pData;


Adicionar isto debaixo:


if( (strcmp(p->filename,"Blabla.exe")) )


ch->ChatPacket(CHAT_TYPE_NOTICE, "Nome modificado.");





Onde Blabla.exe = nome e extensão do ficheiro.

  • Upvote 3

Share this post

Link to post
Share on other sites

God God Please login or register to see this image. /uploads/emoticons/xenforo-smilies-sprite.png.97df0244ddd4d80ccdb85c1862bc58e1.png">

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.

Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker.
You will be able to see content when you disable your adblocker and enable javascript.