This commit is contained in:
2022-10-09 21:43:38 +02:00
parent 83b4b7e801
commit 8d0c44f1ff
6 changed files with 150 additions and 121 deletions

35
.vscode/c_cpp_properties.json vendored Normal file
View File

@@ -0,0 +1,35 @@
{
"configurations": [
{
"name": "NDS",
"forcedInclude": ["${workspaceFolder}\\include\\vscode_fix.h"],
"includePath": [
"${workspaceFolder}",
"${workspaceFolder}\\include\\**",
"C:\\devkitPro\\libnds\\include\\**",
"C:\\devkitPro\\devkitARM\\arm-none-eabi\\include\\**"
],
"defines": [
"_DEBUG",
"_UNICODE",
"WIN32",
"ARM7",
"ARM9"
],
"browse": {
"path": [
"${workspaceFolder}",
"${workspaceFolder}\\include\\**",
"C:\\devkitPro\\libnds\\include\\**",
"C:\\devkitPro\\devkitARM\\arm-none-eabi\\include\\**"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"cStandard": "c11",
"cppStandard": "c++11",
"compilerPath": "C:\\devkitPro\\devkitARM\\bin\\arm-none-eabi-g++.exe"
}
],
"version": 4
}

32
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,32 @@
{
// 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": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/${workspaceFolderBasename}.elf",
"targetArchitecture": "arm",
"preLaunchTask": "gdb-debug",
"postDebugTask": "stop-emulation",
"serverLaunchTimeout": 10000,
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "C:\\devkitPro\\devkitARM\\bin\\arm-none-eabi-gdb.exe",
"miDebuggerServerAddress": "localhost:20000",
"setupCommands": [
{
"description": "Enable pretty-printing",
"text": "file ${workspaceFolder}/${workspaceFolderBasename}.elf -enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}

80
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,80 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "make debug",
"type": "process",
"command": "make",
"args": [
"DEBUG=1"
],
"problemMatcher": []
},
{
"label": "make release",
"type": "process",
"command": "make",
"args": [
"DEBUG=0"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "clean",
"type": "process",
"command": "make",
"args": [
"clean"
],
"problemMatcher": []
},
{
"label": "run",
"type": "shell",
"isBackground": true,
"command": "C:\\desmume\\DeSmuME_0.9.11_x86.exe",
"args": [
"${workspaceFolder}/${workspaceFolderBasename}.nds"
],
"presentation": {
"clear": true,
"reveal": "always"
},
"problemMatcher": []
},
{
"label": "gdb-debug",
"type": "shell",
"dependsOn": [
"make debug"
],
"isBackground": false,
"command": "C:\\desmume\\DeSmuME_0.9.11_x86_dev+.exe",
"args": [
"--arm9gdb=20000",
"${workspaceFolder}/${workspaceFolderBasename}.nds"
],
"presentation": {
"clear": true,
"reveal": "always"
},
"problemMatcher": []
},
{
"label": "stop-emulation",
"type": "shell",
"command": "taskkill",
"args": [
"/FI",
"imagename eq DeSmuME*"
],
"problemMatcher": []
}
]
}