Jump to content

[C++] Autobackup


Metin2
 Share

Recommended Posts

trago um autobackup via c++ vamos la.

Server/common:

length.h

Buscar:

enum EMisc
{

colocar abaixo:

#ifdef ENABLE_AUTO_BACKUP_SYSTEM
	AUTOLOGCLEAR_SAVE_TIME	= 3600*24,		// Limpa LOGS e BACKUP a cada 24 horas
#endif

service.h

#define ENABLE_AUTO_BACKUP_SYSTEM						//limpa log e Backup automatico

Agora vá ate Server/game/src:

main.ccp:

Buscar:

s_dwProfiler[PROF_HEARTBEAT] += (get_dword_time() - t);

Colocar acima:

#ifdef ENABLE_BEVIS_AUTO_BACKUP_SYSTEM
	if (!(pulse % (passes_per_sec * AUTOLOGCLEAR_SAVE_TIME))){
		if (g_bAuthServer)
			std::system("cd /metin2 && sh autobackup.sh");
	}

#endif

VirusTotal

Dowload:

 

Backups.rar

  • Like 1
  • Thanks 2
Link to comment
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
 Share

×
×
  • Create New...