Go to the source code of this file.
Functions | |
void | ConvertFlexes (IDataSource *readfile, ODataSource *writefile) |
void | ConvertShp (IDataSource *readfile, ODataSource *writefile) |
const ConvertShapeFormat * | GetShapeFormat (const char *game) |
int | main (int argc, char **argv) |
Variables | |
const ConvertShapeFormat | AutoShapeFormat |
const ConvertShapeFormat * | read_format = &AutoShapeFormat |
const ConvertShapeFormat * | write_format = &U8ShapeFormat |
int | shapenum |
void ConvertFlexes | ( | IDataSource * | readfile, | |
ODataSource * | writefile | |||
) |
Definition at line 71 of file ShapeConv.cpp.
References AutoShapeFormat, ConvertShape::Check(), con, Crusader2DShapeFormat, CrusaderShapeFormat, ConvertShape::Free(), ConvertShapeFormat::name, PentagramShapeFormat, perr, pout, Console::Printf(), ConvertShape::Read(), IDataSource::read4(), read_format, ODataSource::seek(), IDataSource::seek(), shapenum, U82DShapeFormat, U8CMPShapeFormat, U8ShapeFormat, U8SKFShapeFormat, ConvertShape::Write(), ODataSource::write1(), ODataSource::write2(), ODataSource::write4(), and write_format.
Referenced by main().
void ConvertShp | ( | IDataSource * | readfile, | |
ODataSource * | writefile | |||
) |
Definition at line 162 of file ShapeConv.cpp.
References AutoShapeFormat, ConvertShape::Check(), con, Crusader2DShapeFormat, CrusaderShapeFormat, ConvertShape::Free(), IDataSource::getSize(), ConvertShapeFormat::name, PentagramShapeFormat, perr, pout, Console::Printf(), ConvertShape::Read(), read_format, shapenum, U82DShapeFormat, U8CMPShapeFormat, U8ShapeFormat, U8SKFShapeFormat, ConvertShape::Write(), and write_format.
Referenced by main().
const ConvertShapeFormat* GetShapeFormat | ( | const char * | game | ) |
Definition at line 205 of file ShapeConv.cpp.
References Crusader2DShapeFormat, CrusaderShapeFormat, PentagramShapeFormat, Pentagram::strcasecmp(), U82DShapeFormat, U8ShapeFormat, and U8SKFShapeFormat.
Referenced by main().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 217 of file ShapeConv.cpp.
References AutoShapeFormat, ConvertFlexes(), ConvertShp(), Args::declare(), GetShapeFormat(), ConvertShapeFormat::name, perr, pout, Args::process(), read_format, FileSystem::ReadFile(), Pentagram::strcasecmp(), U8CMPShapeFormat, write_format, and FileSystem::WriteFile().
Initial value:
{
"Auto Detected",
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
}
Definition at line 32 of file ShapeConv.cpp.
Referenced by ConvertFlexes(), ConvertShp(), and main().
const ConvertShapeFormat* read_format = &AutoShapeFormat |
Definition at line 62 of file ShapeConv.cpp.
Referenced by ConvertFlexes(), ConvertShp(), load_image(), and main().
int shapenum |
Definition at line 67 of file ShapeConv.cpp.
Referenced by ConvertFlexes(), ConvertShp(), AnimationTracker::load(), ButtonWidget::loadData(), Gump::loadData(), ConvertShape::Read(), ConvertShapeFrame::Read(), ButtonWidget::saveData(), and Gump::saveData().
const ConvertShapeFormat* write_format = &U8ShapeFormat |
Definition at line 63 of file ShapeConv.cpp.
Referenced by ConvertFlexes(), ConvertShp(), and main().