-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/R2Northstar/NorthstarLauncher…
… into autohook/buildainfile.cpp
- Loading branch information
Showing
97 changed files
with
2,332 additions
and
1,654 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Configures dependabot | ||
|
||
version: 2 | ||
updates: | ||
# GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Add 'needs code review' label to any changes within the entire repository | ||
needs code review: | ||
- changed-files: | ||
- any-glob-to-any-file: '**' | ||
|
||
# Add 'needs testing' label to any changes within the entire repository | ||
needs testing: | ||
- changed-files: | ||
- any-glob-to-any-file: '**' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Auto-Labeler | ||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
labeler: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ mono_crash.* | |
|
||
# CMake output | ||
out/ | ||
game/ | ||
build/game/ | ||
build/ | ||
CMakeFiles/ | ||
cmake_install.cmake | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Code standards | ||
|
||
There are exceptions, ask for them! | ||
|
||
### Preamble | ||
|
||
You are more than welcome to reformat any existing files using these rules should they fail to match them but please SPLIT your formatting changes from the rest by making a separate PR! | ||
|
||
### General rules | ||
|
||
> Basic rules that apply all the time. | ||
Always assert your assumptions! | ||
|
||
Use PascalCase for all names. | ||
|
||
Suffix structs with `_t`. | ||
|
||
Prefix classes with `C` (class) and `I` (abstract class). | ||
|
||
Prefix all class member variables with `m_`. | ||
|
||
Prefixes `g_` for global variables and `s_` for static variables are welcome. | ||
|
||
For hooking we use `o_<function name>` for function pointers pointing to the original implementation and `h_<function name>` for functions we replace them with. | ||
|
||
Document all function implementations and their arguments (if the argument is self explanatory you don't need to document it) valve style: | ||
``` | ||
//----------------------------------------------------------------------------- | ||
// Purpose: MH_MakeHook wrapper | ||
// Input : *ppOriginal - Original function being detoured | ||
// pDetour - Detour function | ||
// Output : true on success, false otherwise | ||
//----------------------------------------------------------------------------- | ||
``` | ||
|
||
Don't overcomment your code unless nescessary, expect the reader to have limited knowledge. | ||
|
||
Use `FIXME` comments for possible improvements/issues, `NOTE` for important information one might want to look into. | ||
|
||
### Valve source files | ||
|
||
> Rules that apply to all files from original valve code base. | ||
When adding or just modifying a file that's present in valve source place it where valve put it. | ||
|
||
Always use hungarian notation in these files. | ||
|
||
### New files | ||
|
||
> Rules that apply to Respawn or our own files. | ||
When adding new files follow the general rules, you don't have to use hungarian notation. Put the file where you think it makes the most sense. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.