summaryrefslogtreecommitdiff
path: root/csrc/fcn_417d65.c
blob: a2595f48ccc384ca362e9f9986c26fb26f89fbaa (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
void fcn_00419703()
{
	b_46cafd = 0;
	fcn_00417191(0);
}

void fcn_00417d65(int v)
{
	int res;

	fcn_00402460(0);
	fcn_00419703();
	dw_48bde4 = -1;
	fcn_00415d31(1);

	switch (v) {
		case 0:
			fcn_0044eb39(20, 60);
			break;
		case 1:
			fcn_00411b53(1);
			break;
		case 2:
			hosted_ai_ui();
			break;
		case 3:
			res = process_checkpoint(1);
			break;
		case 4:
			fcn_00404165();
			break;
		case 5:
			fcn_0040a9bd();
			break;
		case 6:
			fcn_00424492();
			break;
		case 7:
			tools_ui();
			break;
		case 8:
			cards_ui();
			break;
		case 9:
			player_info_stock_ui();
			break;
		case 10:
			stock_ui(0);
		default:
			break;
	}
	if (fcn_0040defe() != 1)
		return;
	if (v == 3) {
		if (res != -1)
			return;
	}
	fcn_004196f1();
	fcn_00402460(1);
}