08-16-2019, 11:22 PM
(This post was last modified: 08-16-2019, 11:29 PM by AwesomeCronk.)
@Quajak @kudzu
I experimented a little. I removed the Prompt routine(line 92) and commented out the reference to it. The process then booted in VMWare JUST FINE. Somewhere in these lines is the issue.
I am going to try putting the Prompt routine into a blank kernel and see what happens.
EDIT: It fails. IL2CPU throws the same issue.
I experimented a little. I removed the Prompt routine(line 92) and commented out the reference to it. The process then booted in VMWare JUST FINE. Somewhere in these lines is the issue.
Code:
public void Prompt()
{
int commandend = 0;
int tagpoint = 0;
string[] tags = { "", "", "", "", ""};
string command = "";
commandend = input.IndexOf(" ") - 1; //Detect and isolate the command from the input
if (commandend != -1)
{
for (int ctr = 0; ctr <= commandend; ctr++)
{
command += input[ctr];
}
}
else
{
command = input;
}
Console.WriteLine("Received Command '{0}'.", command);
if (command == "Power")
{
for (int ctr = 0; ctr < 5; ctr++)
{
tagpoint = input.IndexOf("/", (tagpoint - 1) + (ctr * 3));
if (tagpoint != -1)
{
tags[ctr] += input[tagpoint];
tags[ctr] += input[tagpoint + 1];
}
}
Console.WriteLine("Tag 0 is '{0}'. Tag 1 is '{1}'. Tag 2 is '{2}'. Tag 3 is '{3}'. Tag 4 is '{4}'.",
tags[0], tags[1], tags[2], tags[3], tags[4]);
}
else if (command == "Help" || command == "help")
{
Console.WriteLine("Standard help message:");
Console.WriteLine("Power: Used to trigger reboots, shutdowns, and sleep mode.");
Console.WriteLine("Also changes settings related to Auto-sleep and time-out functions.");
}
}
I am going to try putting the Prompt routine into a blank kernel and see what happens.
EDIT: It fails. IL2CPU throws the same issue.