Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Launcher AutoUpdate Pyke Lastest Version  (Visto 14128 veces)

0 Miembros and 2 Guests are viewing this topic.

Offline lunaticodeveloper Posteado: July 05, 2021, 02:44:38 PM

  • MAESTRO

  • US. DE HONOR

  • Anunciante
  • +4 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 1.794
  • Gracias recibida: 28539
  • ar


Libero este launcher con sources que consegui hace par de meses.

Tiene par de detalles pero nada grave y es bastante funcional.

Descarga:

Soporte premium ya sabes contactame!
Experto en MuOnline! Mira mis aportes de primera!

Gracias:

Shak3r, Specifier, neoking007, libertygames, megamakay, wener1992, DevMMORPG, Eronrw1, hicky, prano, hsowaty, richard88, cybercomaqp, Clipo, tcheloft, azard, king992253, stanger777, tantradeveloper, Mercer, gideon, thekingg, Sosh, kimera, Phantasm, yokkjll, Domedica, vipgale01, e911217, ImportedPotato, Cruelizon, kamuskina, Shrimp, dab30, hide3by, akumaxis, meiwenhan123, Lucyan, Zike, kingofmubn, elitingo, dkservermus6, mauri64, mutantekut, ShinichiL, RoleS123, maiconlive, OBBY, max1musn1, Maxiclar, darkes607, Aero, WTeam Dev, Jonatan, stonegameplay, giangbana, deonny, OMEGANETWORKS, 0bsidian, Xysad, amadeusx2, Genilson23, qq670348570@hotmail, Tulkas, welison14, eraclio1, nopelingrush, Dexign, Iямαηɗαɗ ☠, tutu100, joecaster, duongcao, nhantac, BastarDesing, matseovt, paksuz, hellboycp33, lostalejandro_, havanna, oldrin, nicz01, Atlans, Viper, backerchen, chuky2003, frajola, kimrubi, musunblack, hans.ns, tiagozoletti, josuedavud, giveusatan, agusavila0, b680924, marvisur, carper, maritohh, djkaku, iT0mT0m, Goplay, djcarlospr, josejose, kellington, gffranzoni, vamchy33, sciphacker, hitimon, tosadorin1, JESUSB1, PachoRasta, iworz, mediodas20, Shaper, dakosmu, miruii, red2992, kryptongamer, zennybibi, felipesanto, dirtgames, muimmortal, rodrigoo22, DjGamer, Thuong10c8, S37uP, zeroalenda, doofy, Networks6, Mayealdhost, xcode, maiconsouza1997, nilomaster, sh4ll3, Juninsj22, vicio2008, universalmu4, 123456a, kabinjp, majiko23, zekcrom, harry130, v1rusjkee, oxey.mu, bons3gust, Encrypter, fhengsho, wozhangjia, vlgtre, binhchivn, qchaiquan, sieukhien, byweltin@gmail.com, leehenry1208, PowerNet, jhonhy, ziquielbr, llZeuzll, rodriiigo, samsunggon, wizardry99, ziza, victhorinox, Miisoia, RaduOnica, kksky, vituocgia, zaoner, tonisalvucci, sannea, Erick05, HayllanderBR, tangyi90, T-LEGENDARY, once_tao, jeangdr, truongtienhp, LABMU, GabrielDev, footballmuonline, XCodeCorp, nic269, matichile, stopk, Genius05, axeman192, jeanleandro, angel321, scfmt, birdy491, muccone, chauttc, makyntosh, straiker23, Ombre, josecola, ellite3, ucaff, boylasd, Pilligrim, TeamCB, dmtuan23, antony05, Vallesck, Archangelito, mario12, mublackout, zpzwb113, tklobo, xlichblack, wenleiady, SPK, muzin, weberson, xtian01, greensk8er, Rescate, YoshHatake, juani, nhanphu200, Andre1981, anhtjm94, traxxx, Syforce, coolgepds, bin9xhn2, rando, marcelin, redf0x, MADRUGA, binho, Smith200, vaneavanea31, dark, serg123, neeck1234, ezesosa, NghienMU, Crowley, luciferlg, pask1994, yejiunayangluo, emanuel22J, musouls, kaisudo, Saxius, mrdezner, myway, qixar, kieuson, 153426, morede2009, admmu, nescafe, dario, josrob21, SaintZeus, dem0n, MrRastaman, thienhavbt2, wanwaycom, kailknight, felix, plyn, admwoods14, Robins, news12, shinji1311, Junjinvn, maytocdo, vantuan02hn, tammadall, dreamboy7, Mazepa, xlbiellx, 4893298, yyf127, havanty, bollanog, xz18786628, lostcross, mugloves99, Murilo, Darki12345, dlawls662, theanh27, lstuan, RAGNAR111, Lazarocp2020, Rifah, smallz170, lizbeth, ProNexT, Angel18, powerpatic, zoomame, AlvaroGBO, reinerg53, mu2020, quanken, lucasvieira, jhahernandezcas, omgsf, mustx1, GoldSun, mos02673, spider, Sauro, clerigz, RaStraBaN, hamiltonsl, herjuni, mubalance, deportes97, ninope, iCoder, erickmalfoy, Fanta91, hu7vo6, midala23, TryMenow, quyanxu, styxhelix3, LeeHenry, muphantom, andres1207, xDeeH, Voodoo1, renansanx, Plate98, kove0816, m1sterio, rujirot, 0342043033, mulkanors, jeffzkie69, thesofer, ailsoncost, pablox, muzic25, lovesick000, thanhbinhqht, zeruskill, mek22, Assaft, ghmoraes, frenzo2009, onlinezajzaj, anh1pk, Wendigo, jumongski, taovanluc, djagripnos, jamiones24, 7glorious, phgkhh, tiendoanit, whisky123, Heitaok77, judakiss21, pimkungclub, LTP Team, tuyendam, Odisk, superrin, lechianh88, rlcm, 0971517666, Dear, ZabiinoOo, zlethanhlong, a269633915, tedomi, NoobDK, andreyzz, Thedevilslefthand, datkool, showmax, eragon, ballas, coolnware, Zeus, zeusadm, adryan, dahouzi, mavine, JavixFer, rodritwm, daimer, rikigandur, vitinhosl, FOX, renatovips, MsotoC, drynea, tcbaoanh, MichaelxD, Alexander, manfromvn, lobinhopk, muslum, Betell Host, wendyll, betinho, npt.formu, zhangjianle865

Offline manfromvn #1 Posteado: July 05, 2021, 04:05:56 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 81
  • Gracias recibida: 34
  • vn
Launcher S6 by Pyke Default .zip ? pyke has already shared this src.   is this new from you ?


Offline lunaticodeveloper #2 Posteado: July 05, 2021, 05:07:09 PM

  • MAESTRO

  • US. DE HONOR

  • Anunciante
  • +4 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 1.794
  • Gracias recibida: 28539
  • ar
Launcher S6 by Pyke Default .zip ? pyke has already shared this src.   is this new from you ?

he dont share the lastest ...  cool2

Soporte premium ya sabes contactame!
Experto en MuOnline! Mira mis aportes de primera!


Offline LTP Team #3 Posteado: July 06, 2021, 12:17:11 AM

  • C++ Coder
  • 0 puntos por ventas
  • *
  • *
  • Rank: Liga mayor
  • Posts: 196
  • Gracias recibida: 3891
  • ru
Its my old launcher sources with custom design)
Idk what Pyke do with this launcher, but he clearly does not deserve to be called his work

Gracias:


Offline judakiss21 #4 Posteado: July 06, 2021, 01:21:37 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 45
  • Gracias recibida: 13
  • ph
do u have some guide how to update Laucher


Offline Pyke #5 Posteado: July 06, 2021, 01:28:02 AM

  • MAESTRO

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 212
  • Gracias recibida: 15218
  • pl
Its my old launcher sources with custom design)
Idk what Pyke do with this launcher, but he clearly does not deserve to be called his work

Yes that true, even this design is not mine + deleted RSS Feeds and more, its like a demo ^^
All Credits to LTPTeam
Cheers  :*

Gracias:


Offline jumongski #6 Posteado: July 06, 2021, 05:17:17 AM

  • 0 puntos por ventas
  • *
  • Rank: Usuario activo
  • Posts: 79
  • Gracias recibida: 26
  • ae
Any other info? Limits? Tutorial?


Offline Pyke #7 Posteado: July 06, 2021, 05:45:43 AM

  • MAESTRO

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 212
  • Gracias recibida: 15218
  • pl
Any other info? Limits? Tutorial?

No limits. Its only not have RSS Feeds and some infomations, like info about patching.

Tutorial is simple
Code: [Select]
Step. 1

Compile the Launcher Client editing the MainWindow.xaml.cs and find below.
string SiteAdress = "https://muonline.best/LauncherUpdate/"

Step. 2

Copy from bin/Release Launcher.exe to your Client.

Step. 3

Now LauncherConfig&Update/Config > Run ConfigCreator.exe and edit the lines for you.
In same folder copy Launcher.bmd to your Client/Data/Local folder

Step. 4
Copy all files u need to update o LauncherUpdate/MiniUpdate/ and run LauncherUpdate.exe
just Start it and Check.

Step. 5

Copy all folder MiniUpdate to https://yoursite/LauncherUpdate/

Gracias:


Offline jumongski #8 Posteado: July 07, 2021, 01:39:19 PM

  • 0 puntos por ventas
  • *
  • Rank: Usuario activo
  • Posts: 79
  • Gracias recibida: 26
  • ae
Any other info? Limits? Tutorial?

No limits. Its only not have RSS Feeds and some infomations, like info about patching.

Tutorial is simple
Code: [Select]
Step. 1

Compile the Launcher Client editing the MainWindow.xaml.cs and find below.
string SiteAdress = "https://muonline.best/LauncherUpdate/"

Step. 2

Copy from bin/Release Launcher.exe to your Client.

Step. 3

Now LauncherConfig&Update/Config > Run ConfigCreator.exe and edit the lines for you.
In same folder copy Launcher.bmd to your Client/Data/Local folder

Step. 4
Copy all files u need to update o LauncherUpdate/MiniUpdate/ and run LauncherUpdate.exe
just Start it and Check.

Step. 5

Copy all folder MiniUpdate to https://yoursite/LauncherUpdate/

thank you this is very helpful!


Offline erickmalfoy #9 Posteado: July 15, 2021, 01:07:41 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 684
  • Gracias recibida: 773
  • ar
Algun error grave ?

Sera cuestion de probarlo :)

Gracias:


Offline onlinezajzaj #10 Posteado: July 15, 2021, 05:52:12 PM

  • MAESTRO

  • US. DE HONOR

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 662
  • Gracias recibida: 20053
  • vn
I can't enter the game, it's infinite loop


can you tell me how to fix it?


Offline lunaticodeveloper #11 Posteado: July 15, 2021, 06:26:33 PM

  • MAESTRO

  • US. DE HONOR

  • Anunciante
  • +4 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 1.794
  • Gracias recibida: 28539
  • ar
i dont have idea what are u doing this launcher work but need some funtional fixeds but at start if funtional to update and run the client....

Soporte premium ya sabes contactame!
Experto en MuOnline! Mira mis aportes de primera!


Offline Daniel@ #12 Posteado: July 15, 2021, 09:26:08 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 351
  • Gracias recibida: 3115
  • ve
Nosotros tenemos esta source pulida ya con varias cosas mejoradas , de echo es la que publicamos aqui

https://tuservermu.com.ve/index.php?topic=41133.0

Incluso ahora estamos en la versión 6.7
Y para que quien le guste la versión que creamos regalare 5 licencias a quien pase por ella directo en nuestras redes 👍

La verdad le faltaban muchas cosas pero es un exelente launcher.


Offline Daniel@ #13 Posteado: July 15, 2021, 09:27:46 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 351
  • Gracias recibida: 3115
  • ve
I can't enter the game, it's infinite loop


can you tell me how to fix it?

Check mutex launcher.


Offline onlinezajzaj #14 Posteado: July 16, 2021, 04:12:17 AM

  • MAESTRO

  • US. DE HONOR

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 662
  • Gracias recibida: 20053
  • vn
I use this code ? can you tell me how to fix it, i checked there is "mutex" but i don't understand it yet!


Code: [Select]
void CProtect::CheckLauncher() // OK
{

HANDLE hMutex = CreateMutex(NULL, FALSE, "#32770");

if (GetLastError() != ERROR_ALREADY_EXISTS)
{
WinExec("Launcher.exe",0); //ten launcher
ExitProcess (0);
}
return;
if((this->m_MainInfo.LauncherType & 1) == 0)
{
return;
}

if (FindWindow(0, gProtect.m_MainInfo.LauncherName) == 0)
{
ExitProcess(0);
}
}

@Daniel@
@lunaticodeveloper


Offline GoldSun #15 Posteado: July 16, 2021, 07:12:53 AM | Modificado: June 27, 2022, 09:31:51 PM by GoldSun

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 21
  • Gracias recibida: 1015
  • vn
I use this code ? can you tell me how to fix it, i checked there is "mutex" but i don't understand it yet!


Code: [Select]
void CProtect::CheckLauncher() // OK
{

HANDLE hMutex = CreateMutex(NULL, FALSE, "#32770");

if (GetLastError() != ERROR_ALREADY_EXISTS)
{
WinExec("Launcher.exe",0); //ten launcher
ExitProcess (0);
}
return;
if((this->m_MainInfo.LauncherType & 1) == 0)
{
return;
}

if (FindWindow(0, gProtect.m_MainInfo.LauncherName) == 0)
{
ExitProcess(0);
}
}

@Daniel@
@lunaticodeveloper


Offline erickmalfoy #16 Posteado: July 16, 2021, 10:22:07 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 684
  • Gracias recibida: 773
  • ar
I use this code ? can you tell me how to fix it, i checked there is "mutex" but i don't understand it yet!


Code: [Select]
void CProtect::CheckLauncher() // OK
{

HANDLE hMutex = CreateMutex(NULL, FALSE, "#32770");

if (GetLastError() != ERROR_ALREADY_EXISTS)
{
WinExec("Launcher.exe",0); //ten launcher
ExitProcess (0);
}
return;
if((this->m_MainInfo.LauncherType & 1) == 0)
{
return;
}

if (FindWindow(0, gProtect.m_MainInfo.LauncherName) == 0)
{
ExitProcess(0);
}
}

@Daniel@
@lunaticodeveloper

Code: [Select]
void CProtect::CheckLauncher() // OK
{
if ((this->m_MainInfo.LauncherType & 1) == 0)
{
return;
}

HANDLE hMutex = CreateMutex(NULL, FALSE, "#32770");
CloseHandle(hMutex);

if (GetLastError() != ERROR_ALREADY_EXISTS)
{
WinExec("Launcher.exe", 0);
ExitProcess(0);
}
}

Aun no fuerza el que abra el launcher cuando precionas el main :(


Offline GoldSun #17 Posteado: July 16, 2021, 10:30:33 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 21
  • Gracias recibida: 1015
  • vn
I use this code ? can you tell me how to fix it, i checked there is "mutex" but i don't understand it yet!


Code: [Select]
void CProtect::CheckLauncher() // OK
{

HANDLE hMutex = CreateMutex(NULL, FALSE, "#32770");

if (GetLastError() != ERROR_ALREADY_EXISTS)
{
WinExec("Launcher.exe",0); //ten launcher
ExitProcess (0);
}
return;
if((this->m_MainInfo.LauncherType & 1) == 0)
{
return;
}

if (FindWindow(0, gProtect.m_MainInfo.LauncherName) == 0)
{
ExitProcess(0);
}
}

@Daniel@
@lunaticodeveloper

Code: [Select]
void CProtect::CheckLauncher() // OK
{
if ((this->m_MainInfo.LauncherType & 1) == 0)
{
return;
}

HANDLE hMutex = CreateMutex(NULL, FALSE, "#32770");
CloseHandle(hMutex);

if (GetLastError() != ERROR_ALREADY_EXISTS)
{
WinExec("Launcher.exe", 0);
ExitProcess(0);
}
}

Aun no fuerza el que abra el launcher cuando precionas el main :(

You set MainInfo.ini: LauncherType = 1


Offline erickmalfoy #18 Posteado: July 16, 2021, 10:48:36 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 684
  • Gracias recibida: 773
  • ar
I use this code ? can you tell me how to fix it, i checked there is "mutex" but i don't understand it yet!


Code: [Select]
void CProtect::CheckLauncher() // OK
{

HANDLE hMutex = CreateMutex(NULL, FALSE, "#32770");

if (GetLastError() != ERROR_ALREADY_EXISTS)
{
WinExec("Launcher.exe",0); //ten launcher
ExitProcess (0);
}
return;
if((this->m_MainInfo.LauncherType & 1) == 0)
{
return;
}

if (FindWindow(0, gProtect.m_MainInfo.LauncherName) == 0)
{
ExitProcess(0);
}
}

@Daniel@
@lunaticodeveloper

Code: [Select]
void CProtect::CheckLauncher() // OK
{
if ((this->m_MainInfo.LauncherType & 1) == 0)
{
return;
}

HANDLE hMutex = CreateMutex(NULL, FALSE, "#32770");
CloseHandle(hMutex);

if (GetLastError() != ERROR_ALREADY_EXISTS)
{
WinExec("Launcher.exe", 0);
ExitProcess(0);
}
}

Aun no fuerza el que abra el launcher cuando precionas el main :(

You set MainInfo.ini: LauncherType = 1

[MainInfo]
CustomerName = Erik
LauncherType = 1
LauncherName =
IpAddress = 192.168.1.7
IpAddressPort = 44405
ClientVersion = 1.04.05
ClientSerial = TbYehR2hFUPBKgZj

Bucle infinito que no abre el juego

Gracias:


Offline lunaticodeveloper #19 Posteado: July 16, 2021, 12:43:47 PM

  • MAESTRO

  • US. DE HONOR

  • Anunciante
  • +4 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 1.794
  • Gracias recibida: 28539
  • ar
y tienes que ponerle el launchername ademas de eso te falta evitar el exit o agregar para que se cierre el launcher despeus de abierto el main.exe

Soporte premium ya sabes contactame!
Experto en MuOnline! Mira mis aportes de primera!


Offline spider #20 Posteado: July 18, 2021, 10:00:08 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 351
  • Gracias recibida: 134
  • ae
play start button is not working


Offline reinerg53 #21 Posteado: July 19, 2021, 10:21:36 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 6
  • Gracias recibida: 0
  • co
buenas tardes este Launcher es funcional con Darksteam 97d+99i? gracias


Offline dario #22 Posteado: October 22, 2022, 08:26:24 PM | Modificado: October 24, 2022, 07:57:33 PM by dario

  • 0 puntos por ventas
  • *
  • Rank: Experto
  • Posts: 167
  • Gracias recibida: 764
  • ar
Como hacemos para cuando le damos "play" y abre el main el launcher siga abierto y no se cierre?

Alguien me puede hechar una mano?

Gracias


Offline dario #23 Posteado: October 24, 2022, 08:14:23 PM

  • 0 puntos por ventas
  • *
  • Rank: Experto
  • Posts: 167
  • Gracias recibida: 764
  • ar
Como hacemos para cuando le damos "play" y abre el main el launcher siga abierto y no se cierre?

Alguien me puede hechar una mano?

Gracias

Up  please


Online T-LEGENDARY #24 Posteado: October 26, 2022, 08:22:47 AM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 764
  • Gracias recibida: 11923
  • br
I use this code ? can you tell me how to fix it, i checked there is "mutex" but i don't understand it yet!


Code: [Select]
void CProtect::CheckLauncher() // OK
{

HANDLE hMutex = CreateMutex(NULL, FALSE, "#32770");

if (GetLastError() != ERROR_ALREADY_EXISTS)
{
WinExec("Launcher.exe",0); //ten launcher
ExitProcess (0);
}
return;
if((this->m_MainInfo.LauncherType & 1) == 0)
{
return;
}

if (FindWindow(0, gProtect.m_MainInfo.LauncherName) == 0)
{
ExitProcess(0);
}
}

@Daniel@
@lunaticodeveloper

Code: [Select]
void CProtect::CheckLauncher() // OK
{
if ((this->m_MainInfo.LauncherType & 1) == 0)
{
return;
}

HANDLE hMutex = CreateMutex(NULL, FALSE, "#32770");
CloseHandle(hMutex);

if (GetLastError() != ERROR_ALREADY_EXISTS)
{
WinExec("Launcher.exe", 0);
ExitProcess(0);
}
}

Aun no fuerza el que abra el launcher cuando precionas el main :(

You set MainInfo.ini: LauncherType = 1

[MainInfo]
CustomerName = Erik
LauncherType = 1
LauncherName =
IpAddress = 192.168.1.7
IpAddressPort = 44405
ClientVersion = 1.04.05
ClientSerial = TbYehR2hFUPBKgZj

Bucle infinito que no abre el juego


funcionó ? Si funcionó, ¡cuéntanos cómo lo hiciste! , probé, tampoco funcionó, caigo en el loop launcher


Online T-LEGENDARY #25 Posteado: October 26, 2022, 08:33:53 AM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 764
  • Gracias recibida: 11923
  • br

Offline victhorinox #26 Posteado: November 15, 2022, 03:27:19 PM | Modificado: November 15, 2022, 03:52:05 PM by victhorinox

  • ESTAFADOR
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 305
  • Gracias recibida: 2114
  • ve

Gracias:


Online T-LEGENDARY #27 Posteado: November 15, 2022, 03:44:27 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 764
  • Gracias recibida: 11923
  • br
@lunaticodeveloper   lucha


credits:
LTPTeam
Pyke

Yo estoy forzando el uso del launcher desde el Main.dll y me funciona perfectamente:

Code: [Select]
extern "C" _declspec(dllexport) void EntryProc() // OK

        char ** lpszCommandLine = 0;
CommandLineToArg(GetCommandLine(), &lpszCommandLine);
if( strcmp("Updater", lpszCommandLine[1]) )
{
MessageBox(0, "Please start Game from the Launcher!", "ERROR!", MB_OK | MB_ICONASTERISK);
ShellExecuteA(NULL,"open","Launcher.exe",0,0,SW_SHOW);
ExitProcess(0);
}

TMemory.h
void CommandLineToArg(char* Command, char*** argv);

TMemory.cpp
void CommandLineToArg(char * Command, char*** argv)
{
if (!Command) { return; }

bool Quote = false;
bool Content = false;
size_t CommandLen = strlen(Command);
int NumCommands = 1;
size_t I = 0;

for (I=0; I < CommandLen; I++)
{
if (Command[I] == '"')
{
Quote = !Quote;
Content = true;
}
else if (Command[I] == ' ')
{
if (!Quote&&Content)
{
Content = false;

NumCommands++;
}
}
else
{
Content = true;
}
}

*argv = new char*[NumCommands];

size_t StrBegin = 0;
size_t StrLen = 0;
size_t CommandNum = 0;

for (I=0; I < CommandLen; I++)
{
if (Command[I] == '"')
{
Quote = !Quote;
Content = true;
}
else if (Command[I] == ' ')
{
if ( !Quote && Content)
{
Content = false;

StrLen = I - StrBegin;
if (Command[StrBegin] == '"')
{
StrBegin++;
StrLen--;
}
if (Command[StrBegin+StrLen-1] == '"')
{
StrLen-=1;
}
char* Argument = 0;
Argument = new char[StrLen+1];
memcpy(Argument,Command + StrBegin,StrLen);
memset(Argument+StrLen,0,1);

(*argv)[CommandNum] = Argument;

CommandNum++;
StrBegin = I+1;
}
else if ( !Quote )
{
StrBegin++;
}
}
else
{
Content = true;
}
}
StrLen = I - StrBegin;
if (Command[StrBegin] == '"')
{
StrBegin++;
StrLen--;
}
if (Command[StrBegin+StrLen-1] == '"')
{
StrLen-=1;
}
char* Argument = 0;
Argument = new char[StrLen+1];
memcpy(Argument,Command + StrBegin,StrLen);
memset(Argument+StrLen,0,1);

(*argv)[CommandNum] = Argument;
}

but is all this code bro ?


Offline victhorinox #28 Posteado: November 15, 2022, 03:49:17 PM | Modificado: November 15, 2022, 03:50:50 PM by victhorinox

  • ESTAFADOR
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 305
  • Gracias recibida: 2114
  • ve
@lunaticodeveloper   lucha


credits:
LTPTeam
Pyke

Yo estoy forzando el uso del launcher desde el Main.dll y me funciona perfectamente:

Code: [Select]
extern "C" _declspec(dllexport) void EntryProc() // OK

        char ** lpszCommandLine = 0;
CommandLineToArg(GetCommandLine(), &lpszCommandLine);
if( strcmp("Updater", lpszCommandLine[1]) )
{
MessageBox(0, "Please start Game from the Launcher!", "ERROR!", MB_OK | MB_ICONASTERISK);
ShellExecuteA(NULL,"open","Launcher.exe",0,0,SW_SHOW);
ExitProcess(0);
}

TMemory.h
void CommandLineToArg(char* Command, char*** argv);

TMemory.cpp
void CommandLineToArg(char * Command, char*** argv)
{
if (!Command) { return; }

bool Quote = false;
bool Content = false;
size_t CommandLen = strlen(Command);
int NumCommands = 1;
size_t I = 0;

for (I=0; I < CommandLen; I++)
{
if (Command[I] == '"')
{
Quote = !Quote;
Content = true;
}
else if (Command[I] == ' ')
{
if (!Quote&&Content)
{
Content = false;

NumCommands++;
}
}
else
{
Content = true;
}
}

*argv = new char*[NumCommands];

size_t StrBegin = 0;
size_t StrLen = 0;
size_t CommandNum = 0;

for (I=0; I < CommandLen; I++)
{
if (Command[I] == '"')
{
Quote = !Quote;
Content = true;
}
else if (Command[I] == ' ')
{
if ( !Quote && Content)
{
Content = false;

StrLen = I - StrBegin;
if (Command[StrBegin] == '"')
{
StrBegin++;
StrLen--;
}
if (Command[StrBegin+StrLen-1] == '"')
{
StrLen-=1;
}
char* Argument = 0;
Argument = new char[StrLen+1];
memcpy(Argument,Command + StrBegin,StrLen);
memset(Argument+StrLen,0,1);

(*argv)[CommandNum] = Argument;

CommandNum++;
StrBegin = I+1;
}
else if ( !Quote )
{
StrBegin++;
}
}
else
{
Content = true;
}
}
StrLen = I - StrBegin;
if (Command[StrBegin] == '"')
{
StrBegin++;
StrLen--;
}
if (Command[StrBegin+StrLen-1] == '"')
{
StrLen-=1;
}
char* Argument = 0;
Argument = new char[StrLen+1];
memcpy(Argument,Command + StrBegin,StrLen);
memset(Argument+StrLen,0,1);

(*argv)[CommandNum] = Argument;
}

but is all this code bro ?

Depende de que files estes usando bro, si estas usando por ejemplo la base de Takumi
Solo vas a definir TMemory en Main.cpp

y agregar el codigo en



y con eso ya esta porque en dichos source ya esta agregado el void CommandLineToArg.


Online T-LEGENDARY #29 Posteado: November 15, 2022, 03:54:07 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 764
  • Gracias recibida: 11923
  • br
@lunaticodeveloper   lucha


credits:
LTPTeam
Pyke

Yo estoy forzando el uso del launcher desde el Main.dll y me funciona perfectamente:

Code: [Select]
extern "C" _declspec(dllexport) void EntryProc() // OK

        char ** lpszCommandLine = 0;
CommandLineToArg(GetCommandLine(), &lpszCommandLine);
if( strcmp("Updater", lpszCommandLine[1]) )
{
MessageBox(0, "Please start Game from the Launcher!", "ERROR!", MB_OK | MB_ICONASTERISK);
ShellExecuteA(NULL,"open","Launcher.exe",0,0,SW_SHOW);
ExitProcess(0);
}

TMemory.h
void CommandLineToArg(char* Command, char*** argv);

TMemory.cpp
void CommandLineToArg(char * Command, char*** argv)
{
if (!Command) { return; }

bool Quote = false;
bool Content = false;
size_t CommandLen = strlen(Command);
int NumCommands = 1;
size_t I = 0;

for (I=0; I < CommandLen; I++)
{
if (Command[I] == '"')
{
Quote = !Quote;
Content = true;
}
else if (Command[I] == ' ')
{
if (!Quote&&Content)
{
Content = false;

NumCommands++;
}
}
else
{
Content = true;
}
}

*argv = new char*[NumCommands];

size_t StrBegin = 0;
size_t StrLen = 0;
size_t CommandNum = 0;

for (I=0; I < CommandLen; I++)
{
if (Command[I] == '"')
{
Quote = !Quote;
Content = true;
}
else if (Command[I] == ' ')
{
if ( !Quote && Content)
{
Content = false;

StrLen = I - StrBegin;
if (Command[StrBegin] == '"')
{
StrBegin++;
StrLen--;
}
if (Command[StrBegin+StrLen-1] == '"')
{
StrLen-=1;
}
char* Argument = 0;
Argument = new char[StrLen+1];
memcpy(Argument,Command + StrBegin,StrLen);
memset(Argument+StrLen,0,1);

(*argv)[CommandNum] = Argument;

CommandNum++;
StrBegin = I+1;
}
else if ( !Quote )
{
StrBegin++;
}
}
else
{
Content = true;
}
}
StrLen = I - StrBegin;
if (Command[StrBegin] == '"')
{
StrBegin++;
StrLen--;
}
if (Command[StrBegin+StrLen-1] == '"')
{
StrLen-=1;
}
char* Argument = 0;
Argument = new char[StrLen+1];
memcpy(Argument,Command + StrBegin,StrLen);
memset(Argument+StrLen,0,1);

(*argv)[CommandNum] = Argument;
}

but is all this code bro ?

Depende de que files estes usando bro, si estas usando por ejemplo la base de Takumi
Solo vas a definir TMemory en Main.cpp

y agregar el codigo en
 
y con eso ya esta porque en dichos source ya esta agregado el void CommandLineToArg.


funcionou correcto gracias hermano <3


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
6 Replies
6180 Views
Last post December 23, 2016, 12:29:43 PM
by chikitoxd
1 Replies
4201 Views
Last post September 03, 2020, 11:30:35 PM
by JYachelini
3 Replies
1791 Views
Last post October 14, 2019, 08:17:22 AM
by fantoma
0 Replies
781 Views
Last post May 14, 2020, 10:17:15 AM
by Valkyria
1 Replies
1262 Views
Last post October 15, 2020, 02:59:38 PM
by clairtoncb