Skip to content

Commit

Permalink
chore: rename some manifest members
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Jan 27, 2025
1 parent 416f99a commit f8e0b79
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"entry": "${modFile}",
"version": "${modVersion}",
"type": "preload-native",
"sentry_dsn": "https://43a888504c33385bfd2e570c9ac939aa@o4508652421906432.ingest.us.sentry.io/4508652563398656",
"sentry_force_upload": true
"sentryDsn": "https://43a888504c33385bfd2e570c9ac939aa@o4508652421906432.ingest.us.sentry.io/4508652563398656",
"sentryForceUpload": true
}
28 changes: 14 additions & 14 deletions src/ll/api/mod/Manifest.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ struct hash<ll::mod::Dependency> {
} // namespace std
namespace ll::mod {
struct Manifest {
std::string entry;
std::string name;
std::string type;
std::optional<bool> passive{};
std::optional<data::Version> version{};
std::optional<std::string> author{};
std::optional<std::string> description{};
std::optional<SmallDenseMap<std::string, std::string>> extraInfo{};
std::optional<SmallDenseSet<Dependency>> dependencies{};
std::optional<SmallDenseSet<Dependency>> optionalDependencies{};
std::optional<SmallDenseSet<Dependency>> conflicts{};
std::optional<SmallDenseSet<Dependency>> loadBefore{};
std::optional<std::string> sentry_dsn{};
std::optional<bool> sentry_force_upload{};
std::string entry;
std::string name;
std::string type;
std::optional<bool> passive{};
std::optional<data::Version> version{};
std::optional<std::string> author{};
std::optional<std::string> description{};
std::optional<SmallStringMap<std::string>> extraInfo{};
std::optional<SmallDenseSet<Dependency>> dependencies{};
std::optional<SmallDenseSet<Dependency>> optionalDependencies{};
std::optional<SmallDenseSet<Dependency>> conflicts{};
std::optional<SmallDenseSet<Dependency>> loadBefore{};
std::optional<std::string> sentryDsn{};
std::optional<bool> sentryForceUpload{};
};
} // namespace ll::mod
6 changes: 3 additions & 3 deletions src/ll/core/CrashLogger_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ void CrashLogger::submitCrashInfo() {
auto infoAdder = [&](mod::Mod& mod) {
bool isModSus =
std::find(susModules.begin(), susModules.end(), mod.getManifest().entry) != susModules.end();
if (mod.getManifest().sentry_dsn
&& (isModSus || mod.getManifest().sentry_force_upload.value_or(false))) {
if (mod.getManifest().sentryDsn
&& (isModSus || mod.getManifest().sentryForceUpload.value_or(false))) {
sentryUploader.addModSentryInfo(
mod.getName(),
mod.getManifest().sentry_dsn.value(),
*mod.getManifest().sentryDsn,
mod.getManifest().version.value_or(data::Version{0, 0, 0}).to_string(),
isModSus
);
Expand Down

0 comments on commit f8e0b79

Please sign in to comment.