commit 1e2fb1935160baecec202e106dc087fc81eeefb5 Author: wh0crypt Date: Thu Jun 25 17:20:17 2026 +0100 chore: add license, formatting and git files diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..a6091bc --- /dev/null +++ b/.clang-format @@ -0,0 +1,42 @@ +BasedOnStyle: Microsoft +Language: Cpp + +BreakBeforeBraces: Allman + +PointerAlignment: Right +DerivePointerAlignment: false + +IndentWidth: 4 +TabWidth: 4 +UseTab: Never +IndentCaseLabels: true +NamespaceIndentation: None +MaxEmptyLinesToKeep: 1 + +ColumnLimit: 100 +AllowShortFunctionsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: true +AllowShortLoopsOnASingleLine: true +AllowAllParametersOfDeclarationOnNextLine: false +AllowAllArgumentsOnNextLine: false +BinPackArguments: false +BinPackParameters: false +AlignAfterOpenBracket: BlockIndent + +SortIncludes: true +IncludeBlocks: Regroup + +InsertNewlineAtEOF: true +UseCRLF: true + +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignOperands: true +AlwaysBreakAfterReturnType: None +BreakStringLiterals: true +Cpp11BracedListStyle: true +IndentExternBlock: AfterExternBlock +KeepEmptyLinesAtTheStartOfBlocks: false +ReflowComments: true +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: ControlStatements diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d1d503f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +* text=auto +*.cpp text +*.h text +*.txt text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2d2ea3d --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +# Temp and config files/dirs +.vs/ +*.user +*.suo +*.db + +# Build +out/ +build/ +x64/ +x86/ +Debug/ +Release/ diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..234ce38 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 wh0crypt + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.