- Timestamp:
- Oct 30, 2009, 8:41:39 AM (15 years ago)
- Location:
- Daodan/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan.c
r468 r473 47 47 bool patch_usegettickcount = true; 48 48 bool patch_cheatsenabled = true; 49 bool patch_usedaodangl = false;50 bool patch_windowhack = true;49 bool patch_usedaodangl = true; 50 bool patch_windowhack = false; 51 51 bool patch_daodaninit = true; 52 52 bool patch_bsl = true; 53 53 bool patch_cheater = true; 54 55 bool patch_newweapon = true; 54 56 55 57 bool opt_usedaodanbsl = true; … … 174 176 DDrPatch_Byte (OniExe + 0x00135af4, 0x0B); 175 177 } 178 179 //Test newweap patch 180 // if (patch_newweapon) { 181 // DDrPatch_NOOP( OniExe + 0x000E4DF8, 2); 182 // } 176 183 177 184 // Disable loading the vtuneapi.dll -
Daodan/src/Daodan_Cheater.c
r472 r473 40 40 { "x", "Developer Access Enabled", "Developer Access Disabled", cheat_x }, 41 41 { "testcheat", "Testing...", "", cheat_testcheat }, 42 { "tellmetheversion","Daodan Version ???", "",cheat_tellmetheversion},42 { "tellmetheversion","Daodan v.3.0", "", cheat_tellmetheversion}, 43 43 {0} 44 44 }; … … 218 218 player->MaxHealth = cheat_oldmaxhealth; 219 219 player->Flags = player->Flags & ~(chr_bossshield | chr_weaponimmune); 220 ai2_deaf = 0; 220 221 return 0; 221 222 } … … 227 228 player->MaxHealth = 1; 228 229 player->Flags = player->Flags | chr_bossshield | chr_weaponimmune; 230 ai2_deaf = 1; 229 231 return 1; 230 232 } -
Daodan/src/Oni.h
r466 r473 7 7 #include <stdint.h> 8 8 #include <windows.h> 9 10 typedef unsigned char onibool; 9 11 10 12 typedef struct … … 24 26 25 27 extern void* ONgGameState; 28 extern onibool ai2_deaf; 26 29 27 30 extern char M3gResolutionSwitch; -
Daodan/src/Oni_Character.h
r470 r473 3 3 #define ONI_CHARACTER_H 4 4 5 #include " Daodan.h"5 #include "Oni.h" 6 6 #include <stdint.h> 7 7 #include <stdbool.h> … … 301 301 int32_t Executor_HasFacingOverride; //a bool... 302 302 float Executor_AimingSpeed; 303 bool field_1AB8; //actually a bitset...304 bool Executor_HasMoveOverride;303 onibool field_1AB8; //actually a bitset... 304 onibool Executor_HasMoveOverride; 305 305 int16_t field_1ABA; 306 306 int32_t field_1ABC; … … 363 363 AttachedParticle AnimationAttachedParticles[16]; 364 364 int32_t TRAMParticles; 365 bool FixedParticlesAttached;366 bool FixedParticlesStarted;365 onibool FixedParticlesAttached; 366 onibool FixedParticlesStarted; 367 367 int16_t NumFixedParticles; 368 368 AttachedParticle FixedParticles[16]; … … 400 400 int32_t field_21D0; 401 401 int32_t field_21D4; 402 bool field_21D8;403 bool field_21D9;404 bool field_21DA;405 bool field_21DB;406 bool field_21DC;407 bool field_21DD;408 bool field_21DE;409 bool field_21DF;410 bool field_21E0;411 bool HasAlternateTrigger;412 bool field_21E2;413 bool ReleaseTrigger;414 bool ReleaseAlternateTrigger;415 bool TurningLeft;416 bool TurningRight;417 bool field_21E7;402 onibool field_21D8; 403 onibool field_21D9; 404 onibool field_21DA; 405 onibool field_21DB; 406 onibool field_21DC; 407 onibool field_21DD; 408 onibool field_21DE; 409 onibool field_21DF; 410 onibool field_21E0; 411 onibool HasAlternateTrigger; 412 onibool field_21E2; 413 onibool ReleaseTrigger; 414 onibool ReleaseAlternateTrigger; 415 onibool TurningLeft; 416 onibool TurningRight; 417 onibool field_21E7; 418 418 int32_t field_21E8; 419 419 int32_t field_21EC; … … 427 427 int16_t field_27FE; 428 428 int16_t field_2780; 429 bool ShieldParts[19];430 bool field_2815; //padding...431 bool field_2816;432 bool field_2817;429 onibool ShieldParts[19]; 430 onibool field_2815; //padding... 431 onibool field_2816; 432 onibool field_2817; 433 433 int32_t field_2818[8]; 434 434 } ActiveCharacter; -
Daodan/src/Oni_Symbols.S
r466 r473 19 19 symbol ( _ONgPlatformData , 0x0023100c ) 20 20 symbol ( _ONgGameState , 0x001ece7c ) 21 21 symbol ( _ai2_deaf , 0x001ec0c1 ) 22 22 symbol ( _AKgDebug_DebugMaps , 0x002b2204 ) 23 23 symbol ( _BFgDebugFileEnable , 0x0015c8d0 ) -
Daodan/src/daodan_gl.c
r342 r473 195 195 void daodan_set_gamma(float gamma) 196 196 { 197 WORD ramp[3 *256];197 WORD ramp[3][256]; 198 198 int i; 199 199 … … 203 203 gamma = (1.0f - gamma) * 1.2f + 0.4f; 204 204 205 for (i = 0; i < sizeof(ramp); i++)205 for (i = 0; i < 256; i++) 206 206 { 207 207 int value = (int)(pow(gl_gamma_ramp[i] / 65535.0f, gamma) * 65535.0f); … … 212 212 value = 65535; 213 213 214 ramp[ i] = value;214 ramp[0][i] = ramp[1][i] = ramp[2][i] = value; 215 215 } 216 216 … … 242 242 Rect.right = Rect.left + gl->DisplayMode.Width; 243 243 Rect.bottom = Rect.top + gl->DisplayMode.Height; 244 AdjustWindowRect(&Rect, WS_OVERLAPPED | WS_MAXIMIZEBOX | WS_MINIMIZEBOX, FALSE); 244 //http://msdn.microsoft.com/en-us/library/ms632665(VS.85).aspx 245 //dwStyle 246 //[in] Specifies the window style of the window whose required size is to be calculated. Note that you cannot specify the WS_OVERLAPPED style. 247 AdjustWindowRect(&Rect, WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_CAPTION, TRUE); 245 248 246 249 SetWindowPos(ONgPlatformData.Window, NULL, Rect.left, Rect.top, Rect.right - Rect.left, Rect.bottom - Rect.top, SWP_NOACTIVATE | SWP_NOZORDER); … … 266 269 } 267 270 268 // if (gl_gamma_ramp_valid) 269 // daodan_set_gamma(ONrPersist_GetGamma()); Its not working :( 270 // else 271 if (gl_gamma_ramp_valid) 272 //Its working now 273 daodan_set_gamma(ONrPersist_GetGamma()); 274 else 271 275 DDrStartupMessage("gamma adjustment not supported"); 272 276 … … 284 288 lastmode.Height = gl->DisplayMode.Height; 285 289 lastmode.Depth = gl->DisplayMode.Depth; 286 287 return 0; 290 return 1; 288 291 289 292 exit_err: 290 293 AUrMessageBox(1, "Failed to initialize OpenGL contexts; Oni will now exit."); 291 294 exit(0); 292 return 1;293 } 295 return 0; 296 }
Note:
See TracChangeset
for help on using the changeset viewer.