mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 23:00:45 -04:00
Update documentation and clean up (#129)
* cleanup * clean up file layout
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
/*!
|
||||
* @file DgoWriter.cpp
|
||||
* Create a DGO from existing files.
|
||||
*/
|
||||
|
||||
#include "BinaryWriter.h"
|
||||
#include "FileUtil.h"
|
||||
#include "DgoWriter.h"
|
||||
@@ -9,7 +14,8 @@ void build_dgo(const DgoDescription& description) {
|
||||
writer.add_cstr_len(description.dgo_name.c_str(), 60);
|
||||
|
||||
for (auto& obj : description.entries) {
|
||||
auto obj_data = file_util::read_binary_file(file_util::get_file_path({"data", obj.file_name}));
|
||||
auto obj_data =
|
||||
file_util::read_binary_file(file_util::get_file_path({"out", "obj", obj.file_name}));
|
||||
// size
|
||||
writer.add<uint32_t>(obj_data.size());
|
||||
// name
|
||||
@@ -22,7 +28,6 @@ void build_dgo(const DgoDescription& description) {
|
||||
}
|
||||
}
|
||||
|
||||
printf("DGO: %15s %.3f MB\n", description.dgo_name.c_str(),
|
||||
(float)(writer.get_size()) / (1 << 20));
|
||||
writer.write_to_file(file_util::get_file_path({"out", description.dgo_name}));
|
||||
file_util::create_dir_if_needed(file_util::get_file_path({"out", "iso"}));
|
||||
writer.write_to_file(file_util::get_file_path({"out", "iso", description.dgo_name}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user