Author: greatlrd
Date: Sun Jun 10 00:22:09 2007
New Revision: 27093
URL: http://svn.reactos.org/svn/reactos?rev=27093&view=rev
Log:
start implement of GetDeviceIdentifier we are filling one more member right. this time we getting the driver name
Modified:
trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
Modified: trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/Ddraw/dd…
==============================================================================
--- trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c (original)
+++ trunk/reactos/dll/directx/ddraw/Ddraw/ddraw_main.c Sun Jun 10 00:22:09 2007
@@ -458,6 +458,9 @@
BOOL found = FALSE;
DWORD iDevNum = 0;
DISPLAY_DEVICEA DisplayDeviceA;
+ HKEY hKey;
+ DWORD lpType = 0;
+ DWORD strSize = MAX_DDDEVICEID_STRING;
LPDDRAWI_DIRECTDRAW_INT This = (LPDDRAWI_DIRECTDRAW_INT) iface;
@@ -506,10 +509,36 @@
/* we found our driver now we start setup it */
strcpy( pDDDI->szDescription, DisplayDeviceA.DeviceString);
+ if (!_strnicmp(DisplayDeviceA.DeviceKey,"\\REGISTRY\\Machine\\",18))
+ {
+ if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, &DisplayDeviceA.DeviceKey[18], 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS )
+ {
+ if (RegQueryValueExA(hKey, "InstalledDisplayDrivers",0, &lpType, (LPBYTE)pDDDI->szDriver, &strSize) == ERROR_SUCCESS)
+ {
+ char *pdest;
+ /* FIXME if the file is name
+ ati2dvag.dll.dll then we are doom
+ a better code should be use to strip away .dll
+ */
+ pdest = strstr(pDDDI->szDriver,".dll");
+ memset(pdest,0,3);
+ }
+ RegCloseKey(hKey);
+ }
+ retVal = DD_OK;
+ }
+ //else
+ //{
+ // /* FIXME ?? */
+ // DX_STUB_str("Error did not manger cut reg key\n"
+ // DX_STUB_str(DisplayDeviceA.DeviceKey);
+ //}
+
+
/* This api still under devloping now we can get desc of the
primary drv
*/
- retVal = DD_OK;
+
break;
}
Author: dreimer
Date: Sun Jun 10 00:03:02 2007
New Revision: 27091
URL: http://svn.reactos.org/svn/reactos?rev=27091&view=rev
Log:
- Whitespace trim in cpucount.c
- Added links to all needed Tools to info.txt
- Fixed my own stupidness once more... parameters for make got skipped...
Modified:
trunk/tools/RosBE-Windows/Root/Build-Shared.cmd
trunk/tools/RosBE-Windows/Tools/cpucount.c
trunk/tools/RosBE-Windows/Tools/info.txt
Modified: trunk/tools/RosBE-Windows/Root/Build-Shared.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/Build-Sha…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/Build-Shared.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/Build-Shared.cmd Sun Jun 10 00:03:02 2007
@@ -11,7 +11,7 @@
:: if it is then abort the build and inform the user.
::
if exist "%_ROSSOURCEDIR%\config.rbuild" (
- "%ROSBEBASEDIR%\Tools\test.exe" "%_ROSSOURCEDIR%\config.template.rbuild" -nt "%_ROSSOURCEDIR%\config.rbuild"
+ %ROSBEBASEDIR%\Tools\test.exe "%_ROSSOURCEDIR%\config.template.rbuild" -nt "%_ROSSOURCEDIR%\config.rbuild"
if not errorlevel 1 (
echo.
echo *** config.template.rbuild is newer than config.rbuild ***
@@ -26,16 +26,13 @@
:: Get the current date and time for use in
:: in our build log's file name.
::
-call %ROSBEBASEDIR%\TimeDate.cmd
+call "%ROSBEBASEDIR%\TimeDate.cmd"
::
-:: Execute the Build command
+:: Now use mingw32-make to build ReactOS, passing along options, if any.
::
-if "%1" == "" (
- %ROSBEBASEDIR%\Tools\buildtime.exe %_MINGWMAKE% 2>&1 | %ROSBEBASEDIR%\Tools\tee.exe %_ROSBELOGDIR%\BuildLog-%_MINGWVERSION%-%DATENAME%-%TIMENAME%.txt
-) else (
- %ROSBEBASEDIR%\Tools\buildtime.exe %_MINGWMAKE% %* 2>&1 | %ROSBEBASEDIR%\Tools\tee.exe %_ROSBELOGDIR%\BuildLog-%_MINGWVERSION%-%DATENAME%-%TIMENAME%.txt
-)
+
+call "%ROSBEBASEDIR%\Tools\buildtime.exe" %MAKE_COMMAND% 2>&1 | "%ROSBEBASEDIR%\Tools\tee.exe" "%_ROSBELOGDIR%\BuildLog-%_MINGWVERSION%-%DATENAME%-%TIMENAME%.txt"
::
:: highlight the fact that building has ended
Modified: trunk/tools/RosBE-Windows/Tools/cpucount.c
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Tools/cpucount…
==============================================================================
--- trunk/tools/RosBE-Windows/Tools/cpucount.c (original)
+++ trunk/tools/RosBE-Windows/Tools/cpucount.c Sun Jun 10 00:03:02 2007
@@ -29,4 +29,3 @@
return 1;
}
}
-
Modified: trunk/tools/RosBE-Windows/Tools/info.txt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Tools/info.txt…
==============================================================================
--- trunk/tools/RosBE-Windows/Tools/info.txt (original)
+++ trunk/tools/RosBE-Windows/Tools/info.txt Sun Jun 10 00:03:02 2007
@@ -1,1 +1,11 @@
-Built Tools need to be copied to /Root/Tools/
+Additional Tools needed:
+tee: http://gnuwin32.sourceforge.net/packages/coreutils.htm
+test: http://gnuwin32.sourceforge.net/packages/coreutils.htm
+sed: http://gnuwin32.sourceforge.net/packages/sed.htm
+svn: http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
+
+Additional Libs needed:
+LibIntl: http://gnuwin32.sourceforge.net/packages/libintl.htm
+LibIconv: http://gnuwin32.sourceforge.net/packages/libiconv.htm
+
+Built Tools and Rest needs to be copied to /Root/Tools/
Author: dreimer
Date: Sat Jun 9 23:31:30 2007
New Revision: 27089
URL: http://svn.reactos.org/svn/reactos?rev=27089&view=rev
Log:
Part 1 of X. Add Stuff for Version 0.3.7
- Basic SVN update/create/cleanup Feature (not final yet)
- Readded makex, its not the fault of my Code, its a GCC Bug, so why not readd it?
Added:
trunk/tools/RosBE-Windows/Root/SVN.cmd
Modified:
trunk/tools/RosBE-Windows/Root/ChangeLog.txt
trunk/tools/RosBE-Windows/Root/Help.cmd
trunk/tools/RosBE-Windows/Root/LICENSE.txt
trunk/tools/RosBE-Windows/Root/README.txt
trunk/tools/RosBE-Windows/Root/RosBE.cmd
trunk/tools/RosBE-Windows/Root/RosBE.mac
Modified: trunk/tools/RosBE-Windows/Root/ChangeLog.txt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/ChangeLog…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/ChangeLog.txt (original)
+++ trunk/tools/RosBE-Windows/Root/ChangeLog.txt Sat Jun 9 23:31:30 2007
@@ -9,6 +9,9 @@
- New cool Icon. Thanks to ROSFan for it.
- Readded buildtime.
- Removed makex for now, until the bug is fixed.
+- Added Colin Finck's Build.cmd Unification
+- Added Ged Murphy's flash tool to letthe window flash at build's end
+- Updated all other tools
*** Janruary 26th, 2007 - RosBE 0.3.5b2 Released
Modified: trunk/tools/RosBE-Windows/Root/Help.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/Help.cmd?…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/Help.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/Help.cmd Sat Jun 9 23:31:30 2007
@@ -4,7 +4,7 @@
::
@echo off
-title ReactOS Build Environment 0.3.6
+title ReactOS Build Environment 0.3.7
if "%1" == "" (
echo.
@@ -12,10 +12,15 @@
echo make [OPTIONS] - make, without options does a standard build of
echo ReactOS. OPTIONS are the standard ReactOS build
echo options ie. bootcd.
+ echo makex [OPTIONS] - Same as 'make' but automatically determines the
+ echo number of CPUs in the system and uses -j with
+ echo the appropriate number.
echo clean [logs] - Fully clean the ReactOS source directory or the
echo RosBE build logs.
echo help [COMMAND] - Display the available commands or help on a
echo specific command.
+ echo svn [OPTIONS] - Create, Update or clean up your ReactOS Source
+ echo tree.
echo basedir - Switch back to the ReactOS source directory.
goto :EOF
)
@@ -25,15 +30,15 @@
echo are the standard ReactOS build options ie. bootcd.
goto :EOF
)
-:: if "%1" == "makex" (
-:: echo Usage: makex [OPTIONS]
-:: echo Same as 'make' but automatically determines the number of CPUs
-:: echo in the system and uses -j with the appropriate number.
-:: echo NOTE: The number makex uses can be modified by editing
-:: echo Build-Multi.cmd located in the RosBE directory,
-:: echo instructions for doing so are contained within the file.
-:: goto :EOF
-:: )
+if "%1" == "makex" (
+ echo Usage: makex [OPTIONS]
+ echo Same as 'make' but automatically determines the number of CPUs
+ echo in the system and uses -j with the appropriate number.
+ echo NOTE: The number makex uses can be modified by editing
+ echo Build-Multi.cmd located in the RosBE directory,
+ echo instructions for doing so are contained within the file.
+ goto :EOF
+)
if "%1" == "clean" (
echo Usage: clean [logs]
echo Fully clean the ReactOS source directory.
@@ -46,6 +51,11 @@
echo Shows help for the specified command or lists all available commands.
goto :EOF
)
+if "%1" == "svn" (
+ echo Usage: svn [OPTIONS]
+ echo Creates, Updates or cleans up your ReactOS Source tree.
+ goto :EOF
+)
if "%1" == "basedir" (
echo Usage: basedir
echo Switches back to the ReactOS source directory.
Modified: trunk/tools/RosBE-Windows/Root/LICENSE.txt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/LICENSE.t…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/LICENSE.txt (original)
+++ trunk/tools/RosBE-Windows/Root/LICENSE.txt Sat Jun 9 23:31:30 2007
@@ -1,4 +1,4 @@
- ReactOS Build Environment v0.3.6
+ ReactOS Build Environment v0.3.7
Various parts of the ReactOS Build Environment are under different license's, the license's are as follows.
(The complete text for each license is included in this document)
Modified: trunk/tools/RosBE-Windows/Root/README.txt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/README.tx…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/README.txt (original)
+++ trunk/tools/RosBE-Windows/Root/README.txt Sat Jun 9 23:31:30 2007
@@ -1,7 +1,7 @@
- ReactOS Build Environment 0.3.6
+ ReactOS Build Environment 0.3.7
-The ReactOS Build Environment v0.3.6 contains a complete build environment for ReactOS based on GCC 4.1.3/MinGW.
+The ReactOS Build Environment v0.3.7 contains a complete build environment for ReactOS based on GCC 4.1.3/MinGW.
While installing the ReactOS Build Environment you are asked to provide the directory where your ReactOS sources
are located (ie.reactos\), you must enter the complete path to them (ie. C:\projects\reactos). The path is now
@@ -12,7 +12,7 @@
menu. Now you have a choice of using either the built in commands (which are displayed onscreen with information
about their use) or you can build as you normally would using the standard MinGW/RBuild commands.
-The ReactOS Build Environment v0.3.6 contains the following packages:
+The ReactOS Build Environment v0.3.7 contains the following packages:
binutils-2.17.50-20070122-1.tar.gz
mingw-runtime-3.12.tar.gz
Modified: trunk/tools/RosBE-Windows/Root/RosBE.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/RosBE.cmd…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/RosBE.cmd (original)
+++ trunk/tools/RosBE-Windows/Root/RosBE.cmd Sat Jun 9 23:31:30 2007
@@ -5,7 +5,7 @@
::
@echo off
-title ReactOS Build Environment 0.3.6
+title ReactOS Build Environment 0.3.7
if "%1" == "" (
color 0A
@@ -73,7 +73,7 @@
echo *******************************************************************************
echo * *
- echo * ReactOS Build Environment 0.3.6-4.1.3-20070405-prerelease-patched *
+ echo * ReactOS Build Environment 0.3.7-4.1.3-20070405-prerelease-patched *
echo * *
echo *******************************************************************************
echo.
Modified: trunk/tools/RosBE-Windows/Root/RosBE.mac
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/RosBE.mac…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/RosBE.mac (original)
+++ trunk/tools/RosBE-Windows/Root/RosBE.mac Sat Jun 9 23:31:30 2007
@@ -1,4 +1,6 @@
BASEDIR = cd /d "%_ROSSOURCEDIR%"
CLEAN = "%ROSBEBASEDIR%\Clean.cmd" $*
+SVN = "%ROSBEBASEDIR%\SVN.cmd" $*
HELP = "%ROSBEBASEDIR%\Help.cmd" $*
MAKE = "%ROSBEBASEDIR%\Build.cmd" $*
+MAKEX = "%ROSBEBASEDIR%\Build-Multi.cmd" $*
Added: trunk/tools/RosBE-Windows/Root/SVN.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Root/SVN.cmd?r…
==============================================================================
--- trunk/tools/RosBE-Windows/Root/SVN.cmd (added)
+++ trunk/tools/RosBE-Windows/Root/SVN.cmd Sat Jun 9 23:31:30 2007
@@ -1,0 +1,42 @@
+:: Copyright (c) Peter Ward and Daniel Reimer. All rights reserved.
+::
+:: SVN Client
+::
+@echo off
+
+::
+:: Execute the Build command
+::
+if "%1" == "update" (
+ title Updating...
+ %ROSBEBASEDIR%\Tools\svn.exe update %_ROSSOURCEDIR% %2
+ goto :ExitSVN
+)
+if "%1" == "cleanup" (
+ title Cleaning...
+ %ROSBEBASEDIR%\Tools\svn.exe cleanup %_ROSSOURCEDIR%
+ goto :ExitSVN
+)
+if "%1" == "create" (
+ title Creating...
+if not exist "%_ROSSOURCEDIR%\." (
+ mkdir %_ROSSOURCEDIR%
+ goto :SVN
+)
+if exist "%_ROSSOURCEDIR%\.svn\." (
+ echo Folder already cotains a Reposority. Exiting
+ goto :ExitSVN
+)
+if exist "%_ROSSOURCEDIR%\*.*" (
+ echo Folder is not empty. Continuing is dangerous and can cause errors.
+ goto :SVN
+)
+)
+
+:SVN
+%ROSBEBASEDIR%\Tools\svn.exe checkout svn://svn.reactos.org/reactos/trunk/reactos %_ROSSOURCEDIR%
+goto :ExitSVN
+
+:ExitSVN
+title ReactOS Build Environment 0.3.7
+pause