Skip to content

Commit

Permalink
Mono support... I think.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sledmore committed Oct 28, 2018
1 parent 79e8676 commit b2eee30
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -275,4 +275,6 @@ __pycache__/

# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# !tools/packages.config

.DS_Store
2 changes: 1 addition & 1 deletion Core/FigureData/FigureDataManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void Init()
string projectSolutionPath = Path.GetDirectoryName(Path.GetDirectoryName(Directory.GetCurrentDirectory()));

XmlDocument xDoc = new XmlDocument();
xDoc.Load(projectSolutionPath + "\\Config\\figuredata.xml");
xDoc.Load(projectSolutionPath + "//Config//figuredata.xml");

XmlNodeList colors = xDoc.GetElementsByTagName("colors");
foreach (XmlNode node in colors)
Expand Down
2 changes: 1 addition & 1 deletion PlusEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static void Initialize()
{
string projectSolutionPath = Path.GetDirectoryName(Path.GetDirectoryName(Directory.GetCurrentDirectory()));

_configuration = new ConfigurationData(projectSolutionPath + "\\Config\\config.ini");
_configuration = new ConfigurationData(projectSolutionPath + "//Config//config.ini");

var connectionString = new MySqlConnectionStringBuilder
{
Expand Down
2 changes: 0 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ public static class Program

public static void Main(string[] Args)
{
DeleteMenu(GetSystemMenu(GetConsoleWindow(), false), SC_CLOSE, MF_BYCOMMAND);

XmlConfigurator.Configure();

Console.ForegroundColor = ConsoleColor.White;
Expand Down
12 changes: 6 additions & 6 deletions app.config
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,26 @@
<log4net>
<root>
<level value="DEBUG" />
<appender-ref ref="Console" />
<appender-ref ref="ConsoleAppender" />
<appender-ref ref="RollingFileAppender" />
</root>
<appender name="Console" type="log4net.Appender.ColoredConsoleAppender">
<appender name="ConsoleAppender" type="log4net.Appender.ManagedColoredConsoleAppender">
<threshold value="DEBUG" />
<mapping>
<level value="DEBUG" />
<foreColor value="Cyan, HighIntensity" />
<foreColor value="Cyan" />
</mapping>
<mapping>
<level value="ERROR" />
<foreColor value="Red, HighIntensity" />
<foreColor value="Red" />
</mapping>
<mapping>
<level value="FATAL" />
<foreColor value="Red, HighIntensity" />
<foreColor value="Red" />
</mapping>
<mapping>
<level value="WARN" />
<foreColor value="Yellow, HighIntensity" />
<foreColor value="Yellow" />
</mapping>
<mapping>
<level value="INFO" />
Expand Down

2 comments on commit b2eee30

@Diddyy
Copy link
Contributor

@Diddyy Diddyy commented on b2eee30 Oct 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 Mono is definitely added now just tested on macOS :)

@Sledmore
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Yup works for me too and on Windows still, so that's a win. :P

Please sign in to comment.