_backup
This commit is contained in:
@@ -216,11 +216,26 @@ namespace Game
|
||||
|
||||
internal ConsoleInstance()
|
||||
{
|
||||
// Try different filename when running multiple instances
|
||||
string logFilename = "console.log";
|
||||
const int attempts = 16;
|
||||
for (int i = 0; i < attempts;)
|
||||
{
|
||||
try
|
||||
{
|
||||
#if FLAX_EDITOR
|
||||
logStream = new StreamWriter(@"C:\dev\GoakeFlax\console.log", false);
|
||||
logStream = new StreamWriter(Path.Combine(@"C:\dev\GoakeFlax", logFilename), false);
|
||||
#else
|
||||
logStream = new StreamWriter(Path.Combine(Directory.GetCurrentDirectory(), "console.log"), false);
|
||||
logStream = new StreamWriter(Path.Combine(Directory.GetCurrentDirectory(), logFilename), false);
|
||||
#endif
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logFilename = $"console-{++i}.log";
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsOpen { get; internal set; } = true;
|
||||
|
||||
@@ -20,11 +20,9 @@ public class GameTarget : GameProjectTarget
|
||||
LinkType = TargetLinkType.Monolithic;
|
||||
if (LinkType == TargetLinkType.Monolithic)
|
||||
{
|
||||
|
||||
Modules.Add("Main");
|
||||
OutputType = TargetOutputType.Executable;
|
||||
}
|
||||
|
||||
Modules.Add("Game");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
{
|
||||
{
|
||||
"profiles": {
|
||||
"Game.CSharp": {
|
||||
"commandName": "Project",
|
||||
"remoteDebugEnabled": false,
|
||||
"Game": {
|
||||
"commandName": "Executable",
|
||||
"workingDirectory": "C:\\dev\\GoakeFlax",
|
||||
"executablePath": "C:\\dev\\Flax\\FlaxEngine\\Binaries\\Editor\\Win64\\Development\\FlaxEditor.exe",
|
||||
"commandLineArgs": "-project \"C:\\dev\\GoakeFlax\"",
|
||||
"nativeDebugging": false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user