mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
Added DSETUP
Changes: modified: CMakeLists.txt new file: libs/dsetup/README.md new file: libs/dsetup/dsetup.cpp new file: libs/dsetup/dsetup.hpp new file: libs/dsetup/fun/DirectXSetupGetVersion.cpp new file: libs/dsetup/fun/DirectXSetupGetVersion.hpp
This commit is contained in:
parent
fac0c0ebcd
commit
e9ce3f02d8
@ -43,7 +43,15 @@ include_directories(./prod_include)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
#d3d9.so:
|
||||
#libdsetup.so:
|
||||
|
||||
#resolve wildcards and add "dsetup.cpp" as the first of the list
|
||||
set(DSETUP_CPP libs/dsetup/dsetup.cpp)
|
||||
file(GLOB_RECURSE DSETUP_CPP libs/dsetup/fun/*.cpp)
|
||||
|
||||
add_library(dsetup SHARED ${DSETUP_CPP})
|
||||
|
||||
#libd3d9.so:
|
||||
add_library(d3d9 SHARED libs/d3d9/d3d9.cpp)
|
||||
|
||||
#dxdiag:
|
||||
@ -55,6 +63,7 @@ link_directories(${GTK4_LIBRARY_DIRS})
|
||||
|
||||
add_executable(dxdiag tools/dxdiag/main.cpp)
|
||||
target_link_libraries(dxdiag ${GTK4_LIBRARIES})
|
||||
target_link_libraries(dxdiag dsetup)
|
||||
target_link_libraries(dxdiag d3d9)
|
||||
|
||||
|
||||
|
2
libs/dsetup/README.md
Normal file
2
libs/dsetup/README.md
Normal file
@ -0,0 +1,2 @@
|
||||
# libdsetup.so
|
||||
Legacy code for DirectX Setup. This is a DLL that is loaded by the DirectX 9.
|
1
libs/dsetup/dsetup.cpp
Normal file
1
libs/dsetup/dsetup.cpp
Normal file
@ -0,0 +1 @@
|
||||
#include "dsetup.hpp"
|
1
libs/dsetup/dsetup.hpp
Normal file
1
libs/dsetup/dsetup.hpp
Normal file
@ -0,0 +1 @@
|
||||
#include "fun/DirectXSetupGetVersion.hpp"
|
17
libs/dsetup/fun/DirectXSetupGetVersion.cpp
Normal file
17
libs/dsetup/fun/DirectXSetupGetVersion.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include "DirectXSetupGetVersion.hpp"
|
||||
|
||||
/**
|
||||
* @brief Get DirectX version
|
||||
*
|
||||
* @todo Implement this function
|
||||
* * @see https://github.com/EduApps-CDG/OpenDX/wiki/dsetup.dll-or-libdsetup.so#int-directxsetupgetversiondword-dword
|
||||
*
|
||||
* @param ver
|
||||
* @param rev
|
||||
* @return int 1 (always?)
|
||||
*/
|
||||
int DirectXSetupGetVersion(DWORD* ver, DWORD* rev) {
|
||||
*ver = 0;
|
||||
*rev = 0;
|
||||
return 1;
|
||||
}
|
13
libs/dsetup/fun/DirectXSetupGetVersion.hpp
Normal file
13
libs/dsetup/fun/DirectXSetupGetVersion.hpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include <windows.h>
|
||||
|
||||
/**
|
||||
* @brief Get DirectX version
|
||||
*
|
||||
* @todo Implement this function
|
||||
* * @see https://github.com/EduApps-CDG/OpenDX/wiki/dsetup.dll-or-libdsetup.so#int-directxsetupgetversiondword-dword
|
||||
*
|
||||
* @param ver
|
||||
* @param rev
|
||||
* @return int 1 (always?)
|
||||
*/
|
||||
int DirectXSetupGetVersion(DWORD* ver, DWORD* rev);
|
Loading…
x
Reference in New Issue
Block a user