Skip to content

Commit

Permalink
[Maintenance] [th01] Move ztext.c to the hardware/ directory
Browse files Browse the repository at this point in the history
And fix a typo from 2015 that hasn't actually mattered yet.

Part of P0080, funded by Ember2528 and Splashman.
  • Loading branch information
nmlgc committed Mar 3, 2020
1 parent de3f9ec commit f56725f
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion th01/fuuin_06.c
Expand Up @@ -3,4 +3,4 @@
* Code segment #6 of TH01's FUUIN.EXE
*/

#include "th01/ztext.c"
#include "th01/hardware/ztext.c"
1 change: 1 addition & 0 deletions th01/ztext.c → th01/hardware/ztext.c
Expand Up @@ -5,6 +5,7 @@
*/

#include "th01/th01.h"
#include "th01/hardware/ztext.h"

#include <mbctype.h>
#include <mbstring.h>
Expand Down
19 changes: 19 additions & 0 deletions th01/hardware/ztext.h
@@ -0,0 +1,19 @@
// master.lib text function reimplementations
// ------------------------------------------
typedef enum {
CURSOR_HIDE,
CURSOR_BLOCK,
CURSOR_UNDERLINE
} z_text_cursor_t;

void z_text_init(void);
void z_text_25line(void);
void z_text_20line(void);
void z_text_systemline_show(void);
void z_text_systemline_hide(void);
void z_text_clear(void);
void z_text_show(void);
void z_text_hide(void);
void z_text_setcursor(z_text_cursor_t type);
void z_text_print(const char *cmd);
// ------------------------------------------
File renamed without changes.
2 changes: 1 addition & 1 deletion th01/main_04.c
Expand Up @@ -4,4 +4,4 @@
*/

#include "th01/hardware/vsyncclr.c"
#include "th01/ztext.c"
#include "th01/hardware/ztext.c"
2 changes: 1 addition & 1 deletion th01/op_04.c
Expand Up @@ -3,4 +3,4 @@
* Code segment #4 of TH01's OP.EXE
*/

#include "th01/ztext.c"
#include "th01/hardware/ztext.c"
20 changes: 0 additions & 20 deletions th01/th01.h
Expand Up @@ -11,26 +11,6 @@
#include "th01/hardware/graph.h"
// --------

// master.lib text function reimplementations
// ------------------------------------------
typedef enum {
CURSOR_HIDE,
CURSOR_BLOCK,
CURSOR_UNDERLINE
} z_text_cursor_t;

void z_test_init(void);
void z_text_25line(void);
void z_text_20line(void);
void z_text_systemline_show(void);
void z_text_systemline_hide(void);
void z_text_clear(void);
void z_text_show(void);
void z_text_hide(void);
void z_text_setcursor(z_text_cursor_t type);
void z_text_print(const char *cmd);
// ----

// Game
#define STAGES_PER_SCENE 4
#define SCENE_COUNT 4
Expand Down
2 changes: 1 addition & 1 deletion th01_fuuin.asm
Expand Up @@ -6593,7 +6593,7 @@ aC db '%c',0
; char aCC_5[]
aCC_5 db '%c%c',0
include th01/hardware/vsync[data].asm
include th01/ztext[data].asm
include th01/hardware/ztext[data].asm
public _game_initialized
_game_initialized db 0
db 0
Expand Down
2 changes: 1 addition & 1 deletion th01_op.asm
Expand Up @@ -4509,7 +4509,7 @@ aCon db 'CON',0
; char format[]
format db 'おつかれさまでした!!',0Ah,0
include th01/hardware/vsync[data].asm
include th01/ztext[data].asm
include th01/hardware/ztext[data].asm
public _game_initialized
_game_initialized db 0
db 0
Expand Down
2 changes: 1 addition & 1 deletion th01_reiiden.asm
Expand Up @@ -25605,7 +25605,7 @@ aTn db '
aOp db 'op',0
db 0
include th01/hardware/vsync[data].asm
include th01/ztext[data].asm
include th01/hardware/ztext[data].asm
public _game_initialized
_game_initialized db 0
db 0
Expand Down

0 comments on commit f56725f

Please sign in to comment.