forked from TanninOne/usvfs
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from isanae/new-parameters
New parameters structure
- Loading branch information
Showing
17 changed files
with
365 additions
and
92 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -19,3 +19,7 @@ | |
*.vcxproj.user | ||
msbuild.log | ||
|
||
/stderr.log | ||
/stderr_32.log | ||
/stdout.log | ||
/stdout_32.log |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#pragma once | ||
#include "usvfsparameters.h" | ||
|
||
struct usvfsParameters | ||
{ | ||
char instanceName[65]; | ||
char currentSHMName[65]; | ||
char currentInverseSHMName[65]; | ||
bool debugMode; | ||
LogLevel logLevel{LogLevel::Debug}; | ||
CrashDumpsType crashDumpsType{CrashDumpsType::None}; | ||
char crashDumpsPath[260]; | ||
int delayProcessMs; | ||
|
||
usvfsParameters(); | ||
usvfsParameters(const usvfsParameters&) = default; | ||
usvfsParameters& operator=(const usvfsParameters&) = default; | ||
|
||
usvfsParameters( | ||
const char* instanceName, | ||
const char* currentSHMName, | ||
const char* currentInverseSHMName, | ||
bool debugMode, | ||
LogLevel logLevel, | ||
CrashDumpsType crashDumpsType, | ||
const char* crashDumpsPath, | ||
int delayProcessMs); | ||
|
||
usvfsParameters(const USVFSParameters& oldParams); | ||
|
||
void setInstanceName(const char* name); | ||
void setDebugMode(bool debugMode); | ||
void setLogLevel(LogLevel level); | ||
void setCrashDumpType(CrashDumpsType type); | ||
void setCrashDumpPath(const char* path); | ||
void setProcessDelay(int milliseconds); | ||
}; |
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
Oops, something went wrong.