Skip to content

Commit

Permalink
Fix up COM initialization.
Browse files Browse the repository at this point in the history
Add troubleshooting document.
Add DLL paths registry file to installer.
Update version to 0.2.1

git-svn-id: https://www.williamfeely.info/svn/dxgl@169 8a90861a-4eca-46d5-b744-240ff16d0c4d
  • Loading branch information
dxgldotorg committed Jun 8, 2012
1 parent 7847d85 commit 6c1061e
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Help/Help.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
<DeploymentContent>true</DeploymentContent>
</None>
<None Include="toc.hhc" />
<None Include="troubleshooting.htm">
<DeploymentContent>true</DeploymentContent>
</None>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
3 changes: 3 additions & 0 deletions Help/Help.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@
<None Include="dxgl.css">
<Filter>Help files</Filter>
</None>
<None Include="troubleshooting.htm">
<Filter>Help files</Filter>
</None>
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions Help/toc.hhc
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@
<param name="Name" value="Configuration">
<param name="Local" value="configuration.htm">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Troubleshooting">
<param name="Local" value="troubleshooting.htm">
</OBJECT>
</UL>
</BODY></HTML>
1 change: 1 addition & 0 deletions Installer/dxgl.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Section "MainSection" SEC01
File "..\ReadMe.txt"
File "..\COPYING.txt"
File "..\Help\dxgl.chm"
File "dllpaths.reg"
CreateShortCut "$SMPROGRAMS\DXGL\DXGL Help.lnk" "$INSTDIR\dxgl.chm"

StrCpy $8 0
Expand Down
2 changes: 1 addition & 1 deletion ReadMe.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DXGL 0.2.0
DXGL 0.2.1
http://www.williamfeely.info/wiki/DXGL

== Introduction ==
Expand Down
4 changes: 2 additions & 2 deletions common/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

#define DXGLMAJOR 0
#define DXGLMINOR 2
#define DXGLPOINT 0
#define DXGLPOINT 1
#define DXGLBUILD 0

#define DXGLVERNUMBER DXGLMAJOR,DXGLMINOR,DXGLPOINT,DXGLBUILD
#define DXGLVERQWORD (((unsigned __int64)DXGLMAJOR<<48)+((unsigned __int64)DXGLMINOR<<32)+((unsigned __int64)DXGLPOINT<<16)+(unsigned __int64)DXGLBUILD)
#define DXGLVERSTRING "0.2.0.0"
#define DXGLVERSTRING "0.2.1.0"


#endif //__VERSION_H
2 changes: 1 addition & 1 deletion common/version.nsh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
!define PRODUCT_VERSION "0.2.0"
!define PRODUCT_VERSION "0.2.1"
12 changes: 11 additions & 1 deletion ddraw/ddraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,17 @@ DDRAW_API void WINAPI SetAppCompatData()
FIXME("SetAppCompatData: stub\n");
}

/// Stub for function found in system ddraw.dll
/**
* Test if the ddraw.dll file is DXGL. Do not link to this entry point.
* Use LoadLibrary and GetProcAddress instead.
* @return
* Returns TRUE
* @remark
* Test for DXGL by testing if this function exists. Please do not use
* this function to test whether your program should run or not. This
* function may be changed or removed in case of abuse.
*/

DDRAW_API BOOL IsDXGLDDraw()
{
return TRUE;
Expand Down
3 changes: 3 additions & 0 deletions ddraw/glClassFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,21 @@ HRESULT WINAPI glClassFactory::CreateInstance(IUnknown *pUnkOuter, REFIID riid,
{
glDD7 = new glDirectDraw7;
*ppvObject = new glDirectDraw1(glDD7);
glDD7->Release();
return S_OK;
}
if(riid == IID_IDirectDraw2)
{
glDD7 = new glDirectDraw7;
*ppvObject = new glDirectDraw2(glDD7);
glDD7->Release();
return S_OK;
}
if(riid == IID_IDirectDraw4)
{
glDD7 = new glDirectDraw7;
*ppvObject = new glDirectDraw4(glDD7);
glDD7->Release();
return S_OK;
}
if(riid == IID_IDirectDraw7)
Expand Down

0 comments on commit 6c1061e

Please sign in to comment.