Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ablakely committed Mar 16, 2024
1 parent 5c17112 commit 758bf4a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ Tested with Visual Studio 2010.
#### Modules
As of current modules are built outside of the main build process. To build modules, you will need to either use the provided batch file or build them manually.

To build the modules manually, you will need to use the following commands:

cd mods
.\buildmods.bat

To build the modules you need to run ```buildmods.bat``` located in the mods directory. This can be done from the command line or by double clicking the file.

## Configuration
The bot will read xbot.cfg if none is specified at the command line with ```-c <file>```.
Expand Down
26 changes: 26 additions & 0 deletions mods/buildmods.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@
REM Description: Build all modules in the current directory
setlocal enabledelayedexpansion

if exist "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" (
pushd "C:\Program Files\Microsoft Visual Studio 10.0\VC"
call vcvarsall.bat
popd

goto BUILD
)

if exist "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" (
pushd "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC"
call vcvarsall.bat
popd

goto BUILD
)



:WARNING
echo Visual Studio 2010 not found, make sure to run vcvarsall.bat for your versions of Visual Studio
echo or this script will fail
pause


:BUILD
set subdirs=
for /d %%a in (*) do (
set subdirs=!subdirs! %%a
Expand Down Expand Up @@ -32,3 +57,4 @@ for %%a in (%subdirs%) do (
)
)

echo Done building modules

0 comments on commit 758bf4a

Please sign in to comment.