mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
Update rebrand stub to run 'Element.exe'
This commit is contained in:
parent
c6ab88508f
commit
358e3b8f7d
@ -4,7 +4,7 @@
|
|||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This just runs 'Element (Riot).exe' with the same args as
|
* This just runs 'Element.exe' with the same args as
|
||||||
* this process was invoked with. This gets around the fact that
|
* this process was invoked with. This gets around the fact that
|
||||||
* squirrel always tries to run an executable with the same name,
|
* squirrel always tries to run an executable with the same name,
|
||||||
* so fails to restart if the app's name has changed.
|
* so fails to restart if the app's name has changed.
|
||||||
@ -15,7 +15,7 @@ void _tmain( int argc, TCHAR *argv[] )
|
|||||||
char cmdLine[32767];
|
char cmdLine[32767];
|
||||||
|
|
||||||
LPSTR cmdLinePos = cmdLine;
|
LPSTR cmdLinePos = cmdLine;
|
||||||
LPSTR toRun = "\"Element (Riot).exe\" ";
|
LPSTR toRun = "\"Element.exe\" ";
|
||||||
strncpy(cmdLinePos, toRun, strlen(toRun));
|
strncpy(cmdLinePos, toRun, strlen(toRun));
|
||||||
cmdLinePos += strlen(toRun);
|
cmdLinePos += strlen(toRun);
|
||||||
|
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user