diff --git a/Tools/MapMaker/Build.rogue b/Tools/MapMaker/Build.rogue index 79c8aa4..25bbaed 100644 --- a/Tools/MapMaker/Build.rogue +++ b/Tools/MapMaker/Build.rogue @@ -26,7 +26,7 @@ endRoutine routine launcher_folder->String local result = Build.LAUNCHER_FOLDER - result = File.expand_filepath( result ) + result = File.expand_path( result ) return File.without_trailing_separator( result ) endRoutine @@ -224,7 +224,7 @@ class Build [singleton] method dispatch_command local m = find_command( rogo_command ) - require m + require m || "no such routine rogo_$()" (rogo_command) local args = @[] forEach (arg in rogo_args) @@ -236,10 +236,10 @@ class Build [singleton] endWhich endForEach if (m.parameter_count == 1 and args.count > 1) args = @[ args ] # Wrap args in a ValueList. - m.call( Global, args ) + m( args ) method find_command( name:String )->MethodInfo - return <>.find_method( rogo_prefix + name ) + return <>.find_global_method( rogo_prefix + name ) method on_error Console.error.println "=" * 79 @@ -352,7 +352,7 @@ routine rogo_help( command="":String ) println "USAGE" local lines = String[] - forEach (m in <>.methods) + forEach (m in <>.global_methods) if (m.name.begins_with(Build.rogo_prefix)) lines.add( " " + get_syntax(m.name.after_first(Build.rogo_prefix)) ) endIf @@ -367,7 +367,7 @@ routine get_syntax( m_name:String )->String if (Build.rogo_syntax.contains(m_name)) return "rogo " + Build.rogo_syntax[ m_name ] else - local m = <>.find_method( Build.rogo_prefix + m_name ) + local m = <>.find_global_method( Build.rogo_prefix + m_name ) if (not m) return null local line = "rogo $" (m_name.replacing('_',' ')) line += " <$>" (m.parameter_name(forEach in 0..