mirror of
https://github.com/yuanyuanxiang/SimpleRemoter.git
synced 2026-01-22 23:33:14 +08:00
Feature: Support customizing client name and install directory
This commit is contained in:
@@ -35,8 +35,7 @@ inline std::string GetExeHashStr()
|
||||
CharLowerA(path);
|
||||
|
||||
ULONGLONG hash = 14695981039346656037ULL;
|
||||
for (const char* p = path; *p; p++)
|
||||
{
|
||||
for (const char* p = path; *p; p++) {
|
||||
hash ^= (unsigned char)*p;
|
||||
hash *= 1099511628211ULL;
|
||||
}
|
||||
@@ -46,7 +45,8 @@ inline std::string GetExeHashStr()
|
||||
return result;
|
||||
}
|
||||
|
||||
static inline std::string GetRegistryName() {
|
||||
static inline std::string GetRegistryName()
|
||||
{
|
||||
static auto name = "Software\\" + GetExeHashStr();
|
||||
return name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user