2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-07-04 10:11:53 +00:00

chore: write game into dumped jsons to prevent mixup of incompatible formats

This commit is contained in:
Jan
2025-06-24 19:50:24 +01:00
parent ab25121cef
commit 308816a38e
9 changed files with 19 additions and 1 deletions

View File

@ -28,6 +28,7 @@ namespace
jRoot["_type"] = "leaderboard";
jRoot["_version"] = 1;
jRoot["_game"] = "iw4";
m_stream << std::setw(4) << jRoot << "\n";
}

View File

@ -28,6 +28,7 @@ namespace
jRoot["_type"] = "leaderboard";
jRoot["_version"] = 1;
jRoot["_game"] = "iw5";
m_stream << std::setw(4) << jRoot << "\n";
}

View File

@ -29,8 +29,8 @@ namespace
json jRoot = jsonMaterial;
jRoot["_type"] = "material";
jRoot["_game"] = "iw5";
jRoot["_version"] = 1;
jRoot["_game"] = "iw5";
m_stream << std::setw(4) << jRoot << "\n";
}

View File

@ -27,6 +27,7 @@ namespace
jRoot["_type"] = "attachment";
jRoot["_version"] = 1;
jRoot["_game"] = "iw5";
m_stream << std::setw(4) << jRoot << "\n";
}

View File

@ -28,6 +28,7 @@ namespace
jRoot["_type"] = "leaderboard";
jRoot["_version"] = 1;
jRoot["_game"] = "t6";
m_stream << std::setw(4) << jRoot << "\n";
}

View File

@ -29,6 +29,7 @@ namespace
jRoot["_type"] = "material";
jRoot["_version"] = 1;
jRoot["_game"] = "t6";
m_stream << std::setw(4) << jRoot << "\n";
}

View File

@ -27,6 +27,7 @@ namespace
jRoot["_type"] = "weaponCamo";
jRoot["_version"] = 1;
jRoot["_game"] = "t6";
m_stream << std::setw(4) << jRoot << "\n";
}