Skip to content

Commit

Permalink
Let platform specify it found the installed product, but there's a fa…
Browse files Browse the repository at this point in the history
…tal issue

 with it (it's in the trash on MacOSX, etc).
  • Loading branch information
icculus committed May 18, 2005
1 parent d2fb1a4 commit 9f0e61f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mojopatch.c
Expand Up @@ -2124,6 +2124,15 @@ static int chdir_by_identifier(const char *name, const char *str)
if (hasident)
{
found = locate_product_by_identifier(str, buf, sizeof (buf));

/*
* Platform-specific issue...it's there, but there's a problem, like
* MacOS found it, but it's in the trashcan, etc. The platform
* driver should call the UI routines to explain the issue.
*/
if (found == -1)
return(0);

if (!found)
_log("Couldn't find product. Perhaps it isn't installed?");
} /* if */
Expand Down

0 comments on commit 9f0e61f

Please sign in to comment.