65 int moduleSavIndex = -1;
68 for (Aurora::Archive::ResourceList::const_iterator it = resources.begin();
69 it != resources.end(); ++it) {
72 moduleSavIndex = res.
index;
77 if (moduleSavIndex >= 0) {
88 for (Aurora::Archive::ResourceList::const_iterator it = resources.begin();
89 it != resources.end(); ++it) {
101 warning(
"Module IFO file not found");
106 if (!playerList.empty()) {
114 warning(
"Player list not found in module IFO");
A class holding an UTF-8 string.
static void fillFromSAV(const Aurora::ERFFile &erf, const Common::UString &moduleName, SavedGame *save)
uint32 getTimePlayed() const
A simple streaming file reading class.
const GFF3Struct & getTopLevel() const
Returns the top-level struct.
Common::UString name
The resource's name.
uint64 getUint(const Common::UString &field, uint64 def=0) const
A simple scoped smart pointer template.
Basic exceptions to throw.
static void fillFromModuleSAV(const Aurora::ERFFile &erf, SavedGame *save)
Common::UString _moduleName
const char * c_str() const
Return the (utf8 encoded) string data.
Common::SeekableReadStream * getResource(uint32 index, bool tryNoCopy=false) const
Return a stream of the resource's contents.
static CharacterGenerationInfo * createRandomMaleSoldier()
const ResourceList & getResources() const
Return the list of resources.
double getDouble(const Common::UString &field, double def=0.0) const
std::list< Resource > ResourceList
void info(const char *s,...)
A GFF (generic file format) V3.2/V3.3 file, found in all Aurora games except Sonic Chronicles: The Da...
const Common::UString & getName() const
A scoped plain pointer, allowing pointer-y access and normal deletion.
A resource within the archive.
void warning(const char *s,...)
std::vector< const GFF3Struct * > GFF3List
Implementing the stream reading interfaces for files.
const GFF3List & getList(const Common::UString &field) const
FileType type
The resource's type.
Class to hold resource data of an ERF archive file.
static SavedGame * load(const Common::UString &dir, bool loadSav=false)
Load saved game from a specified directory.
static UString normalize(const UString &p, bool resolveSymLinks=true)
Normalize a path.
void setPosition(float x, float y, float z)
Set the creature's position.
const Common::UString & getModuleName() const
static void fillFromNFO(const Aurora::GFF3File &gff, SavedGame *save)
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
The class for storing character information for generation.
static CharacterGenerationInfo * createRandomFemaleSoldier()
Utility class for manipulating file paths.
Creation and loading of KotOR saved games.
uint32 index
The resource's local index within the archive.
int stricmp(const UString &str) const
static void fillFromModuleIFO(const Aurora::GFF3File &gff, SavedGame *save)