32 int LoadEntry(
const char *fileName,
const char *userName);
65 static int SelectByDevice(
const char *fileName,
int memoryCard,
int hardDisk,
int other);
69 static constexpr int kErrorNoSettings = -100;
112 int AddRoute(
const char *gateway);
123 int AddNameServer(
const char *address,
int index);
134 int Attach(
int kind);
137 inline void AlignMemory();
144 inline void AppendCommand(sceNetCnfCommand *command);
151 inline void AppendPair(sceNetCnfPair *pair);
156 inline void ResetRoot();
165 static void ResetInterface(sceNetCnfInterface *interface);
175 static bool IsNonzeroAddress(
const char *text);
178 static constexpr int kMemorySize = 0x800;
181 static constexpr int kNameServerCount = 2;
184 alignas(16)
static unsigned char sMemory[kMemorySize];
193 static sceNetCnfRouteCommand sRoute;
196 static sceNetCnfNameServerCommand sNameServers[kNameServerCount];
A combination in the flat form the EE reads, with every setting as text or a number.
Definition netcnfifdata.h:11
static constexpr int kTextSize
Size of each text setting.
Definition netcnfifdata.h:14
A netcnf environment that loads into memory of the module.
Definition netcnfifenv.h:10
static int SelectByDevice(const char *fileName, int memoryCard, int hardDisk, int other)
Choose a value by the device of a file.
void Init()
Clear the environment and give it the module's memory.
int WriteEnv(NetcnfifData *data, int kind)
Build the records of a NetcnfifData in the environment.
int LoadEntry(const char *fileName, const char *userName)
Load a combination into the environment.
void MergeDialNumbers()
Prefix each dial number of a dialled PPP interface with the dial prefix of its device,...