This commit is contained in:
2023-08-26 14:24:42 +03:00
parent b1a080f482
commit bac8b3c70d
10 changed files with 20118 additions and 27 deletions

16
.gitignore vendored
View File

@@ -1,12 +1,14 @@
Binaries/*
Cache/*
Logs/*
Output/*
/Binaries/*
/Cache/*
/Logs/*
/Output/*
/*.sln
Source/obj/
Source/**/*.csproj
Source/**/*.Gen.cs
/Source/obj/
/Source/*.csproj
/Source/*.Gen.cs
/Source/*.Gen.cpp
/Source/*.Gen.h
*.csproj.user
*.suo
*.DotSettings.user

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
// comment
r_shadows 0
r_lighting 0
cl_maxfps 240
r_lighting 1
cl_maxfps 0
r_upscaling 0
r_gi 0
r_staticbatch 1

View File

@@ -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;

View File

@@ -20,11 +20,9 @@ public class GameTarget : GameProjectTarget
LinkType = TargetLinkType.Monolithic;
if (LinkType == TargetLinkType.Monolithic)
{
Modules.Add("Main");
OutputType = TargetOutputType.Executable;
}
Modules.Add("Game");
}

View File

@@ -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
}
}