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