fix GRUCODE defines

This commit is contained in:
fgsfds 2020-06-20 04:32:12 +03:00
parent 5053446f45
commit fe44da4794
3 changed files with 9 additions and 13 deletions

View File

@ -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
@ -166,7 +160,7 @@ ifeq ($(GRUCODE), f3dex2) # Fast3DEX2
COMPARE := 0
else
ifeq ($(GRUCODE),f3dex2e) # Fast3DEX2 Extended (PC default)
GRUCODE_CFLAGS := -DF3DEX_GBI_2E
GRUCODE_DEF := F3DEX_GBI_2E
TARGET := $(TARGET).f3dex2e
COMPARE := 0
else

View File

@ -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.
*/

View File

@ -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)