Changeset 692
- Timestamp:
- Mar 7, 2013, 6:26:13 PM (12 years ago)
- Location:
- Daodan
- Files:
-
- 5 deleted
- 27 edited
- 6 moved
Legend:
- Unmodified
- Added
- Removed
-
Daodan/makefile
r689 r692 17 17 OUT = build/binkw32.dll 18 18 19 SRC = src/Daodan.c src/Daodan_BSL.c src/Daodan_Character.c src/Daodan_Cheater.c src/Daodan_Console.c src/ daodan_gl.c src/Daodan_Patch.c src/Daodan_Persistence.c src/Daodan_Utility.c src/Daodan_Win32.c src/Daodan_WindowHack.c src/inifile_reader.c src/_DLLInfo.rc19 SRC = src/Daodan.c src/Daodan_BSL.c src/Daodan_Character.c src/Daodan_Cheater.c src/Daodan_Console.c src/Daodan_GL.c src/Daodan_Patch.c src/Daodan_Persistence.c src/Daodan_Utility.c src/Daodan_Win32.c src/Daodan_WindowHack.c src/Inifile_Reader.c src/_DLLInfo.rc 20 20 DEST = $(patsubst src/%.rc,build/%.o,$(patsubst src/%.c,build/%.o,$(SRC))) 21 21 -
Daodan/src/BFW_Motoko_Draw.h
r689 r692 1 #pragma once2 1 #ifndef BFW_MOTOKO_DRAW_H 3 2 #define BFW_MOTOKO_DRAW_H 4 5 #include "Daodan.h"6 3 7 4 typedef struct -
Daodan/src/BFW_ScriptLang.h
r688 r692 1 #pragma once2 1 #ifndef BFW_SCRIPTLANG_H 3 2 #define BFW_SCRIPTLANG_H 4 3 5 #include "Daodan.h" 6 7 //#include <stdint.h> 8 #include "bool.h" 4 #include "stdint.h" 9 5 10 6 typedef enum { … … 33 29 } sl_callinfo; 34 30 35 36 37 38 39 31 #endif -
Daodan/src/BFW_Utility.h
r690 r692 1 #pragma once2 1 #ifndef BFW_UTILITY_H 3 2 #define BFW_UTILITY_H 4 3 5 #include <stdio.h> 6 //#include <stdint.h> 7 #include "Daodan.h" 8 9 //void __cdecl UUrStartupMessage(const char* fmt, ...); 4 #include "stdint.h" 10 5 11 6 typedef struct { … … 16 11 } OniRectangle; 17 12 18 19 void* TestContext;20 //void ONICALL COrTextArea_Print(uint32_t area, uint32_t priority, uint32_t textshade, uint32_t textshadowshade, const char* text, uint32_t unk_alwaws_0, uint32_t fadetime);21 22 void ONICALL COrMessage_Remove(char* Key);23 //int16_t ONICALL TMrInstance_GetDataPtr(int, char*, void*); //int TMrInstance_GetDataPtr( Type 'TSFF', char* "Tahoma", ptr);24 25 //int __cdecl AUrMessageBox(int Buttons, char *Message, ...);26 27 13 #endif -
Daodan/src/Daodan.c
r690 r692 1 #include <windows.h> 1 2 #include <string.h> 2 3 … … 12 13 13 14 #include "Oni.h" 14 #include "Oni_Persistence.h" 15 16 #include "BFW_Utility.h" 17 18 #include "oni_gl.h" 19 #include "daodan_gl.h" 20 21 #include "inifile.h" 15 16 #include "Oni_GL.h" 17 #include "Daodan_GL.h" 18 19 #include "Inifile_Reader.h" 22 20 23 21 HMODULE DDrDLLModule; … … 329 327 else if (!_stricmp(name, "switch")) 330 328 M3gResolutionSwitch = !_stricmp(inifile_cleanstr(value), "true"); 331 //else if (!_stricmp(name, "devmode"))332 //turn_dev_mode_on = !_stricmp(inifile_cleanstr(value), "true");333 329 else 334 330 DDrStartupMessage("unrecognised option \"%s\"", name); … … 681 677 } 682 678 683 //DDrPatch_MakeJump((void*)(OniExe + 0x000378c0, (void*)DDrException);684 679 DDrPatch_MakeJump((void*)(OniExe + 0x000245A0), (void*)DDrPrintWarning); 685 //init_daodan_gl();686 680 687 681 ONiMain(argc, argv); -
Daodan/src/Daodan.h
r690 r692 1 #pragma once2 1 #ifndef DAODAN_H 3 2 #define DAODAN_H 4 3 5 4 #include <windows.h> 6 #include " bool.h"5 #include "stdint.h" 7 6 8 7 #define ONICALL __fastcall … … 14 13 extern bool opt_topmost; 15 14 16 17 18 19 15 #endif -
Daodan/src/Daodan_BSL.c
r689 r692 1 1 #include <stdio.h> 2 #include " bool.h"2 #include "stdint.h" 3 3 #include <time.h> 4 //#include <ffi.h>5 4 #include <math.h> 6 #include " inifile.h"5 #include "Inifile_Reader.h" 7 6 #include "Daodan_BSL.h" 8 7 #include "Daodan_Utility.h" … … 12 11 #include "Oni.h" 13 12 #include "Oni_Character.h" 14 #include " oni_gl.h"13 #include "Oni_GL.h" 15 14 #include "Daodan_Character.h" 16 #include "BFW_Utility.h"17 15 18 16 -
Daodan/src/Daodan_BSL.h
r447 r692 1 #pragma once2 1 #ifndef DAODAN_BSL_H 3 2 #define DAODAN_BSL_H 4 5 #include "Daodan.h"6 3 7 4 void SLrDaodan_Initalize(); -
Daodan/src/Daodan_Character.c
r677 r692 2 2 #include "Daodan_Character.h" 3 3 #include "Oni_Character.h" 4 #include "BFW_Utility.h"5 4 #include "Oni.h" 6 5 … … 28 27 } 29 28 } 30 return -1; //not found :(29 return -1; //not found :( 31 30 } 32 /* 33 OniRectangle TestRect; 34 void CHARTest() 35 { 36 37 CharacterObject* TestCHAR = malloc(sizeof(CharacterObject)); 38 memset(TestCHAR, 0, sizeof(CharacterObject)); 39 40 int type = 0x43484152; 41 TestCHAR->Header.Type = type; 42 memcpy(TestCHAR->OSD.Name, "Gumby", 6); 43 memcpy(TestCHAR->OSD.Class, "striker_easy_1", 15); 44 memcpy(TestCHAR->OSD.ScriptSpawn, "dmsg", 20); 45 //TestCHAR->OSD.Options = chr_unkillable; 46 TestCHAR->OSD.TeamID = team_syndicate; 47 //int* ptr = 0x005ECE70; 48 TestRect.Top = 10; 49 TestRect.Left = 10; 50 TestRect.Right = 100; 51 TestRect.Bottom = 100; 52 53 char str[5] = "hi"; 54 str[2] = '\0'; 55 AUrMessageBox(0, "%8x", &TestRect); 56 int16_t a = TSrContext_DrawText(TestContext, str, 0xFF, &TestRect, &TestRect); 57 //ONrGameState_NewCharacter(TestCHAR, NULL, NULL, NULL); 58 return; 59 } 60 */ 31 -
Daodan/src/Daodan_Character.h
r677 r692 1 #pragma once2 1 #ifndef DAODAN_CHARACTER_H 3 2 #define DAODAN_CHARACTER_H 4 3 5 #include "Daodan.h" 6 //#include <stdint.h> 4 #include "stdint.h" 7 5 8 6 int DDr_TeamToTeamID(const char* team_string); 9 void CHARTest();10 7 uint32_t DDrGetCharacterIndexFromName(char* ); 8 11 9 #endif -
Daodan/src/Daodan_Cheater.c
r690 r692 1 1 #include <string.h> 2 #include " bool.h"2 #include "stdint.h" 3 3 #include <math.h> 4 4 #include "Oni.h" -
Daodan/src/Daodan_Cheater.h
r677 r692 1 #pragma once2 1 #ifndef DAODAN_CHEATER_H 3 2 #define DAODAN_CHEATER_H 4 3 5 //#include <stdint.h> 4 #include "Daodan.h" 6 5 7 6 typedef struct { … … 12 11 } oniCheatCode; 13 12 14 enum { cheat_shapeshifter, 13 enum { 14 cheat_shapeshifter, 15 15 cheat_liveforever, 16 16 cheat_touchofdeath, … … 46 46 47 47 extern oniCheatCode DDr_CheatTable[]; 48 extern int turn_dev_mode_on;49 48 uint8_t ONICALL DDrCheater(uint32_t cheat); 50 49 void __stdcall FallingFrames(void* Ebp); -
Daodan/src/Daodan_Console.c
r689 r692 1 1 #include <stdlib.h> 2 2 #include <stdarg.h> 3 //#include <stdint.h>4 3 5 4 #include "Daodan_Console.h" 6 #include "BFW_Utility.h"7 5 #include "Oni_Symbols.h" 8 6 -
Daodan/src/Daodan_Console.h
r677 r692 1 #pragma once2 1 #ifndef DAODAN_CONSOLE_H 3 2 #define DAODAN_CONSOLE_H 4 5 //#include <stdint.h>6 3 7 4 #include "Daodan.h" 8 5 9 6 typedef struct { 10 char B;11 char G;12 char R;13 char A;7 char B; 8 char G; 9 char R; 10 char A; 14 11 } RGBA; 15 12 16 13 17 14 typedef struct { 18 char A;19 char R;20 char G;21 char B;15 char A; 16 char R; 17 char G; 18 char B; 22 19 } ARGB; 23 20 … … 31 28 extern TStColorFormattingCharacter DDrDSayColors[]; 32 29 33 #ifdef __cplusplus34 extern "C"35 #endif36 30 void DDrConsole_Print(const char* text); 37 31 38 #ifdef __cplusplus39 extern "C"40 #endif41 32 void DDrConsole_PrintColored(const char* text, int priority, RGBA color, RGBA shade); 42 33 43 #ifdef __cplusplus44 extern "C"45 #endif46 34 void DDrConsole_PrintF(const char* fmt, ...); 47 35 -
Daodan/src/Daodan_GL.c
r691 r692 3 3 4 4 #include "Oni.h" 5 #include "Oni_Persistence.h"6 5 #include "Daodan_Utility.h" 7 6 #include <GL/gl.h> 8 7 #include <GL/glu.h> 9 8 #include "Daodan_Win32.h" 10 #include "BFW_Utility.h" 11 12 #include "daodan_gl.h" 13 #include "oni_gl.h" 9 10 #include "Daodan_GL.h" 11 #include "Oni_GL.h" 14 12 15 13 #define max_modes (104) // Dirty hack to add more resolutions, it really should only be 16 ^_^ 16 14 #define builtin_modes (sizeof(daodan_reslist) / sizeof(M3tDisplayMode)) 17 15 #define builtin_depths (sizeof(daodan_resdepths) / sizeof(short)) 16 17 bool daodan_testmode(M3tDisplayMode mode); 18 18 19 19 const M3tDisplayMode daodan_reslist[] = { … … 52 52 DEVMODE orig_devmode, cur_devmode, new_devmode; 53 53 54 /* Never called 54 55 void init_daodan_gl() 55 56 { … … 70 71 memcpy(&new_devmode, &orig_devmode, sizeof(orig_devmode)); 71 72 } 73 */ 72 74 73 75 void update_cdmode() … … 239 241 } 240 242 241 if (gl_gamma_ramp_valid)243 /*if (gl_gamma_ramp_valid) 242 244 daodan_set_gamma(ONrPersist_GetGamma()); 243 else 245 else*/ 244 246 DDrStartupMessage("gamma adjustment not supported"); 245 247 -
Daodan/src/Daodan_GL.h
r689 r692 1 #pragma once2 1 #ifndef DAODAN_GL_H 3 2 #define DAODAN_GL_H … … 6 5 #include "BFW_Motoko_Draw.h" 7 6 8 #include "oni_gl.h" 7 unsigned int ONICALL daodan_enumerate_valid_display_modes(M3tDisplayMode modes[16]); 8 int ONICALL daodangl_platform_initialize(); 9 9 10 void init_daodan_gl();11 void update_cdmode();12 unsigned int ONICALL daodan_enumerate_valid_display_modes(M3tDisplayMode modes[16]);13 bool daodan_testmode(M3tDisplayMode mode);14 int daodan_set_display_mode(short width, short height, short depth);15 void daodan_set_gamma(float gamma);16 int ONICALL daodangl_platform_initialize();17 10 #endif -
Daodan/src/Daodan_Patch.h
r689 r692 1 #pragma once2 1 #ifndef DAODAN_PATCH_H 3 2 #define DAODAN_PATCH_H 4 3 5 #include " bool.h"4 #include "stdint.h" 6 5 7 6 #define DDrPatch_Const(d, c) DDrPatch_String(d, c, sizeof(c)) -
Daodan/src/Daodan_Persistence.c
r339 r692 6 6 return 1; 7 7 } 8 -
Daodan/src/Daodan_Persistence.h
r677 r692 1 #pragma once2 1 #ifndef DAODAN_PERSISTENCE_H 3 2 #define DAODAN_PERSISTENCE_H 4 5 //#include <stdint.h>6 3 7 4 #include "Daodan.h" -
Daodan/src/Daodan_Utility.c
r682 r692 2 2 #include <stdlib.h> 3 3 #include <stdarg.h> 4 //#include <stdint.h>5 #include "oni_stdio.h"6 4 7 5 #include "Daodan_Utility.h" 8 #include "BFW_Utility.h"9 6 #include "Oni.h" 10 7 … … 33 30 return; 34 31 } 35 36 /*37 int64_t ONICALL DDrMachineTime_Sixtieths()38 {39 static int64_t LastTime, Time;40 int64_t Current;41 42 Current = LastTime + GetTickCount();43 44 if (Current > Time)45 {46 LastTime += 1;47 Current += 1;48 }49 50 Time = Current;51 52 return (Time * 3) / 50;53 }54 */55 32 56 33 int64_t ONICALL DDrMachineTime_Sixtieths() -
Daodan/src/Daodan_Utility.h
r677 r692 1 #pragma once2 1 #ifndef DAODAN_UTILITY_H 3 2 #define DAODAN_UTILITY_H 4 3 5 //#include <stdint.h>6 4 #include "Daodan.h" 7 5 8 #ifdef __cplusplus9 extern "C"10 #endif11 6 void __cdecl DDrStartupMessage(const char* fmt, ...); 12 7 int64_t ONICALL DDrMachineTime_High(); -
Daodan/src/Daodan_Win32.c
r677 r692 4 4 #include "Daodan_Win32.h" 5 5 6 #include " BFW_Utility.h"6 #include "Oni.h" 7 7 8 #include "Oni.h"9 8 extern HWND onihwnd; 9 10 10 short ONICALL DDrPlatform_Initialize(ONtPlatformData *PlatformData) 11 11 { … … 50 50 return 0; 51 51 } 52 -
Daodan/src/Daodan_Win32.h
r323 r692 1 #pragma once2 1 #ifndef DAODAN_WIN32_H 3 2 #define DAODAN_WIN32_H -
Daodan/src/Daodan_WindowHack.c
r690 r692 2 2 #include "Daodan_WindowHack.h" 3 3 #include "Daodan_Patch.h" 4 #include "Daodan_Character.h"5 4 6 5 #include "Oni.h" 7 #include "BFW_Motoko_Draw.h" 8 #include "oni_gl.h" 6 #include "Oni_GL.h" 9 7 10 8 volatile HWND onihwnd, boxhwnd = NULL; -
Daodan/src/Daodan_WindowHack.h
r677 r692 1 #pragma once2 1 #ifndef DAODAN_WINDOWHACK_H 3 2 #define DAODAN_WINDOWHACK_H 3 4 #include <windows.h> 4 5 5 6 void DDrWindowHack_Install(); -
Daodan/src/Inifile_Reader.c
r689 r692 1 1 #include <stdio.h> 2 2 #include <stdlib.h> 3 #include " bool.h"3 #include "stdint.h" 4 4 #include <string.h> 5 5 #include <ctype.h> 6 6 7 #include " inifile.h"7 #include "Inifile_Reader.h" 8 8 9 9 char* inifile_cleanstr(char* str) -
Daodan/src/Inifile_Reader.h
r689 r692 1 #pragma once2 1 #ifndef INIFILE_H 3 2 #define INIFILE_H 4 3 5 #include "bool.h" 6 //#include <stdint.h> 4 #include "stdint.h" 7 5 8 enum {inifile_cantread = -20}; 6 enum { 7 inifile_cantread = -20 8 }; 9 9 10 10 typedef bool (*inifile_callback)(char* section, bool newsection, char* name, char* value); -
Daodan/src/Oni.h
r690 r692 1 #pragma once2 1 #ifndef ONI_H 3 2 #define ONI_H 4 3 5 4 #include "Daodan.h" 6 #include "oni_gl.h" 7 //#include <stdint.h> 5 #include "Oni_GL.h" 8 6 #include <windows.h> 9 7 #include "Oni_GameState.h" 8 10 9 typedef unsigned char onibool; 11 10 12 typedef struct 13 { 11 typedef struct { 14 12 HINSTANCE Instance; 15 13 HWND Window; … … 22 20 void** PointerList, //Where the found pointers go 23 21 int* FoundCount //Where the number of pointers found go. 24 22 ); 25 23 26 24 #include "Oni_Symbols.h" -
Daodan/src/Oni_Character.h
r677 r692 1 #pragma once2 1 #ifndef ONI_CHARACTER_H 3 2 #define ONI_CHARACTER_H 4 3 5 //#include <stdint.h> 6 #include "bool.h" 4 #include "stdint.h" 7 5 8 6 enum { … … 16 14 team_syndicateaccessory, 17 15 }; 18 /* 19 int16_t ONICALL ONrGameState_NewCharacter(CharacterObject* CHAR, void* AISA, void* flag, uint32_t* list_location); 20 int32_t* ONICALL ONrGetActiveCharacter(void* CharacterPtr); 21 //int16_t ONICALL ONrGameState_GetPlayerCharacter(); 22 */ 23 //probably need to name these better. 24 /* 25 #define char_unkillable (1 << 5) 26 #define char_superammo (1 << 6) 27 #define char_unstoppable (1 << 8) 28 #define char_deathlock (1 << 10) 29 #define char_dontaim (1 << 13) 30 #define char_nocollision (1 << 17) 31 #define char_noshadow (1 << 24) 32 #define char_invincible (1 << 25) 33 #define char_bossshield (1 << 30) 34 #define char_weaponimmune (1 << 31) 35 */ 16 36 17 37 18 //We need a Oni_Structs #include file. -
Daodan/src/Oni_GL.h
r689 r692 1 #pragma once2 1 #ifndef ONI_GL_H 3 2 #define ONI_GL_H 4 3 4 #include <windows.h> 5 5 #include <GL/gl.h> 6 6 7 #include "Daodan.h"8 7 #include "BFW_Motoko_Draw.h" 9 8 … … 441 440 442 441 443 444 445 442 #endif -
Daodan/src/Oni_GameState.h
r677 r692 1 1 #ifndef ONI_GAMESTATE_H 2 2 #define ONI_GAMESTATE_H 3 3 4 #include "Oni_Character.h" 4 5 5 6 6 typedef struct { … … 420 420 chr_weaponimmune = 1 << 31, 421 421 } chr_flags; 422 /* 423 enum { 424 chr_isplayer = 0x00000001, //is player character 425 chr_randomskin = 0x00000002, //gets random skin from ONCV 426 chr_notprespawned = 0x00000004, //isn't spawned at level creation 427 chr_noncombatant = 0x00000008, //doesn't fight 428 chr_multispawnable = 0x00000010, //can spawn up to 5 without forcing 429 chr_unknown = 0x00000020, // 430 chr_unkillable = 0x00000040, //can only be brought to 1 hp 431 chr_superammo = 0x00000080, //infinite ammo 432 chr_omniscient = 0x00000100, //touchofdeath 433 chr_haslsi = 0x00000200, //drops an lsi 434 chr_boss = 0x00000400, //is a boss character 435 chr_upgradedifficulty = 0x00000800, //upgrade the difficulty if you play on med\hard 436 chr_noautodrop = 0x00001000, //uses drop fields instead of has fields on death 437 }; // 438 */ 422 439 423 440 424 typedef struct { … … 1474 1458 int blah3; 1475 1459 } COtTextArea; 1460 1476 1461 #endif 1462 -
Daodan/src/Oni_Symbols.h
r691 r692 1 1 #ifndef ONI_SYMBOLS_H 2 2 #define ONI_SYMBOLS_H 3 #include " bool.h"3 #include "stdint.h" 4 4 #include <stdio.h> 5 5 #include "Oni.h" 6 #include " oni_gl.h"6 #include "Oni_GL.h" 7 7 #include "Oni_Character.h" 8 8 #include "BFW_ScriptLang.h" … … 41 41 #define gl_gamma_ramp_valid (*((int*)0x005603fc)) 42 42 43 // OpenGL whatev?43 // OpenGL: list of pointers to opengl32.dll functions (and a few functions from GL extensions) 44 44 #define gl_api (*((gl_api_t**)0x00560604)) 45 45 46 // OpenGL whatev?46 // OpenGL render engine descriptor (resolutions, flags, context methods) 47 47 #define gl_eng (*((gl_engine_t**)0x00560600)) 48 48 … … 107 107 DefFunc(int, gl_platform_initialize, ONICALL, (), 0x00407da0); 108 108 109 // Retrieve gamma value from settings 109 110 DefFunc(float, ONrPersist_GetGamma, ONICALL, (), 0x0050f450); 111 112 // Retrieve if the game was completed 110 113 DefFunc(uint8_t, ONrPersist_GetWonGame, ONICALL, (), 0x0050f660); 111 114 115 // Print a message to the startup.txt log 112 116 DefFunc(void, UUrStartupMessage, __cdecl, (const char* fmt, ...), 0x00424860); 117 118 // Probably to spawn a new character 113 119 DefFunc(int16_t, ONrGameState_NewCharacter, ONICALL, (void* CHAR, void* AISA, void* flag, uint32_t* list_location), 0x004dac50); 120 121 // Remove character 122 DefFunc(void, ONrGameState_DeleteCharacter, ONICALL, (Character *inCharacter), 0x004DC480); 123 124 DefFunc(void, ONrGameState_Timer_Start, ONICALL, (char* function, int time), 0x004FD370); 125 126 // Get active (player?) character 114 127 DefFunc(ActiveCharacter*, ONrGetActiveCharacter, ONICALL, (void* CharacterPtr), 0x004f1180); 128 129 DefFunc(uint32_t, ONrCharacter_GetHealthShade, ONICALL, (uint32_t health, uint32_t maxhealth), 0x004EF450); 115 130 DefFunc(void, ONrCharacter_NewAnimationHook, ONICALL, (Character *ioCharacter, ActiveCharacter *ioActiveCharacter), 0x004E97A0); 116 131 DefFunc(void, ONrCharacter_SetAnimationExternal, ONICALL, (Character *ioCharacter, short state, void* animation, int interpolation), 0x004EB340); 117 132 DefFunc(void, ONrCharacter_SetHitPoints, ONICALL, (Character *ioCharacter, uint32_t inHitPoints), 0x004EB220); 133 DefFunc(void, ONrCharacter_SetCharacterClass, ONICALL, (Character* Char, ONCC* Class), 0x004D7C30); 134 DefFunc(void, ONrCorpse_Create, ONICALL, (Character* Character), 0x004EF340); 135 136 137 // Print message to console 118 138 DefFunc(void, COrTextArea_Print, ONICALL, (uint32_t area, uint32_t priority, uint32_t textshade, uint32_t textshadowshade, const char* text, uint32_t unk_alwaws_0, uint32_t fadetime), 0x00431340); 139 140 // Original cheat function 119 141 DefFunc(uint8_t, ONrCheater, ONICALL, (uint32_t cheat), 0x004f5c30); 142 143 // ? 120 144 DefFunc(int, AUrMessageBox, __cdecl, (int Buttons, char *Message, ...), 0x004378c0); 121 145 DefFunc(char*, SSrMessage_Find, ONICALL, (char* message_key), 0x0047F550); 122 146 DefFunc(void, ONiGameState_FindAutoPromptMessage, ONICALL, (char* Note, void* ptr), 0x004FDBE0); 123 147 148 // Register a BSL function with a return type 124 149 DefFunc(uint16_t, SLrScript_Command_Register_ReturnType, ONICALL, (char* name, char* desc, char* argfmt, sl_type type, sl_func callback), 0x00477b20); 150 151 // Register a BSL function without a return value 125 152 DefFunc(uint16_t, SLrScript_Command_Register_Void, ONICALL, (char* name, char* desc, char* argfmt, sl_func callback), 0x00477b40); 153 154 // Register a global BSL variable 126 155 DefFunc(uint16_t, SLrGlobalVariable_Register_Int32, ONICALL, (char* name, char* desc, int32_t* data), 0x00477e30); 127 156 DefFunc(uint16_t, SLrGlobalVariable_Register_Float, ONICALL, (char* name, char* desc, float* data), 0x00477ec0); 128 157 DefFunc(uint16_t, SLrGlobalVariable_Register_String, ONICALL, (char* name, char* desc, char* data), 0x00477fe0); 129 158 159 // Print message to console ? 130 160 DefFunc(int, COrMessage_Print, ONICALL, (char* Message, char* Key, void* noidea), 0x004304B0); 161 131 162 DefFunc(void, COrConsole_StatusLine_Display, ONICALL, (), 0x00431E70); 163 164 // Get pointer to specified data instance 132 165 DefFunc(int16_t, TMrInstance_GetDataPtr, ONICALL, (int tag, char* name, void* pointer), 0x004232E0); 166 167 // Get name of data instance pointed to 133 168 DefFunc(char*, TMrInstance_GetInstanceName, ONICALL, (void* InstancePointer), 0x00423D90); 134 169 170 DefFunc(short, TMrInstance_GetDataPtr_ByNumber, ONICALL, (int tag, int number, void** out), 0x00423680); 171 DefFunc(uint32_t, TMrInstance_GetTagCount, ONICALL, (int tag), 0x004236F0); 172 173 // Draw text on the screen 135 174 DefFunc(int16_t, TSrContext_DrawText, ONICALL, (uint32_t TSrContext, char* Text, char alpha, uint32_t usuallyzero, void* pRect), 0x0042DF00); 136 175 DefFunc(int16_t, TSrContext_New, ONICALL, (void* FontInstance, int size, int hthsik1,int hthsik2,int hthsik3, void* TSrContext), 0x0042EA30); 137 176 138 177 DefFunc(int16_t, TSrContext_SetShade, ONICALL, (void *ioTextContext, uint32_t inShade), 0x0042EE50); 139 DefFunc(void, ONrGameState_Timer_Start, ONICALL, (char* function, int time), 0x004FD370); 178 140 179 DefFunc(uint16_t, TRrAnimation_GetDuration, ONICALL, (void* Animation), 0x00428740); 141 180 DefFunc(uint16_t, TRrAnimation_GetTo, ONICALL, (void* Animation), 0x00428730); 142 181 DefFunc(uint16_t, TRrAnimation_GetFrom, ONICALL, (void* Animation), 0x00428720); 143 144 DefFunc(void, ONrCharacter_SetHitPoints, ONICALL, (Character *ioCharacter, uint32_t inHitPoints), 0x004EB220);145 DefFunc(void, ONrCorpse_Create, ONICALL, (Character* Character), 0x004EF340);146 182 147 183 DefFunc(uint16_t, iSetCharacterClass, ONICALL, (sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret), 0x004D99D0); … … 150 186 //NOT USED: DefFunc(int, OBJiObjectGroup_GetNumObjects, ONICALL, (void *inObjectGroup), ); 151 187 152 DefFunc(void, ONrGameState_DeleteCharacter, ONICALL, (Character *inCharacter), 0x004DC480);153 154 188 DefFunc(int, OBJrObjectType_EnumerateObjects, ONICALL, (int inObjectType, OBJtEnumCallback_Object inEnumCallback, int inUserData), 0x004D0080); 155 189 … … 160 194 161 195 162 DefFunc(void, ONrCharacter_SetCharacterClass, ONICALL, (Character* Char, ONCC* Class), 0x004D7C30);163 DefFunc(short, TMrInstance_GetDataPtr_ByNumber, ONICALL, (int tag, int number, void** out), 0x00423680);164 DefFunc(uint32_t, TMrInstance_GetTagCount, ONICALL, (int tag), 0x004236F0);165 DefFunc(uint32_t, ONrCharacter_GetHealthShade, ONICALL, (uint32_t health, uint32_t maxhealth), 0x004EF450);166 196 DefFunc(void, ONiDrawWeaponSight, ONICALL, (Character* Char), 0x004E1900); 167 197 DefFunc(void, AI2rDisplayDebuggingInfo, ONICALL, (Character* Char), 0x0048C5F0);
Note:
See TracChangeset
for help on using the changeset viewer.