Skip to content

Commit

Permalink
BUILD: fix compiler errors/warnings, use macos 14/sonoma for builds a…
Browse files Browse the repository at this point in the history
…nd deps
  • Loading branch information
ciscon committed Nov 15, 2023
1 parent 4a5521d commit b7ab89b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
path: .vs\${{ matrix.platform }}\${{ matrix.config }}\Output\ezQuake.exe

macos-build:
runs-on: macos-13
runs-on: macos-14
strategy:
matrix:
ARCH: ["arm64","intel"]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scripts/homebrew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ function install_arm64() {
export HOMEBREW_DIR="/Users/runner/Library/Caches/Homebrew/downloads"

brew reinstall --quiet pkg-config
brew fetch --force --bottle-tag=arm64_big_sur "${dependencies[@]}"
brew fetch --force --bottle-tag=arm64_sonoma "${dependencies[@]}"

for dependency in "${dependencies[@]}"; do
echo "Installing $dependency"
brew reinstall --quiet "${HOMEBREW_DIR}"/*"${dependency}"-*.arm64_big_sur.bottle*.tar.gz
brew reinstall --quiet "${HOMEBREW_DIR}"/*"${dependency}"-*.arm64_sonoma.bottle*.tar.gz
done
}

Expand Down Expand Up @@ -78,7 +78,7 @@ function build_intel() {

function build_arm64() {
export CPU="arm64"
make strip DARWIN_TARGET=arm64-apple-macos12
make strip DARWIN_TARGET=arm64-apple-macos14
}

case $1 in
Expand Down
10 changes: 6 additions & 4 deletions src/hud_262.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "menu.h"
#include "image.h"

qbool CachePic_RemoveByPic(mpic_t* pic);

static char *hud262_load_buff = NULL;

extern cvar_t cl_hud;
Expand Down Expand Up @@ -171,14 +173,14 @@ void Hud_Add_f(void)
mpic_t* tmp_pic;
if (pic_path && strlen(pic_path) > 0) {
// Try loading the pic.
if (!(tmp_pic = Draw_CachePicSafe(pic_path, false, true))) {
if (!tmp_pic = Draw_CachePicSafe(pic_path, false, true)) {
Com_Printf("Couldn't load picture %s for '%s'\n", pic_path, a2);
return;
}
elem = Hud_NewElement();
elem->contents = tmp_pic;
elem->flags = HUD_IMAGE | HUD_ENABLED;
}
elem = Hud_NewElement();
elem->contents = tmp_pic;
elem->flags = HUD_IMAGE | HUD_ENABLED;
}
else {
Com_Printf("\"%s\" is not a valid hud type\n", a2);
Expand Down

0 comments on commit b7ab89b

Please sign in to comment.