You've already forked Diddy-Kong-Racing
mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-03-10 11:36:09 -07:00
* Saving files before attempting to integrate custom crash screen * Put code under DkrAssetsTool namespace * More progress * Lots of work done. * Forgot to revert back to v77 in the makefile * Included cstdint in bytes_view.hpp * Hopefully fixed issue with CEnum::tostring(), removed asset_enums from tracking, and modified gitignore to allow obj files from the mods folder * .mtl file and the textures should now check if the path is absolute or relative. * Fixed compile_all.sh * Doing a thing that is technically not valid. * Removed 'make assets', now assets are built in the normal 'make' setting.
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
#include <iostream>
|
|
#include <string>
|
|
|
|
#include "libs/argparse.hpp"
|
|
|
|
#include "helpers/jsonHelper.h"
|
|
#include "helpers/debugHelper.h"
|
|
|
|
#include "misc/args.h"
|
|
#include "misc/globalSettings.h"
|
|
|
|
#include "extract/extractor.h"
|
|
#include "builder/builder.h"
|
|
#include "test/test.h"
|
|
|
|
using namespace DkrAssetsTool;
|
|
|
|
/*******************************************************************************************************/
|
|
|
|
int main(int argc, char *argv[]) {
|
|
DebugHelper::get().set_asserts();
|
|
|
|
std::optional<fs::path> decompRoot = GlobalSettings::find_decomp_root();
|
|
DebugHelper::assert_(decompRoot.has_value(), "(main) Could not find the root to the decomp.");
|
|
GlobalSettings::parse_values_from_json_file(decompRoot.value() / "tools/dkr_assets_tool_settings.json");
|
|
|
|
//GlobalSettings::print_all_values();
|
|
|
|
Args::parse(argc, argv);
|
|
|
|
switch (Args::get_command()) {
|
|
default:
|
|
Args::print_help();
|
|
break;
|
|
case Args::ToolCommand::EXTRACT:
|
|
AssetExtractor::extract_all();
|
|
break;
|
|
case Args::ToolCommand::BUILD:
|
|
AssetBuilder::build_all(Args::get<std::string>("-o", ""));
|
|
break;
|
|
}
|
|
}
|