|
37 | 37 |
|
38 | 38 | ### Windows |
39 | 39 |
|
40 | | -- Visual Studio 2019 or later |
41 | | -- MSVC Toolset v142 |
42 | | -- Configure SDK version in `src/SourceAutoRecord.vcxproj` |
43 | | -- Configure paths in `copy.bat` |
| 40 | +- [Visual Studio Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) or [Visual Studio](https://visualstudio.microsoft.com/) |
| 41 | + - Windows Universal C Runtime |
| 42 | + - C++ Build Tools core features |
| 43 | + - Windows 10 SDK (10.0.19041.0 or newer) |
| 44 | + - MSVC v142 - VS 2019 C++ x64/x86 build tools |
| 45 | +- Add MSBuild to PATH (`Visual Studio/xx/BuildTools/MSBuild/Current/Bin`) or use Visual Studio GUI |
| 46 | +- Configure SDK version in `src/SourceAutoRecord.vcxproj` (`10.0`) (don't commit this change) |
| 47 | +- Configure paths in `copy.bat` (`git update-index --assume-unchanged copy.bat`) |
| 48 | + |
| 49 | +```pwsh |
| 50 | +msbuild -m -p:Platform=x86 |
| 51 | +``` |
44 | 52 |
|
45 | 53 | ### Linux |
46 | 54 |
|
|
49 | 57 | - Make 4.1 |
50 | 58 | - Configure paths in `config.mk` |
51 | 59 |
|
| 60 | +```bash |
| 61 | +make -j${nproc} |
| 62 | +``` |
| 63 | + |
52 | 64 | ## Pull Requests |
53 | 65 |
|
54 | 66 | - Write a meaningful title and a short description |
55 | 67 | - Follow the [coding style](#coding-style) |
56 | 68 | - Follow the requested changes |
57 | 69 | - DO NOT stage files that you had to configure |
58 | | -- Use the latest `master` branch |
| 70 | +- Use the latest `master` branch as a base |
59 | 71 |
|
60 | 72 | ### Quick Tutorial with git |
61 | 73 |
|
@@ -309,9 +321,9 @@ Note: Keep a static version of a variable if it can be accessed more than once. |
309 | 321 | Commands should always return a useful message if something went wrong. |
310 | 322 |
|
311 | 323 | ```cpp |
312 | | -CON_COMMAND(sar_hello, "Useful help description.\n") { |
| 324 | +CON_COMMAND(sar_hello, "sar_hello <name> - Useful help description.\n") { |
313 | 325 | if (args.ArgC() != 2) { |
314 | | - return console->Print("Please enter a string!\n"); |
| 326 | + return console->Print(sar_hello.ThisPtr()->m_pszHelpString); |
315 | 327 | } |
316 | 328 |
|
317 | 329 | console->Print("Hello %s!\n", args[1]); |
|
0 commit comments