def main(): config = SafeConfigParser() config.readfp(open('config.cfg')) set_logging(config.get('logs', 'path'), 'xivdmgui') dat_manager = DatManager(config.get('game', 'path')) gen_manager = GenManager(dat_manager) app = QtGui.QApplication(sys.argv) main_window = QtGui.QMainWindow() main_window.setWindowTitle('Model Viewer') gl_widget = OpenGLWidget(dat_manager) list_view = ListWidget(sorted(walk_dict(gen_manager.get_category('models'))), gl_widget) splitter = QtGui.QSplitter() splitter.addWidget(list_view) splitter.addWidget(gl_widget) main_window.setCentralWidget(splitter) main_window.resize(640, 480) main_window.show() sys.exit(app.exec_())
def extract_gen(args, conf): dat_manager = DatManager(conf.get('game', 'path')) gen_manager = GenManager(dat_manager) output_path = path.join(conf.get('output', 'path'), 'gen', args.name) walk_gen(dat_manager, gen_manager.get_category(args.name), output_path)