View Issue Details

IDProjectCategoryView StatusLast Update
0007073Multi Theft Auto : San AndreasClientpublic2012-09-03 22:40
ReporterDirtY_iCEAssigned Tox86 
PrioritynormalSeveritytrivialReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target Version1.3.1Fixed in Version1.3.1 
Summary0007073: onClientFileDownloadComplete get full absolute filenames
Description

Since r4029, onClientFileDownloadComplete gets full absolute path to the filename (e.g. C:\Program Files\MTA San Andreas 1.4\mods\deatmatch\resources\myresource\file.txt) instead of path relative to the resource folder (file.txt in this case).

Fixing is trivial: change line 21 of MTA10/mods/deathmatch/logic/CSingularFileDownload.cpp from:
m_strNameShort = szName;
to:
m_strNameShort = szNameShort;

Steps To Reproduce

addEventHandler("onClientFileDownloadComplete", resourceRoot, function(file)
outputDebugString(file)
end)

downloadFile("test.txt")

Expected output: test.txt
Actual output: D:\gta_sa\mtanight\mods\deathmatch\resources\test\test.txt
(Of course, it depends on where MTA is actually installed...)

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change