Skip to content

Commit 3e94e8d

Browse files
committed
Add DEMOPuts functions
1 parent 4598c68 commit 3e94e8d

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#pragma once
2+
3+
#include <cstdint>
4+
#include <cstdarg>
5+
6+
namespace gc::DEMOPuts {
7+
8+
enum class FontType : int32_t
9+
{
10+
kOpaque = 0, // White on black
11+
kReverse, // Black on white
12+
kTranslucent, // White on transparent
13+
};
14+
15+
extern "C" {
16+
17+
void DEMOInitCaption(FontType type, int32_t screenWidth, int32_t screenHeight);
18+
void DEMOPuts(int16_t posX, int16_t posY, int16_t posZ, const char *string);
19+
void DEMOPrintf(int16_t posX, int16_t posY, int16_t posZ, const char *format, ...);
20+
21+
}
22+
23+
}

ttyd-tools/rel/include/ttyd.eu.lst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,6 +2254,11 @@
22542254
// 802A9140:__VIDisplayPositionToXY
22552255
// 802A935C:__VIGetCurrentPosition
22562256

2257+
// DEMOPuts.c
2258+
802A93BC:DEMOInitCaption
2259+
802A9618:DEMOPuts
2260+
802A9928:DEMOPrintf
2261+
22572262
// card.a
22582263
// 802AF520:__CARDDefaultApiCallback
22592264
// 802AF524:__CARDSyncCallback

ttyd-tools/rel/include/ttyd.jp.lst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2250,6 +2250,11 @@
22502250
// 8029F2C0:__VIDisplayPositionToXY
22512251
// 8029F4DC:__VIGetCurrentPosition
22522252

2253+
// DEMOPuts.c
2254+
8029F53C:DEMOInitCaption
2255+
8029F798:DEMOPuts
2256+
8029FAA8:DEMOPrintf
2257+
22532258
// card.a
22542259
// 802A56A0:__CARDDefaultApiCallback
22552260
// 802A56A4:__CARDSyncCallback

ttyd-tools/rel/include/ttyd.us.lst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2251,6 +2251,11 @@
22512251
// 802A50C4:__VIDisplayPositionToXY
22522252
// 802A52E0:__VIGetCurrentPosition
22532253

2254+
// DEMOPuts.c
2255+
802A5340:DEMOInitCaption
2256+
802A559C:DEMOPuts
2257+
802A58AC:DEMOPrintf
2258+
22542259
// card.a
22552260
// 802AB4A4:__CARDDefaultApiCallback
22562261
// 802AB4A8:__CARDSyncCallback

0 commit comments

Comments
 (0)