Jump to content
Sign in to follow this  
underewar

[7.6] Alterando a Prioridade da Executável(Source).

Recommended Posts

underewar    32
underewar

No otserv.cpp: 

Spoiler

#if definido __WINDOWS__ || WIN32 definido 
std :: string Priority = g_config.getGlobalString ("prioridade"); 
if (Prioridade == "normal") 
SetPriorityClass (GetCurrentProcess (), REALTIME_PRIORITY_CLASS); 
else if (Prioridade == "alta") 
SetPriorityClass (GetCurrentProcess (), HIGH_PRIORITY_CLASS); 
else if (Prioridade == "mais alta") 
SetPriorityClass (GetCurrentProcess (), ABOVE_NORMAL_PRIORITY_CLASS); 
#endif

 

No config.lua

Adicione a tag da propriedade adicionada.

Spoiler

 


prioridade = "real"

 

Qual é a prioridade para definir o OTS durante o início (normal, alta, mais alta).

Share this post


Link to post
Majesty    1,755
Majesty

Muito obrigado pela sua contribuição, seu tópico de conteúdo foi aprovado!
Nós do OTServ Brasil agradecemos, seu conteúdo com certeza ajudará a muitos outros. 
Você recebeu +1 REP!

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

×