wavelength 1.0.0
Loading...
Searching...
No Matches
NetcnfifEnv Class Reference

A netcnf environment that loads into memory of the module. More...

#include <netcnfifenv.h>

Inheritance diagram for NetcnfifEnv:
Collaboration diagram for NetcnfifEnv:

Public Member Functions

void Init ()
 Clear the environment and give it the module's memory.
int LoadEntry (const char *fileName, const char *userName)
 Load a combination into the environment.
int GetDeviceType () const
 Classify the interface of the loaded combination.
void Init ()
 Clear the environment and give it the module's memory.
int LoadEntry (const char *fileName, const char *userName)
 Load a combination into the environment.
int WriteEnv (NetcnfifData *data, int kind)
 Build the records of a NetcnfifData in the environment.
void MergeDialNumbers ()
 Prefix each dial number of a dialled PPP interface with the dial prefix of its device, and give any other interface the type of its device.

Static Public Member Functions

static int SelectByDevice (const char *fileName, int memoryCard, int hardDisk, int other)
 Choose a value by the device of a file.
static int SelectByDevice (const char *fileName, int memoryCard, int hardDisk, int other)
 Choose a value by the device of a file.

Detailed Description

A netcnf environment that loads into memory of the module.

A netcnf environment built in memory of the module, either loaded from a configuration file or written from a NetcnfifData.

The module was built without RTTI. The name is inferred from the module's routines.

Member Function Documentation

◆ Init() [1/2]

void NetcnfifEnv::Init ( )

Clear the environment and give it the module's memory.

Ghidra address:
NTSC-U/C: 0x00000c5c
Ghidra address:
PAL: 0x00000c5c

◆ LoadEntry() [1/2]

int NetcnfifEnv::LoadEntry ( const char * fileName,
const char * userName )

Load a combination into the environment.

Parameters
fileNameConfiguration file.
userNameName the user gave the combination.
Returns
The result of sceNetCnfLoadEntry().
Ghidra address:
NTSC-U/C: 0x00000b40
Ghidra address:
PAL: 0x00000b40

◆ GetDeviceType()

int NetcnfifEnv::GetDeviceType ( ) const

Classify the interface of the loaded combination.

Returns
A NetCnfDeviceType.
Ghidra address:
NTSC-U/C: 0x00000240
Ghidra address:
PAL: 0x00000240

◆ SelectByDevice() [1/2]

int NetcnfifEnv::SelectByDevice ( const char * fileName,
int memoryCard,
int hardDisk,
int other )
static

Choose a value by the device of a file.

Parameters
fileNameFile.
memoryCardValue for a file on a memory card.
hardDiskValue for a file on the hard disk.
otherValue for a file on another device.
Returns
The value for the device of fileName.
Ghidra address:
NTSC-U/C: 0x00000bd4
Ghidra address:
PAL: 0x00000bd4

◆ Init() [2/2]

void NetcnfifEnv::Init ( )

Clear the environment and give it the module's memory.

Ghidra address:
NTSC-U/C: 0x00000edc
Ghidra address:
PAL: 0x00000eec

◆ LoadEntry() [2/2]

int NetcnfifEnv::LoadEntry ( const char * fileName,
const char * userName )

Load a combination into the environment.

Parameters
fileNameConfiguration file.
userNameName the user gave the combination.
Returns
The result of sceNetCnfLoadEntry().
Ghidra address:
NTSC-U/C: 0x00000dc0
Ghidra address:
PAL: 0x00000dd0

◆ WriteEnv()

int NetcnfifEnv::WriteEnv ( NetcnfifData * data,
int kind )

Build the records of a NetcnfifData in the environment.

Parameters
dataSettings. The records point into it.
kind#SCE_NETCNF_TYPE_NET for a combination, or the kind of a single file.
Returns
Zero, or a negative error code.
Ghidra address:
NTSC-U/C: 0x00001bd0
Ghidra address:
PAL: 0x00001be0

◆ MergeDialNumbers()

void NetcnfifEnv::MergeDialNumbers ( )

Prefix each dial number of a dialled PPP interface with the dial prefix of its device, and give any other interface the type of its device.

Ghidra address:
NTSC-U/C: 0x000006fc
Ghidra address:
PAL: 0x000006f4

◆ SelectByDevice() [2/2]

int NetcnfifEnv::SelectByDevice ( const char * fileName,
int memoryCard,
int hardDisk,
int other )
static

Choose a value by the device of a file.

Parameters
fileNameFile.
memoryCardValue for a file on a memory card.
hardDiskValue for a file on the hard disk.
otherValue for a file on another device.
Returns
The value for the device of fileName.
Ghidra address:
NTSC-U/C: 0x00000e54
Ghidra address:
PAL: 0x00000e64

The documentation for this class was generated from the following files: