Jump to content

LumpGetInfo: Difference between revisions

Update specifications on failure
(Created page with "{{ACSWarning}} {{DevfeatureWarning|version=3.2|type=an ACS function}} mixed '''LumpGetInfo''' (int ''lump'', int ''info'') {{Devfeature|3.2|alpha}} ==Usage== Returns information of the lump, based on ''info''. ===Parameters=== *''lump'': The lump index as returned from <tt>LumpOpen</tt>. *''info'': The type of information to return. **<code>LUMP_INFO_SIZE</code>: The buffer size of the lump. **<code>LUMP_INFO_NAME</code>: The full name (including path) of the...")
 
(Update specifications on failure)
Line 18: Line 18:
If ''info'' is <code>LUMP_INFO_NAME</code>, returns a string containing the lump's full name.
If ''info'' is <code>LUMP_INFO_NAME</code>, returns a string containing the lump's full name.


Returns 0 on invalid input, or when attempting to read a lump that has not yet been opened with <tt>[[LumpOpen]]</tt>.
Returns 0 on invalid input, alongside a console message.


==Examples==
==Examples==