Rev 1650 | Rev 1660 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1650 | Rev 1657 | ||
|---|---|---|---|
| Line 410... | Line 410... | ||
| 410 | } |
410 | } |
| 411 | 411 | ||
| 412 | return true; |
412 | return true; |
| 413 | } |
413 | } |
| 414 | Console_RegisterCommand(Module_GetLastValue, function(arg_index, args) { return Console_StandardAutocomplete(arg_index, args, Module_GetAliasNames()); }); |
414 | Console_RegisterCommand(Module_GetLastValue, function(arg_index, args) { return Console_StandardAutocomplete(arg_index, args, Module_GetAliasNames()); }); |
| - | 415 | ||
| - | 416 | function Module_ListAvailable() |
|
| - | 417 | { |
|
| - | 418 | var available_modules = ModuleExport_GetAvailableModules(); |
|
| - | 419 | ||
| - | 420 | for (var n in available_modules) |
|
| - | 421 | { |
|
| - | 422 | var id_parts = available_modules[n].split(":", 2); |
|
| - | 423 | ||
| - | 424 | var line = id_parts[0] + ":" + id_parts[1] + " Alias: "; |
|
| - | 425 | ||
| - | 426 | var aliases_data = Module_LookupAliases({ |
|
| - | 427 | "module_name" : id_parts[0], |
|
| - | 428 | "module_id" : id_parts[1], |
|
| - | 429 | "group" : false |
|
| - | 430 | }); |
|
| - | 431 | ||
| - | 432 | var found = false; |
|
| - | 433 | ||
| - | 434 | for (var alias_name in aliases_data) |
|
| - | 435 | { |
|
| - | 436 | found = true; |
|
| - | 437 | ||
| - | 438 | line += alias_name + ","; |
|
| - | 439 | } |
|
| - | 440 | ||
| - | 441 | if (!found) |
|
| - | 442 | { |
|
| - | 443 | line += "<none>"; |
|
| - | 444 | } |
|
| - | 445 | else |
|
| - | 446 | { |
|
| - | 447 | line = line.rtrim(','); |
|
| - | 448 | } |
|
| - | 449 | ||
| - | 450 | Log(line + "\n"); |
|
| - | 451 | } |
|
| - | 452 | ||
| - | 453 | return true; |
|
| - | 454 | } |
|
| - | 455 | Console_RegisterCommand(Module_ListAvailable); |
|