minor changes
This commit is contained in:
@@ -6,38 +6,14 @@
|
||||
#include "connect.h"
|
||||
#include "settings.h"
|
||||
#include "security.h"
|
||||
#include "app_ctrl.h"
|
||||
#include "utils.h"
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <cctype>
|
||||
void startup(LPCTSTR lpApplicationName)
|
||||
{
|
||||
// additional information
|
||||
STARTUPINFO si;
|
||||
PROCESS_INFORMATION pi;
|
||||
|
||||
// set the size of the structures
|
||||
ZeroMemory(&si, sizeof(si));
|
||||
si.cb = sizeof(si);
|
||||
ZeroMemory(&pi, sizeof(pi));
|
||||
|
||||
// start the program up
|
||||
CreateProcess(lpApplicationName, // the path
|
||||
NULL, // Command line
|
||||
NULL, // Process handle not inheritable
|
||||
NULL, // Thread handle not inheritable
|
||||
FALSE, // Set handle inheritance to FALSE
|
||||
0, // No creation flags
|
||||
NULL, // Use parent's environment block
|
||||
NULL, // Use parent's starting directory
|
||||
&si, // Pointer to STARTUPINFO structure
|
||||
&pi // Pointer to PROCESS_INFORMATION structure
|
||||
);
|
||||
// Close process and thread handles.
|
||||
CloseHandle(pi.hProcess);
|
||||
CloseHandle(pi.hThread);
|
||||
}
|
||||
|
||||
int update_system() {
|
||||
thread_init();
|
||||
log(LOGLEVEL::INFO, "[update_system()]: Updating system");
|
||||
//update cyberhex executables
|
||||
//we will download them from the jakach server, not the companys server
|
||||
@@ -81,6 +57,7 @@ int update_system() {
|
||||
else {
|
||||
log(LOGLEVEL::INFO, "[update_system()]: No new version of cyberhex available.");
|
||||
}
|
||||
thread_shutdown();
|
||||
return 0;
|
||||
}
|
||||
int update_db(const std::string& folder_path) {
|
||||
|
||||
Reference in New Issue
Block a user