From fe44da479484d9022345cdee707c8cf7bbfa7bd0 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Sat, 20 Jun 2020 04:32:12 +0300 Subject: [PATCH] fix GRUCODE defines --- Makefile | 18 ++++++------------ src/game/hud.c | 2 +- src/pc/gfx/gfx_pc.c | 2 ++ 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 58aa2b53..271216c3 100644 --- a/Makefile +++ b/Makefile @@ -10,12 +10,12 @@ default: all # These options can either be changed by modifying the makefile, or # by building with 'make SETTING=value'. 'make clean' may be required. -# Build debug version (default) -DEBUG ?= 1 +# Build debug version +DEBUG ?= 0 # Version of the game to build VERSION ?= us # Graphics microcode used -GRUCODE ?= f3d_old +GRUCODE ?= f3dex2e # If COMPARE is 1, check the output sha1sum when building 'all' COMPARE ?= 1 # If NON_MATCHING is 1, define the NON_MATCHING and AVOID_UB macros when building (recommended) @@ -72,8 +72,6 @@ BASEPACK ?= base.zip # Automatic settings for PC port(s) -NON_MATCHING := 1 -GRUCODE := f3dex2e WINDOWS_BUILD ?= 0 # Attempt to detect OS @@ -116,20 +114,16 @@ endif ifeq ($(VERSION),jp) VERSION_DEF := VERSION_JP - GRUCODE_DEF := F3D_OLD else ifeq ($(VERSION),us) VERSION_DEF := VERSION_US - GRUCODE_DEF := F3D_OLD else ifeq ($(VERSION),eu) VERSION_DEF := VERSION_EU - GRUCODE_DEF := F3D_NEW else ifeq ($(VERSION),sh) $(warning Building SH is experimental and is prone to breaking. Try at your own risk.) VERSION_DEF := VERSION_SH - GRUCODE_DEF := F3D_NEW # TODO: GET RID OF THIS!!! We should mandate assets for Shindou like EU but we dont have the addresses extracted yet so we'll just pretend you have everything extracted for now. NOEXTRACT := 1 else @@ -159,14 +153,14 @@ ifeq ($(GRUCODE),f3dex) # Fast3DEX TARGET := $(TARGET).f3dex COMPARE := 0 else -ifeq ($(GRUCODE), f3dex2) # Fast3DEX2 +ifeq ($(GRUCODE),f3dex2) # Fast3DEX2 GRUCODE_DEF := F3DEX_GBI_2 GRUCODE_ASFLAGS := --defsym F3DEX_GBI_SHARED=1 TARGET := $(TARGET).f3dex2 COMPARE := 0 else -ifeq ($(GRUCODE), f3dex2e) # Fast3DEX2 Extended (PC default) - GRUCODE_CFLAGS := -DF3DEX_GBI_2E +ifeq ($(GRUCODE),f3dex2e) # Fast3DEX2 Extended (PC default) + GRUCODE_DEF := F3DEX_GBI_2E TARGET := $(TARGET).f3dex2e COMPARE := 0 else diff --git a/src/game/hud.c b/src/game/hud.c index 5ee51152..1540b675 100644 --- a/src/game/hud.c +++ b/src/game/hud.c @@ -14,6 +14,7 @@ #include "area.h" #include "save_file.h" #include "print.h" +#include "pc/configfile.h" /* @file hud.c * This file implements HUD rendering and power meter animations. @@ -58,7 +59,6 @@ static struct UnusedHUDStruct sUnusedHUDValues = { 0x00, 0x0A, 0x00 }; static struct CameraHUD sCameraHUD = { CAM_STATUS_NONE }; -extern bool configHUD; /** * Renders a rgba16 16x16 glyph texture from a table list. */ diff --git a/src/pc/gfx/gfx_pc.c b/src/pc/gfx/gfx_pc.c index 6e5d52b2..9c4f481f 100644 --- a/src/pc/gfx/gfx_pc.c +++ b/src/pc/gfx/gfx_pc.c @@ -38,6 +38,8 @@ #define SCALE_3_8(VAL_) ((VAL_) * 0x24) #define SCALE_8_3(VAL_) ((VAL_) / 0x24) +#define SCREEN_WIDTH 320 +#define SCREEN_HEIGHT 240 #define HALF_SCREEN_WIDTH (SCREEN_WIDTH / 2) #define HALF_SCREEN_HEIGHT (SCREEN_HEIGHT / 2)