Skip to content

Commit

Permalink
Added d3d8types.h for ease of use, and moved d3d8 include to SADXFunc…
Browse files Browse the repository at this point in the history
…tions.h specifically.
  • Loading branch information
michael-fadely committed Jul 10, 2015
1 parent 9974fce commit 440d72b
Show file tree
Hide file tree
Showing 3 changed files with 1,677 additions and 2 deletions.
1 change: 0 additions & 1 deletion SADXModLoader/include/SADXModLoader.h
Expand Up @@ -7,7 +7,6 @@
#define SADXMODLOADER_H

#include "ninja.h"
#include <d3d8.h>

// HACK: Fixes conflict with Windows API PlaySound.
#ifdef PlaySound
Expand Down
3 changes: 2 additions & 1 deletion SADXModLoader/include/SADXModLoader/SADXFunctions.h
Expand Up @@ -8,6 +8,7 @@

#include <stdint.h>
#include "../ModLoader/MemAccess.h"
#include "../d3d8types.h"
#include "SADXStructs.h"

// SADX Functions
Expand Down Expand Up @@ -426,7 +427,7 @@ static inline void LoadCharBossSounds(int a2)

// uint16_t __usercall<ax>(byte *a2<esi>)
static const void *const CalcSaveChecksumPtr = (void*)0x42CF90;
static inline uint16_t CalcSaveChecksum(byte *a2)
static inline uint16_t CalcSaveChecksum(uint8_t *a2)
{
uint16_t result;
__asm
Expand Down

0 comments on commit 440d72b

Please sign in to comment.