-
Notifications
You must be signed in to change notification settings - Fork 1
/
ceditor.h
97 lines (68 loc) · 2.19 KB
/
ceditor.h
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
* File: ceditor.h
* Author: Sir Gee of Five
*
* Created on June 5, 2011, 1:38 PM
*/
#ifndef CEDITOR_H
#define CEDITOR_H
#include <stdio.h>
#include <pspdebug.h>
#include "blockview.h"
#include "cheat.h"
#include "cheatengine.h"
#include "cursorpos.h"
#include "dimension.h"
#include "panelconfig.h"
#define CEDITOR_SUCCESS (0)
#define CEDITOR_FAILURE (-1)
#define CEDITOR_NULLPTR (-2)
#define CEDITOR_MEMORY (-3)
#define CEDITOR_INVIDX (-4)
#define CEDITOR_INVENG (-5)
#define CEDITOR_INVCHT (-6)
#define CEDITOR_POS_X (0)
#define CEDITOR_POS_Y (1)
#define CEDITOR_SIZE_W (69)
#define CEDITOR_SIZE_H (30)
#define CEDITOR_PANEL_BG ((u32)0xFFD0D0D0)
#define CEDITOR_PANEL_FG ((u32)0xFF000000)
#define CEDITOR_CURSOR_BG ((u32)0xFFD00000)
#define CEDITOR_CURSOR_FG ((u32)0xFFFFFFFF)
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _CEditor {
PanelConfig panelConfig;
BlockView blockView;
CheatEngine* cheatEngine;
int index;
int dirty;
}
CEditor;
int ceditor_button_circle(CEditor* prEd);
int ceditor_button_cross(CEditor* prEd);
int ceditor_button_ltrigger(CEditor* prEd);
int ceditor_button_rtrigger(CEditor* prEd);
int ceditor_button_square(CEditor* prEd);
int ceditor_button_triangle(CEditor* prEd);
int ceditor_dpad_down(CEditor* prEd);
int ceditor_dpad_left(CEditor* prEd);
int ceditor_dpad_right(CEditor* prEd);
int ceditor_dpad_up(CEditor* prEd);
int ceditor_init(CEditor* prEd, CheatEngine* prEngine);
int ceditor_is_editing(CEditor* prEd);
int ceditor_page_down(CEditor* prEd);
int ceditor_page_up(CEditor* prEd);
int ceditor_redraw(CEditor* prEd);
int ceditor_set_cursorcolor(CEditor* prEd, const u32 background,
const u32 text);
int ceditor_set_index(CEditor* prEd, const int index);
int ceditor_set_panelcolor(CEditor* prEd, const u32 background,
const u32 text);
int ceditor_set_position(CEditor* prEd, const int x, const int y);
int ceditor_set_size(CEditor* prEd, const int width, const int height);
#ifdef __cplusplus
}
#endif
#endif /* CEDITOR_H */