forked from urxp/dRally
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path___23230h.c
42 lines (32 loc) · 1.08 KB
/
___23230h.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include "drally.h"
#pragma pack(1)
typedef struct font_props_s {
__BYTE__ w;
__BYTE__ h;
__BYTE__ props[];
} font_props_t;
extern __POINTER__ ___1a1138h__VESA101_BACKGROUND;
extern __POINTER__ ___1a112ch__VESA101_ACTIVESCREEN_PTR;
extern font_props_t ___185c0bh;
extern __POINTER__ ___1a1108h;
extern __POINTER__ ___1a10fch;
extern __POINTER__ ___1a110ch;
int dRChatbox_getFont(int line);
char * dRChatbox_getLine(int line);
void ___12e78h_cdecl(__POINTER__, __POINTER__, __POINTER__, __DWORD__);
void ___23230h(void){
int n, font;
char * line;
n = -1;
while(++n < 0x59){
memcpy(___1a112ch__VESA101_ACTIVESCREEN_PTR+0x280*(n+380), ___1a1138h__VESA101_BACKGROUND+0x280*(n+380), 0x280);
}
n = -1;
while(++n < 6){
font = dRChatbox_getFont(n+0x10);
line = dRChatbox_getLine(n+0x10);
if(font == 0) ___12e78h_cdecl(___1a1108h, (__POINTER__)&___185c0bh, line, 0x2580*n+0x3b10c);
if(font == 1) ___12e78h_cdecl(___1a10fch, (__POINTER__)&___185c0bh, line, 0x2580*n+0x3b10c);
if(font == 2) ___12e78h_cdecl(___1a110ch, (__POINTER__)&___185c0bh, line, 0x2580*n+0x3b10c);
}
}