Skip to content

Commit

Permalink
vscode templates for bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitalita committed Dec 13, 2022
1 parent 742eaf2 commit 053ad0f
Show file tree
Hide file tree
Showing 7 changed files with 391 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ platform/windows/godot_res.res

# Visual Studio 2017 and Visual Studio Code workspace folder
/.vs
/.vscode
/.vscode/*.json

# Visual Studio Code workspace file
*.code-workspace
Expand Down
32 changes: 32 additions & 0 deletions .vscode/c_cpp_properties.json.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/modules/gdsdecomp/**",
// set an includes to your platform directory (windows, linuxbsd, etc.)
"${workspaceFolder}/platform/windows",
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE",
"WINDOWS_ENABLED", // Set the platform enabled for your platform
"MINIZIP_ENABLED",
"TOOLS_ENABLED",
"MODULE_REGEX_ENABLED",
"NO_EDITOR_SPLASH",
"GLES3_ENABLED"
],
"windowsSdkVersion": "10.0.19041.0",
"compilerPath": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/Hostx64/x64/cl.exe",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64"
// It is recommended you don't enable compile_commands.json, as it seems to screw up the includes for gdsdecomp
//"compileCommands": "compile_commands.json"
}
],
"version": 4
}
7 changes: 7 additions & 0 deletions .vscode/extensions.json.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// Recommended extensions for developing gdsdecomp
"recommendations": [
"ms-python.black-formatter",
"ms-vscode.cpptools"
]
}
94 changes: 94 additions & 0 deletions .vscode/launch.json.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
// This is to test decompiling Game PCKs, this uses the debug editor binary
{
"name": "(Windows) Launch CLI recovery (editor dev)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/godot.windows.editor.dev.x86_64.exe",
"args": [
"--headless",
"--path",
"${workspaceFolder}/modules/gdsdecomp/standalone",
// Put the pck you want to test here
"--recover=${workspaceFolder}/../wherever_the_pck_you_want_to_test_is",
"--output-dir=${workspaceFolder}/../wherever_you_want_the_output_to_be"
],
"visualizerFile": "${workspaceFolder}/platform/windows/godot.natvis",
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "externalTerminal"
},
// Use this to launch the GDRE standalone GUI, this uses the debug editor binary
{
"name": "(Windows) Launch GDRE Standalone (editor dev)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/godot.windows.editor.dev.x86_64.exe",
"args": [
"--path",
"${workspaceFolder}/modules/gdsdecomp/standalone"
],
"visualizerFile": "${workspaceFolder}/platform/windows/godot.natvis",
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "internalConsole"
},
// Use this to launch the standalone editor with the template_release binary
{
"name": "(Windows) Launch GDRE Standalone (template_release)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/godot.windows.template_release.x86_64.exe",
"args": [
"--path",
"${workspaceFolder}/modules/gdsdecomp/standalone"
],
"visualizerFile": "${workspaceFolder}/platform/windows/godot.natvis",
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "internalConsole"
},
// This launches the editor to edit the standalone Godot project
{
"name": "(Windows) Launch Editor (gdre standalone) (editor Debug)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/godot.windows.editor.dev.x86_64.exe",
"args": [
"-e",
"--path",
"${workspaceFolder}/modules/gdsdecomp/standalone"
],
"visualizerFile": "${workspaceFolder}/platform/windows/godot.natvis",
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "externalTerminal"
},
{
"name": "(Windows) Launch Editor (test project) (editor Optimized)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/godot.windows.editor.x86_64.exe",
"args": [
"-e",
"--path",
//"${workspaceFolder}/modules/gdsdecomp/standalone"
"${workspaceFolder}/../godot-projects/godot-4.x-test-project"
],
"visualizerFile": "${workspaceFolder}/platform/windows/godot.natvis",
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "internalConsole"
},
]
}
115 changes: 115 additions & 0 deletions .vscode/settings.json.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"files.associations": {
"*.rpy": "renpy",
"*.INF": "ini",
"*.h": "cpp",
"algorithm": "cpp",
"fstream": "cpp",
"sstream": "cpp",
"xiosbase": "cpp",
"xlocmes": "cpp",
"locale": "cpp",
"memory": "cpp",
"mutex": "cpp",
"thread": "cpp",
"xlocale": "cpp",
"xlocmon": "cpp",
"xlocnum": "cpp",
"xloctime": "cpp",
"*.inc": "cpp",
"array": "cpp",
"bitset": "cpp",
"deque": "cpp",
"initializer_list": "cpp",
"list": "cpp",
"queue": "cpp",
"random": "cpp",
"span": "cpp",
"stack": "cpp",
"type_traits": "cpp",
"vector": "cpp",
"xhash": "cpp",
"xstring": "cpp",
"xtree": "cpp",
"xutility": "cpp",
"atomic": "cpp",
"forward_list": "cpp",
"iterator": "cpp",
"chrono": "cpp",
"streambuf": "cpp",
"map": "cpp",
"set": "cpp",
"condition_variable": "cpp",
"iomanip": "cpp",
"ostream": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"unordered_map": "cpp",
"unordered_set": "cpp",
"utility": "cpp",
"xfacet": "cpp",
"xlocbuf": "cpp",
"xmemory": "cpp",
"functional": "cpp",
"complex": "cpp",
"xtr1common": "cpp",
"charconv": "cpp",
"cmath": "cpp",
"compare": "cpp",
"cstddef": "cpp",
"format": "cpp",
"istream": "cpp",
"limits": "cpp",
"new": "cpp",
"numeric": "cpp",
"optional": "cpp",
"ratio": "cpp",
"shared_mutex": "cpp",
"stop_token": "cpp",
"*.rh": "cpp",
"filesystem": "cpp",
"string": "cpp",
"ZIP.C": "cpp",
"UNZIP.C": "cpp",
"exception": "cpp",
"xlocinfo": "cpp",
"bit": "cpp",
"cctype": "cpp",
"cinttypes": "cpp",
"clocale": "cpp",
"concepts": "cpp",
"csignal": "cpp",
"cstdarg": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"ios": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"stdexcept": "cpp",
"typeinfo": "cpp",
"xstddef": "cpp"
},
"editor.formatOnSave": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
},
"git.scanRepositories": [
"${workspaceFolder}",
"${workspaceFolder}/modules/gdsdecomp"
],
"git.repositoryScanMaxDepth": 4,
"gitlens.detectNestedRepositories": true,
"gitlens.advanced.repositorySearchDepth": 4,
"C_Cpp.errorSquiggles": "enabled",
"search.useIgnoreFiles": false,
"search.useGlobalIgnoreFiles": true,
"search.useParentIgnoreFiles": true,
"black-formatter.args": [
"-l 120"
]
}
Loading

0 comments on commit 053ad0f

Please sign in to comment.