1
0
mirror of synced 2025-01-20 09:42:49 +01:00

Fix exports for 32/64 dlls

This commit is contained in:
Poliwrath 2019-04-09 01:36:12 -04:00
parent d6ab3f90e2
commit c2e9c5c162
4 changed files with 43 additions and 17 deletions

View File

@ -11,8 +11,6 @@ project "iDmacDrv"
includedirs { "src", }
linkoptions { "/DEF:iDmacDrv/src/Source.def" }
prebuildcommands {
"if not exist $(TargetDir)output mkdir $(TargetDir)output",
}
@ -24,6 +22,8 @@ project "iDmacDrv"
filter "platforms:x86"
targetsuffix "32"
linkoptions { "/DEF:iDmacDrv/src/Source32.def" }
filter "platforms:x64"
targetsuffix "64"
targetsuffix "64"
linkoptions { "/DEF:iDmacDrv/src/Source64.def" }

View File

@ -10,7 +10,7 @@ iDmacDrvRegisterBufferRead @7
iDmacDrvRegisterBufferWrite @8
iDmacDrvMemoryRead @9
iDmacDrvMemoryWrite @10
iDmacDrvMemoryReadExt @11
iDmacDrvMemoryWriteExt @12
iDmacDrvMemoryBufferRead @13
iDmacDrvMemoryBufferWrite @14
iDmacDrvMemoryBufferRead @11
iDmacDrvMemoryBufferWrite @12
iDmacDrvMemoryReadExt @13
iDmacDrvMemoryWriteExt @14

15
iDmacDrv/src/Source64.def Normal file
View File

@ -0,0 +1,15 @@
EXPORTS
iDmacDrvOpen @1
iDmacDrvClose @2
iDmacDrvDmaRead @3
iDmacDrvDmaWrite @4
iDmacDrvRegisterRead @5
iDmacDrvRegisterWrite @6
iDmacDrvRegisterBufferRead @7
iDmacDrvRegisterBufferWrite @8
iDmacDrvMemoryRead @9
iDmacDrvMemoryWrite @10
iDmacDrvMemoryBufferRead @11
iDmacDrvMemoryBufferWrite @12
iDmacDrvProgramDownload @13

View File

@ -83,16 +83,6 @@ extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryWrite(int a1, DWORD B
return 0;
}
extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryReadExt(int a1, DWORD BytesReturned, int a3, LPVOID lp, DWORD nOutBufferSize, LPVOID a6)
{
return 0;
}
extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryWriteExt(int a1, int a2, int a3, void *Src, rsize_t DstSize, LPVOID lp)
{
return 0;
}
extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryBufferRead(int a1, DWORD BytesReturned, LPVOID lp, UINT_PTR ucb, LPVOID a5)
{
return 0;
@ -103,6 +93,27 @@ extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryBufferWrite(int a1, i
return 0;
}
#ifdef _M_IX86
extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryReadExt(int a1, DWORD BytesReturned, int a3, LPVOID lp, DWORD nOutBufferSize, LPVOID a6)
{
return 0;
}
extern "C" __declspec(dllexport) int __cdecl iDmacDrvMemoryWriteExt(int a1, int a2, int a3, void *Src, rsize_t DstSize, LPVOID lp)
{
return 0;
}
#else
extern "C" __declspec(dllexport) int __cdecl iDmacDrvProgramDownload()
{
return 0;
}
#endif
int main()
{
return 1;