(svn r22905) -Fix [FS#4753] (r22836): the name of the tar was removed from the AI filenames, so record it differently. Also removes some of the hackery to get the tar's filename
This commit is contained in:
@@ -31,6 +31,7 @@ ScriptFileInfo::~ScriptFileInfo()
|
||||
free((void *)this->instance_name);
|
||||
free((void *)this->url);
|
||||
free(this->main_script);
|
||||
free(this->tar_file);
|
||||
free(this->SQ_instance);
|
||||
}
|
||||
|
||||
@@ -69,6 +70,8 @@ bool ScriptFileInfo::CheckMethod(const char *name) const
|
||||
}
|
||||
|
||||
info->main_script = strdup(scanner->GetMainScript());
|
||||
const char *tar_name = scanner->GetTarFile();
|
||||
if (tar_name != NULL) info->tar_file = strdup(tar_name);
|
||||
|
||||
/* Cache the data the info file gives us. */
|
||||
if (!info->engine->CallStringMethodStrdup(*info->SQ_instance, "GetAuthor", &info->author, MAX_GET_OPS)) return SQ_ERROR;
|
||||
|
Reference in New Issue
Block a user