pspsdk-1.0+beta2
|
#include <stdio.h>
#include <stdint.h>
#include <getopt.h>
#include <string.h>
#include <stdlib.h>
#include "types.h"
Data Structures | |
struct | SfoHeader |
struct | SfoEntry |
struct | EntryContainer |
Macros | |
#define | PSF_MAGIC 0x46535000 |
#define | PSF_VERSION 0x00000101 |
#define | PSF_TYPE_BIN 0 |
#define | PSF_TYPE_STR 2 |
#define | PSF_TYPE_VAL 4 |
#define | MAX_OPTIONS (256) |
Functions | |
struct SfoHeader | __attribute__ ((packed)) |
struct EntryContainer * | find_free () |
struct EntryContainer * | find_name (const char *name) |
int | add_string (char *str) |
int | add_dword (char *str) |
int | process_args (int argc, char **argv) |
int | main (int argc, char **argv) |
#define MAX_OPTIONS (256) |
Referenced by find_free(), and find_name().
#define PSF_MAGIC 0x46535000 |
Referenced by main().
#define PSF_TYPE_BIN 0 |
#define PSF_TYPE_STR 2 |
Referenced by add_string(), and main().
#define PSF_TYPE_VAL 4 |
Referenced by add_dword(), and main().
#define PSF_VERSION 0x00000101 |
Referenced by main().
struct SfoHeader __attribute__ | ( | (packed) | ) |
int add_dword | ( | char * | str | ) |
References find_free(), fprintf(), memset(), EntryContainer::name, NULL, PSF_TYPE_VAL, stderr, strchr(), strtoul(), EntryContainer::type, and EntryContainer::value.
Referenced by process_args().
int add_string | ( | char * | str | ) |
References EntryContainer::data, find_free(), fprintf(), memset(), EntryContainer::name, NULL, PSF_TYPE_STR, stderr, strchr(), and EntryContainer::type.
Referenced by process_args().
|
read |
References i, MAX_OPTIONS, name, and NULL.
Referenced by add_dword(), add_string(), and main().
|
read |
References i, MAX_OPTIONS, NULL, and strcmp().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
References SfoEntry::alignment, SfoHeader::count, count, EntryContainer::data, SfoEntry::dataofs, fclose(), find_free(), find_name(), fopen(), fp, fprintf(), fwrite(), g_defaults, i, SfoHeader::keyofs, keyofs, SfoHeader::magic, memcpy(), memset(), EntryContainer::name, name, SfoEntry::nameofs, NULL, process_args(), PSF_MAGIC, PSF_TYPE_STR, PSF_TYPE_VAL, PSF_VERSION, stderr, strcpy(), strlen(), SW, SfoEntry::totalsize, totalsize, SfoEntry::type, EntryContainer::type, uint32_t, SfoHeader::valofs, SfoEntry::valsize, valsize, EntryContainer::value, and SfoHeader::version.
int process_args | ( | int | argc, |
char ** | argv | ||
) |
References add_dword(), add_string(), ch, getopt_long(), NULL, optarg, and optind.
Referenced by main().
struct EntryContainer __attribute__ |
uint8_t alignment |
uint32_t count |
Referenced by dump_exports(), fixup_imports(), fixup_nidmap(), getDebugChar(), main(), output_relocs(), pspDebugGetStackTrace2(), and sceGuClear().
uint32_t dataofs |
struct EntryContainer g_defaults[] |
Referenced by main().
uint32_t magic |
uint16_t nameofs |
uint8_t type |
uint32_t valofs |
uint32_t version |