mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Added function documentation to RSON class
This commit is contained in:
parent
b1147a9a42
commit
5e880ec92a
@ -4,11 +4,24 @@
|
||||
#include <filesystem/filesystem.h>
|
||||
#include "vpc/rson.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: loads an RSON from a buffer
|
||||
// Input : *pszBufferName -
|
||||
// *pBuffer -
|
||||
// rootType -
|
||||
// Output : pointer to RSON object on success, nullptr otherwise
|
||||
//-----------------------------------------------------------------------------
|
||||
RSON::Node_t* RSON::LoadFromBuffer(const char* pszBufferName, char* pBuffer, RSON::eFieldType rootType)
|
||||
{
|
||||
return RSON_LoadFromBuffer(pszBufferName, pBuffer, rootType, 0, NULL);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: loads an RSON from a file
|
||||
// Input : *pszFilePath -
|
||||
// *pPathID -
|
||||
// Output : pointer to RSON object on success, nullptr otherwise
|
||||
//-----------------------------------------------------------------------------
|
||||
RSON::Node_t* RSON::LoadFromFile(const char* pszFilePath, const char* pPathID)
|
||||
{
|
||||
FileHandle_t file = FileSystem()->Open(pszFilePath, "rt", pPathID);
|
||||
|
Loading…
x
Reference in New Issue
Block a user