-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
604 additions
and
561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
cmake_minimum_required(VERSION 3.6) | ||
|
||
project("Splinter Cell 3 Hacks") | ||
project("SCCT GUI") | ||
|
||
set(EXEC "sp3") | ||
set(CMAKE_C_STANDARD 99) | ||
set(EXEC "scctgui") | ||
set(CMAKE_C_STANDARD 17) | ||
|
||
## Sources | ||
file(GLOB SOURCES src/*.c) | ||
|
||
## Includes | ||
include_directories(include) | ||
include_directories("C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2010)\\Include") | ||
|
||
## Library | ||
link_directories("C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2010)\\Lib/x86") | ||
|
||
## Output DLL | ||
add_library(${EXEC} SHARED ${SOURCES}) | ||
|
||
## Output DIR | ||
#set_target_properties(${EXEC} | ||
# PROPERTIES | ||
# CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin | ||
# CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin | ||
# CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin | ||
#) | ||
|
||
## Library Files | ||
target_link_libraries(${EXEC} Winmm) | ||
target_link_libraries(${EXEC} d3d9 d3dx9) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef _D3D9HOOK_H | ||
#define _D3D9HOOK_H | ||
|
||
#include <windows.h> | ||
#include <stdbool.h> | ||
#include <d3d9.h> | ||
#include <d3dx9.h> | ||
|
||
typedef HRESULT(APIENTRY* tEndScene)(LPDIRECT3DDEVICE9 pDevice); | ||
|
||
bool GetD3D9Device(void** pTable, size_t Size); | ||
|
||
BOOL CALLBACK EnumWindowsCallback(HWND handle, LPARAM lParam); | ||
|
||
HWND GetProcessWindow(); | ||
|
||
#endif /* _D3D9HOOK_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef _DRAWING_H | ||
#define _DRAWING_H | ||
|
||
#include "d3d9hook.h" | ||
|
||
void draw_DrawBorderBox(int x, int y, int w, int h, int thickness, D3DCOLOR Colour, IDirect3DDevice9* d3dDevice); | ||
|
||
void draw_DrawFilledRect(int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* d3dDevice); | ||
|
||
void draw_DrawText(LPCSTR TextToDraw, int x, int y, D3DCOLOR Colour, LPD3DXFONT m_font); | ||
|
||
#endif /* _DRAWING_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,5 +40,4 @@ typedef struct Weapon | |
float bloom_y; // + 0x0524 | ||
} Weapon; | ||
|
||
|
||
#endif | ||
#endif |
Oops, something went wrong.