(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:
@@ -23,6 +23,14 @@ bool ScriptScanner::AddFile(const char *filename, size_t basepath_length, const
|
||||
this->main_script = strdup(filename);
|
||||
if (this->main_script == NULL) return false;
|
||||
|
||||
free(this->tar_file);
|
||||
if (tar_filename != NULL) {
|
||||
this->tar_file = strdup(tar_filename);
|
||||
if (this->tar_file == NULL) return false;
|
||||
} else {
|
||||
this->tar_file = NULL;
|
||||
}
|
||||
|
||||
const char *end = this->main_script + strlen(this->main_script) + 1;
|
||||
char *p = strrchr(this->main_script, PATHSEPCHAR);
|
||||
if (p == NULL) {
|
||||
|
Reference in New Issue
Block a user