NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
File Format

Contains the enumeration of various file formats found in the games and functions to detect them. More...

Namespaces

namespace  nnl::format
 Contains the enumeration of various file formats found in the games and functions to detect them.

Enumerations

enum  nnl::format::FileFormat {
  nnl::format::kUnknown , nnl::format::kPGD , nnl::format::kDig , nnl::format::kDigEntry ,
  nnl::format::kCollection , nnl::format::kAssetContainer , nnl::format::kModel , nnl::format::kTextureContainer ,
  nnl::format::kAnimationContainer , nnl::format::kActionConfig , nnl::format::kColboxConfig , nnl::format::kVisanimationContainer ,
  nnl::format::kCollision , nnl::format::kShadowCollision , nnl::format::kText , nnl::format::kATRAC3 ,
  nnl::format::kFog , nnl::format::kPositionData , nnl::format::kLit , nnl::format::kRenderConfig ,
  nnl::format::kPHD , nnl::format::kUIConfig , nnl::format::kMinimapConfig , nnl::format::kPNG ,
  nnl::format::kCCSF , nnl::format::kELF , nnl::format::kPSPELF , nnl::format::kPSF ,
  nnl::format::kPlainText
}
 Enumeration for file formats found in the games. More...

Functions

FileFormat nnl::format::Detect (BufferView buffer)
 Detects the file format of the provided buffer.
std::vector< FileFormatnnl::format::DetectAll (BufferView buffer)
 Detects all possible file formats of the provided buffer.

Detailed Description

Contains the enumeration of various file formats found in the games and functions to detect them.

See also
nnl::format::FileFormat
nnl::format::Detect

Enumeration Type Documentation

◆ FileFormat

Enumeration for file formats found in the games.

Note
This list is non-exhaustive and represents currently known signatures. Undocumented formats exist within the archives.
See also
nnl::format::Detect
nnl::format::DetectAll
Enumerator
kUnknown 

An unknown type.

kPGD 

Protected Game Data: an encrypted wrapper that contains a primary data archive (a .BIN file in NSUNI/NSLAR).

kDig 

A primary asset archive (a .BIN file in NSUNI/NSLAR).

See also
nnl::dig::Dig
kDigEntry 

An entry in a primary archive (a nested archive itself).

See also
nnl::dig_entry::DigEntry
kCollection 

A container that stores related assets.

See also
nnl::collection::Collection
kAssetContainer 

A container that stores related parts of an asset.

See also
nnl::asset::Asset
kModel 
See also
nnl::model::Model
kTextureContainer 
See also
nnl::texture::TextureContainer
kAnimationContainer 
See also
nnl::animation::AnimationContainer
kActionConfig 
See also
nnl::action::ActionConfig
kColboxConfig 
See also
nnl::colbox::ColBoxConfig
kVisanimationContainer 
See also
nnl::visanimation::AnimationContainer
kCollision 
See also
nnl::collision::Collision
kShadowCollision 
See also
nnl::shadow_collision::Collision
kText 
See also
nnl::text::Text
kATRAC3 

An AT3 file that uses a proprietary audio codec by Sony.

kFog 
See also
nnl::fog::Fog
kPositionData 
See also
nnl::posd::PositionData
kLit 
See also
nnl::lit::Lit
kRenderConfig 
See also
nnl::render::RenderConfig
kPHD 
See also
nnl::phd::IsOfType
kUIConfig 
See also
nnl::ui::IsOfType
kMinimapConfig 
See also
nnl::minimap::MinimapConfig
kPNG 

A PNG image.

kCCSF 

An asset format developed by CyberConnect2. It's used for the finishing blow cutscenes in NSUNI.

See also
https://github.com/MiguelQueiroz010/CCSF-Asset-Explorer/
kELF 

An executable file.

kPSPELF 

An encrypted executable file.

kPSF 

PARAM.SFO, metadata.

kPlainText 

A plain text file (UTF-8 encoded)

Function Documentation

◆ Detect()

FileFormat nnl::format::Detect ( BufferView buffer)

Detects the file format of the provided buffer.

This function analyzes the provided data buffer and returns the first detected file format.

Parameters
bufferA file buffer containing data to be tested.
Returns
FileFormat The first matching signature.
See also
nnl::format::DetectAll

◆ DetectAll()

std::vector< FileFormat > nnl::format::DetectAll ( BufferView buffer)

Detects all possible file formats of the provided buffer.

This function analyzes the provided data buffer and returns all detected file formats.

Parameters
bufferA file buffer containing data to be tested.
Returns
A vector of matching signatures.
See also
nnl::format::Detect