mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-31 21:30:59 +00:00
Support command-line invocation
This commit is contained in:
parent
2c03216da9
commit
d728025144
@ -263,6 +263,15 @@ namespace SourceGen.AppForms {
|
||||
UpdateRecentLinks();
|
||||
|
||||
ShowNoProject();
|
||||
|
||||
ProcessCommandLine();
|
||||
}
|
||||
|
||||
private void ProcessCommandLine() {
|
||||
string[] args = Environment.GetCommandLineArgs();
|
||||
if (args.Length == 2) {
|
||||
DoOpenFile(Path.GetFullPath(args[1]));
|
||||
}
|
||||
}
|
||||
|
||||
private void InitCodeListView() {
|
||||
|
@ -74,6 +74,7 @@ namespace SourceGen {
|
||||
/// Loads platform symbols.
|
||||
/// </summary>
|
||||
/// <param name="fileIdent">Relative pathname of file to open.</param>
|
||||
/// <param name="projectDir">Full path to project directory.</param>
|
||||
/// <param name="report">Report of warnings and errors.</param>
|
||||
/// <returns>True on success (no errors), false on failure.</returns>
|
||||
public bool LoadFromFile(string fileIdent, string projectDir, out FileLoadReport report) {
|
||||
|
Loading…
Reference in New Issue
Block a user