Skip to content

Commit

Permalink
refactor: move force upload to mod config
Browse files Browse the repository at this point in the history
  • Loading branch information
Dofes committed Jan 17, 2025
1 parent c7c5303 commit 495d68f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
"name": "${modName}",
"entry": "${modFile}",
"version": "${modVersion}",
"type": "preload-native"
"type": "preload-native",
"sentry-dsn": "https://43a888504c33385bfd2e570c9ac939aa@o4508652421906432.ingest.us.sentry.io/4508652563398656",
"sentry-force-upload": true
}
3 changes: 2 additions & 1 deletion src/ll/api/event/player/PlayerInteractBlockEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FacingID const& PlayerInteractBlockEvent::face() const { return mFace;
Vec3 const& PlayerInteractBlockEvent::clickPos() const { return mClickPos; }
optional_ref<Block const> PlayerInteractBlockEvent::block() const { return mBlock; }

LL_TYPE_INSTANCE_HOOK(
LL_AUTO_TYPE_INSTANCE_HOOK(
PlayerInteractBlockEventHook,
HookPriority::Normal,
GameMode,
Expand All @@ -43,6 +43,7 @@ LL_TYPE_INSTANCE_HOOK(
if (ev.isCancelled()) {
return {InteractionResult::Result::Fail};
}
throw std::runtime_error("Not implemented");
return origin(item, blockPos, face, clickPos, block, isFirstEvent);
}

Expand Down
5 changes: 2 additions & 3 deletions src/ll/core/CrashLogger_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,14 @@ void CrashLogger::init() {
sa.nLength = sizeof(SECURITY_ATTRIBUTES);

std::wstring cmd = string_utils::str2wstr(fmt::format(
R"({} -p {} -b "{}" --lv "{}" --isdev {} --username "{}" --moddir "{}" --enablesentry true --foreuploadmods "{}")",
R"({} -p {} -b "{}" --lv "{}" --isdev {} --username "{}" --moddir "{}" --enablesentry true)",
getSelfModIns()->getModDir() / sv2u8sv(config.modules.crashLogger.externalpath.value_or("CrashLogger.exe")),
GetCurrentProcessId(),
ll::getGameVersion().to_string(),
ll::getLoaderVersion().to_string(),
ll::getLoaderVersion().to_string().find('+') != std::string::npos,
getServiceUuid(),
mod::getModsRoot(),
"LeviLamina.dll"
mod::getModsRoot()
));

if (!CreateProcess(nullptr, cmd.data(), &sa, &sa, true, 0, nullptr, nullptr, &si, &pi)) {
Expand Down

0 comments on commit 495d68f

Please sign in to comment.