mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-06 17:58:05 +02:00
This allows us to make Content.Client and Content.Server Exe projects so that they can be executed directly via your IDE. This'll help wtih not forgetting to do a full rebuild and such.
25 lines
590 B
C#
25 lines
590 B
C#
using System.IO;
|
|
using Robust.Shared.ContentPack;
|
|
|
|
namespace Robust.Shared
|
|
{
|
|
internal static class ProgramShared
|
|
{
|
|
#if !FULL_RELEASE
|
|
internal static string FindContentRootDir()
|
|
{
|
|
var contentPath = PathHelpers.ExecutableRelativeFile("Content.Shared.dll");
|
|
|
|
// If Content.Shared.dll is next to us,
|
|
// that means we've been executed from one of content's bin directories.
|
|
if (File.Exists(contentPath))
|
|
{
|
|
return "../../";
|
|
}
|
|
|
|
return "../../../";
|
|
}
|
|
#endif
|
|
}
|
|
}
|