forked from doodlum/skyrim-drs
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fc891bb
Showing
186 changed files
with
91,685 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
--- | ||
AccessModifierOffset: -4 | ||
AlignAfterOpenBracket: DontAlign | ||
AlignConsecutiveAssignments: 'false' | ||
AlignConsecutiveBitFields: 'false' | ||
AlignConsecutiveDeclarations: 'true' | ||
AlignConsecutiveMacros: 'false' | ||
AlignEscapedNewlines: Left | ||
AlignOperands: Align | ||
AlignTrailingComments: 'true' | ||
AllowAllArgumentsOnNextLine: 'false' | ||
AllowAllConstructorInitializersOnNextLine: 'false' | ||
AllowAllParametersOfDeclarationOnNextLine: 'false' | ||
AllowShortBlocksOnASingleLine: Empty | ||
AllowShortCaseLabelsOnASingleLine: 'false' | ||
AllowShortEnumsOnASingleLine: 'true' | ||
AllowShortFunctionsOnASingleLine: All | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLambdasOnASingleLine: All | ||
AllowShortLoopsOnASingleLine: 'true' | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: 'true' | ||
AlwaysBreakTemplateDeclarations: 'Yes' | ||
BinPackArguments: 'true' | ||
BinPackParameters: 'true' | ||
BitFieldColonSpacing: After | ||
BraceWrapping: | ||
AfterCaseLabel: 'true' | ||
AfterClass: 'true' | ||
AfterControlStatement: 'false' | ||
AfterEnum: 'true' | ||
AfterFunction: 'true' | ||
AfterNamespace: 'true' | ||
AfterStruct: 'true' | ||
AfterUnion: 'true' | ||
AfterExternBlock: 'true' | ||
BeforeCatch: 'false' | ||
BeforeElse: 'false' | ||
BeforeLambdaBody: 'false' | ||
BeforeWhile: 'false' | ||
IndentBraces: 'false' | ||
SplitEmptyFunction: 'false' | ||
SplitEmptyRecord: 'false' | ||
SplitEmptyNamespace: 'false' | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeBraces: Custom | ||
BreakBeforeTernaryOperators: 'false' | ||
BreakConstructorInitializers: AfterColon | ||
BreakInheritanceList: AfterColon | ||
BreakStringLiterals: 'true' | ||
ColumnLimit: 0 | ||
CompactNamespaces: 'false' | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: 'false' | ||
ConstructorInitializerIndentWidth: 4 | ||
ContinuationIndentWidth: 4 | ||
Cpp11BracedListStyle: 'false' | ||
DeriveLineEnding: 'true' | ||
DerivePointerAlignment: 'false' | ||
DisableFormat: 'false' | ||
FixNamespaceComments: 'false' | ||
IncludeBlocks: Preserve | ||
IndentCaseBlocks: 'true' | ||
IndentCaseLabels: 'false' | ||
IndentExternBlock: Indent | ||
IndentGotoLabels: 'false' | ||
IndentPPDirectives: AfterHash | ||
IndentWidth: 4 | ||
IndentWrappedFunctionNames: 'true' | ||
KeepEmptyLinesAtTheStartOfBlocks: 'false' | ||
Language: Cpp | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: All | ||
PointerAlignment: Left | ||
ReflowComments : 'false' | ||
SortIncludes: 'true' | ||
SortUsingDeclarations: 'true' | ||
SpaceAfterCStyleCast: 'false' | ||
SpaceAfterLogicalNot: 'false' | ||
SpaceAfterTemplateKeyword: 'true' | ||
SpaceBeforeAssignmentOperators: 'true' | ||
SpaceBeforeCpp11BracedList: 'false' | ||
SpaceBeforeCtorInitializerColon: 'true' | ||
SpaceBeforeInheritanceColon: 'true' | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: 'true' | ||
SpaceBeforeSquareBrackets: 'false' | ||
SpaceInEmptyBlock: 'false' | ||
SpaceInEmptyParentheses: 'false' | ||
SpacesBeforeTrailingComments: 2 | ||
SpacesInAngles: 'false' | ||
SpacesInCStyleCastParentheses: 'false' | ||
SpacesInConditionalStatement: 'false' | ||
SpacesInContainerLiterals: 'true' | ||
SpacesInParentheses: 'false' | ||
SpacesInSquareBrackets: 'false' | ||
Standard: Latest | ||
TabWidth: 4 | ||
UseCRLF: 'true' | ||
UseTab: AlignWithSpaces | ||
|
||
... |
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,11 @@ | ||
[*] | ||
charset = utf-8 | ||
insert_final_newline = true | ||
|
||
[*.{h,cmake,cpp}] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[*.json] | ||
indent_style = space | ||
indent_size = 2 |
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,5 @@ | ||
build/ | ||
dist/ | ||
vcpkg_installed/ | ||
.idea/ | ||
include/steam/ |
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,6 @@ | ||
[submodule "external/CommonLibSSE"] | ||
path = external/CommonLibSSE | ||
url = https://github.com/powerof3/CommonLibSSE.git | ||
[submodule "external/CommonLibAE"] | ||
path = external/CommonLibAE | ||
url = https://github.com/powerof3/CommonLibSSE.git |
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,15 @@ | ||
@echo off | ||
|
||
RMDIR dist /S /Q | ||
|
||
cmake -S . --preset=skyrim --check-stamp-file "build\skyrim\CMakeFiles\generate.stamp" | ||
if %ERRORLEVEL% NEQ 0 exit 1 | ||
cmake --build build/skyrim --config Release | ||
if %ERRORLEVEL% NEQ 0 exit 1 | ||
|
||
xcopy "build\skyrim\release\*.dll" "dist\SKSE\Plugins\" /I /Y | ||
xcopy "build\skyrim\release\*.pdb" "dist\SKSE\Plugins\" /I /Y | ||
|
||
xcopy "package" "dist" /I /Y /E | ||
|
||
pause |
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,11 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
project( | ||
DynamicResolutionScaling | ||
VERSION 1.0.0 | ||
LANGUAGES CXX | ||
) | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") | ||
include(XSEPlugin) | ||
find_package(binary_io CONFIG REQUIRED) |
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,91 @@ | ||
{ | ||
"configurePresets": [ | ||
{ | ||
"binaryDir": "${sourceDir}/build", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": { | ||
"type": "STRING", | ||
"value": "Debug" | ||
} | ||
}, | ||
"errors": { | ||
"deprecated": true | ||
}, | ||
"hidden": true, | ||
"name": "cmake-dev", | ||
"warnings": { | ||
"deprecated": true, | ||
"dev": true | ||
} | ||
}, | ||
{ | ||
"cacheVariables": { | ||
"CMAKE_TOOLCHAIN_FILE": { | ||
"type": "STRING", | ||
"value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" | ||
} | ||
}, | ||
"hidden": true, | ||
"name": "vcpkg" | ||
}, | ||
{ | ||
"cacheVariables": { | ||
"CMAKE_MSVC_RUNTIME_LIBRARY": { | ||
"type": "STRING", | ||
"value": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL" | ||
}, | ||
"VCPKG_TARGET_TRIPLET": { | ||
"type": "STRING", | ||
"value": "x64-windows-static-md" | ||
} | ||
}, | ||
"hidden": true, | ||
"name": "windows" | ||
}, | ||
{ | ||
"architecture": { | ||
"strategy": "set", | ||
"value": "x64" | ||
}, | ||
"cacheVariables": { | ||
"CMAKE_CXX_FLAGS": "/EHsc /MP /W4 /WX" | ||
}, | ||
"generator": "Visual Studio 17 2022", | ||
"inherits": [ | ||
"cmake-dev", | ||
"vcpkg", | ||
"windows" | ||
], | ||
"hidden": true, | ||
"name": "vs2022-windows", | ||
"toolset": "v143" | ||
}, | ||
{ | ||
"binaryDir": "${sourceDir}/build/skyrim", | ||
"cacheVariables": { | ||
"BUILD_SKYRIM": true | ||
}, | ||
"inherits": [ | ||
"cmake-dev", | ||
"vcpkg", | ||
"windows", | ||
"vs2022-windows" | ||
], | ||
"name": "skyrim" | ||
}, | ||
{ | ||
"binaryDir": "${sourceDir}/build/vr", | ||
"cacheVariables": { | ||
"BUILD_SKYRIMVR": true | ||
}, | ||
"inherits": [ | ||
"cmake-dev", | ||
"vcpkg", | ||
"windows", | ||
"vs2022-windows" | ||
], | ||
"name": "vr" | ||
} | ||
], | ||
"version": 3 | ||
} |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 Tim | ||
|
||
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. |
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,44 @@ | ||
function(add_cxx_files TARGET) | ||
file(GLOB_RECURSE INCLUDE_FILES | ||
LIST_DIRECTORIES false | ||
CONFIGURE_DEPENDS | ||
"include/*.h" | ||
"include/*.hpp" | ||
"include/*.hxx" | ||
"include/*.inl" | ||
) | ||
|
||
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/include | ||
PREFIX "Header Files" | ||
FILES ${INCLUDE_FILES}) | ||
|
||
target_sources("${TARGET}" PUBLIC ${INCLUDE_FILES}) | ||
|
||
file(GLOB_RECURSE HEADER_FILES | ||
LIST_DIRECTORIES false | ||
CONFIGURE_DEPENDS | ||
"src/*.h" | ||
"src/*.hpp" | ||
"src/*.hxx" | ||
"src/*.inl" | ||
) | ||
|
||
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/src | ||
PREFIX "Header Files" | ||
FILES ${HEADER_FILES}) | ||
|
||
target_sources("${TARGET}" PRIVATE ${HEADER_FILES}) | ||
|
||
file(GLOB_RECURSE SOURCE_FILES | ||
LIST_DIRECTORIES false | ||
CONFIGURE_DEPENDS | ||
"src/*.cpp" | ||
"src/*.cxx" | ||
) | ||
|
||
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/src | ||
PREFIX "Source Files" | ||
FILES ${SOURCE_FILES}) | ||
|
||
target_sources("${TARGET}" PRIVATE ${SOURCE_FILES}) | ||
endfunction() |
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,19 @@ | ||
#pragma once | ||
|
||
#include <string_view> | ||
|
||
namespace Plugin | ||
{ | ||
using namespace std::literals; | ||
|
||
inline constexpr REL::Version VERSION | ||
{ | ||
// clang-format off | ||
@PROJECT_VERSION_MAJOR@u, | ||
@PROJECT_VERSION_MINOR@u, | ||
@PROJECT_VERSION_PATCH@u, | ||
// clang-format on | ||
}; | ||
|
||
inline constexpr auto NAME = "@PROJECT_NAME@"sv; | ||
} |
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,32 @@ | ||
#include <winres.h> | ||
|
||
1 VERSIONINFO | ||
FILEVERSION @PROJECT_VERSION_MAJOR@, @PROJECT_VERSION_MINOR@, @PROJECT_VERSION_PATCH@, 0 | ||
PRODUCTVERSION @PROJECT_VERSION_MAJOR@, @PROJECT_VERSION_MINOR@, @PROJECT_VERSION_PATCH@, 0 | ||
FILEFLAGSMASK 0x17L | ||
#ifdef _DEBUG | ||
FILEFLAGS 0x1L | ||
#else | ||
FILEFLAGS 0x0L | ||
#endif | ||
FILEOS 0x4L | ||
FILETYPE 0x1L | ||
FILESUBTYPE 0x0L | ||
BEGIN | ||
BLOCK "StringFileInfo" | ||
BEGIN | ||
BLOCK "040904b0" | ||
BEGIN | ||
VALUE "FileDescription", "@PROJECT_NAME@" | ||
VALUE "FileVersion", "@[email protected]" | ||
VALUE "InternalName", "@PROJECT_NAME@" | ||
VALUE "LegalCopyright", "MIT License" | ||
VALUE "ProductName", "@PROJECT_NAME@" | ||
VALUE "ProductVersion", "@[email protected]" | ||
END | ||
END | ||
BLOCK "VarFileInfo" | ||
BEGIN | ||
VALUE "Translation", 0x409, 1200 | ||
END | ||
END |
Oops, something went wrong.