Skip to content

Commit

Permalink
Merge pull request #19 from Whiteknight/fix_installed_driver
Browse files Browse the repository at this point in the history
Fix installed driver after update to use PackfileView PMC in .compile
  • Loading branch information
NotFound committed Mar 7, 2012
2 parents bde46b5 + ee3bbc1 commit 53b455f
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions winxed_installed.winxed
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function extname[anon](string filename, string ext)
function getcompiler[anon]()
{
var compiler;
try
try
compiler = load_language('winxed');
catch () { }
if (compiler == null) {
Expand Down Expand Up @@ -241,19 +241,13 @@ function process_args [anon] (argv)
// Use get_main if available, else use the old heuristic.
var sub;
try {
sub = code.get_main();
for (var load_sub in code.subs_by_tag("load"))
load_sub();
code.mark_initialized("load");
sub = code.main_sub();
}
catch () {
for (int i = 0; ; ++i) {
sub = code[i];
if (sub == null)
break;
if (string(sub) == 'main')
break;
}
// Last resource: use first sub as entry point.
if (sub == null)
sub = code[0];
cry("Cannot find main sub");
}
return sub;
}
Expand Down

0 comments on commit 53b455f

Please sign in to comment.