Skip to content

Commit

Permalink
Merge pull request #123 from felddy/hotfix/2020120401-0.7.8
Browse files Browse the repository at this point in the history
Add patch file for 0.7.8 hotifx.
  • Loading branch information
felddy authored Dec 7, 2020
2 parents d79ba13 + 1039949 commit 1ffb74e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions patches/hotfix_2020120401-0.7.8.sh
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

0 comments on commit 1ffb74e

Please sign in to comment.