Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Rubberduckycooly
GitHub Repository: Rubberduckycooly/RSDKv5-Decompilation
Path: blob/master/RSDKv5/RSDK/Core/Legacy/ModAPILegacy.hpp
1174 views
1
2
3
namespace Legacy
4
{
5
6
#if RETRO_USE_MOD_LOADER
7
8
#define LEGACY_PLAYERNAME_COUNT (0x10)
9
10
extern char modTypeNames[OBJECT_COUNT][0x40];
11
extern char modScriptPaths[OBJECT_COUNT][0x40];
12
extern uint8 modScriptFlags[OBJECT_COUNT];
13
extern uint8 modObjCount;
14
15
namespace v4
16
{
17
18
// Native Functions
19
void RefreshEngine();
20
void GetModCount();
21
void GetModName(int32 *textMenu, int32 *highlight, uint32 *id, int32 *unused);
22
void GetModDescription(int32 *textMenu, int32 *highlight, uint32 *id, int32 *unused);
23
void GetModAuthor(int32 *textMenu, int32 *highlight, uint32 *id, int32 *unused);
24
void GetModVersion(int32 *textMenu, int32 *highlight, uint32 *id, int32 *unused);
25
void GetModActive(uint32 *id, int32 *unused);
26
void SetModActive(uint32 *id, int32 *active);
27
void MoveMod(uint32 *id, int32 *up);
28
29
void ExitGame();
30
void FileExists(int32 *unused, const char *filePath);
31
32
void AddGameAchievement(int32 *unused, const char *name);
33
void SetAchievementDescription(uint32 *id, const char *desc);
34
void ClearAchievements();
35
void GetAchievementCount();
36
void GetAchievementName(uint32 *id, int32 *textMenu);
37
void GetAchievementDescription(uint32 *id, int32 *textMenu);
38
void GetAchievement(uint32 *id, void *unused);
39
40
void GetScreenWidth();
41
void SetScreenWidth(int32 *width, int32 *unused);
42
void GetWindowScale();
43
void SetWindowScale(int32 *scale, int32 *unused);
44
void GetWindowScaleMode();
45
void SetWindowScaleMode(int32 *mode, int32 *unused);
46
void GetWindowFullScreen();
47
void SetWindowFullScreen(int32 *fullscreen, int32 *unused);
48
void GetWindowBorderless();
49
void SetWindowBorderless(int32 *borderless, int32 *unused);
50
void GetWindowVSync();
51
void SetWindowVSync(int32 *enabled, int32 *unused);
52
void ApplyWindowChanges();
53
} // namespace v4
54
55
#endif
56
57
} // namespace Legacy
58