Skip to content

Commit caad444

Browse files
committed
Main practice codes+ Lots of optimizations
Added all of the main practice codes, and fixed up the previous code more.
1 parent 9783d60 commit caad444

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+5259
-1145
lines changed

ttyd-tools/rel/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ else
4141
#---------------------------------------------------------------------------------
4242
TARGET := $(notdir $(CURDIR)).$(VERSION)
4343
BUILD := build.$(VERSION)
44-
SOURCES := source
45-
DATA := data
44+
SOURCES := source $(wildcard source/*)
45+
DATA := data
4646
INCLUDES := include
4747

4848
#---------------------------------------------------------------------------------
@@ -59,14 +59,17 @@ LDFLAGS = -r -e _prolog -u _prolog -u _epilog -u _unresolved -Wl,--gc-sections
5959
# Platform options
6060
ifeq ($(VERSION),us)
6161
CFLAGS += -DTTYD_US
62+
ASFLAGS += -DTTYD_US
6263
GAMECODE = "G8ME"
6364
PRINTVER = "US"
6465
else ifeq ($(VERSION),jp)
6566
CFLAGS += -DTTYD_JP
67+
ASFLAGS += -DTTYD_JP
6668
GAMECODE = "G8MJ"
6769
PRINTVER = "JP"
6870
else ifeq ($(VERSION),eu)
6971
CFLAGS += -DTTYD_EU
72+
ASFLAGS += -DTTYD_EU
7073
GAMECODE = "G8MP"
7174
PRINTVER = "EU"
7275
endif
@@ -124,7 +127,6 @@ export HFILES := $(addsuffix .h,$(subst .,_,$(BINFILES)))
124127
# For REL linking
125128
export LDFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.ld)))
126129
export MAPFILE := $(CURDIR)/include/ttyd.$(VERSION).lst
127-
# export BANNERFILE := $(CURDIR)/banner.raw
128130
ifeq ($(VERSION),us)
129131
export BANNERFILE := $(CURDIR)/banner_us.raw
130132
else ifeq ($(VERSION),jp)
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
#pragma once
1+
#include <cstdio>
22

3-
#include <cstdint>
4-
5-
//Enumerations
3+
// Enumerations
64
enum PAD_INPUTS : uint16_t
75
{
86
PAD_DPAD_LEFT = 0x0001,
@@ -17,12 +15,4 @@ enum PAD_INPUTS : uint16_t
1715
PAD_X = 0x0400,
1816
PAD_Y = 0x0800,
1917
PAD_START = 0x1000,
20-
};
21-
22-
//Global Variables
23-
extern uint32_t r13;
24-
extern char *las_25;
25-
extern char *tik_07;
26-
extern char *CurrentRoom;
27-
extern float NoPointer;
28-
extern uint32_t mResetCounter;
18+
};

0 commit comments

Comments
 (0)