-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from felddy/hotfix/2020120401-0.7.8
Add patch file for 0.7.8 hotifx.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/sh | ||
|
||
# [Optional] Hotfix #1 for 0.7.8 build | ||
# ---------------------------------------------- | ||
# Hello all, I have attached a small hotfix which corrects the following issues | ||
# in the 0.7.8 build. This fix should not be needed for most people, but if you | ||
# are affected by one of these bugs I hope it can help: | ||
# | ||
# Included Fixes | ||
# | ||
# 1. Dice formula without an explicit number of dice (i.e. /roll d6) to roll now | ||
# fail after changes to support parenthetical evaluation of variable dice number | ||
# in 0.7.8 | ||
# | ||
# 2. An error occurs when changing the value of the "device pixel resolution" | ||
# setting where the window fails to reload as the reload method is not invoked | ||
# correctly. | ||
# | ||
# 3. A regression caused by assigning PIXI.settings.FILTER_RESOLUTION to a value | ||
# greater than 1 which breaks the rendering of light source meshes. | ||
|
||
PATCH_DEST="$FOUNDRY_HOME/resources/app/public/scripts/foundry.js" | ||
PATCH_DOC_URL="https://discord.com/channels/170995199584108546/784244473261588480/784490927212855317" | ||
PATCH_NAME="Experimental Hotfix 2020120401 for 0.7.8" | ||
PATCH_URL="https://cdn.discordapp.com/attachments/784244473261588480/784490927087419392/foundry.js" | ||
TARGET_FOUNDRY_VERSION="0.7.8" | ||
|
||
if [ "$FOUNDRY_VERSION" = "$TARGET_FOUNDRY_VERSION" ]; then | ||
log "Applying \"${PATCH_NAME}\"" | ||
log "See: ${PATCH_DOC_URL}" | ||
curl --output "${PATCH_DEST}" "${PATCH_URL}" 2>&1 | tr "\r" "\n" | ||
else | ||
log_warn "Not applying \"${PATCH_NAME}\". This patch is targeted for Foundry Virtual Tabletop ${TARGET_FOUNDRY_VERSION}" | ||
fi |