Skip to content

Commit

Permalink
Added vscode project settings. Fixed #78 (#82)
Browse files Browse the repository at this point in the history
* added VSCode project settings

* fixed tasks.

* Added nxlink deployment task. switch.localhost is a hosts file entry to resolve Switch IP's

* fixed includePaths. added auto generated settings.json.

* added check if writeMemory was successful. fixed the problem that floats couldn't be written (#78). added WriteMemory template function that gets type size automagically.
increased the EdiZon build version.

* fixed the problem that floats couldn't be written (#78).

* added to all write and read memory functions Result object as return for later usage.

* formatting

* removed WriteMemory.

* typo and return fix.

* changed switch to if, since we don't check all the cases.

* fixed copy & paste error.

* Optimization: getting the size at compile time of known type.
  • Loading branch information
igromanru authored and WerWolv committed Oct 1, 2019
1 parent 4c1a86c commit 8c63b12
Show file tree
Hide file tree
Showing 8 changed files with 1,941 additions and 1,768 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@

build/
out/
.vscode/
24 changes: 24 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"configurations": [
{
"name": "DKP Aarch64",
"includePath": [
"${workspaceFolder}/**",
"${DEVKITPRO}/devkitA64/include/**",
"${DEVKITPRO}/devkitA64/aarch64-none-elf/include/**",
"${DEVKITPRO}/libnx/include/**",
"${DEVKITPRO}/portlibs/switch/include/**"
],
"defines": [
"DEBUG",
"SWITCH",
"__SWITCH__"
],
"compilerPath": "${DEVKITPRO}/devkitA64/bin/aarch64-none-elf-g++",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-x64"
}
],
"version": 4
}
75 changes: 75 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"files.associations": {
"vector": "cpp",
"iosfwd": "cpp",
"array": "cpp",
"atomic": "cpp",
"*.tcc": "cpp",
"bitset": "cpp",
"cctype": "cpp",
"cfenv": "cpp",
"charconv": "cpp",
"chrono": "cpp",
"cinttypes": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"codecvt": "cpp",
"complex": "cpp",
"condition_variable": "cpp",
"csetjmp": "cpp",
"csignal": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cuchar": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"forward_list": "cpp",
"list": "cpp",
"unordered_map": "cpp",
"unordered_set": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"map": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"optional": "cpp",
"random": "cpp",
"ratio": "cpp",
"regex": "cpp",
"set": "cpp",
"string": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"fstream": "cpp",
"future": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"mutex": "cpp",
"new": "cpp",
"ostream": "cpp",
"scoped_allocator": "cpp",
"shared_mutex": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"valarray": "cpp"
}
}
68 changes: 68 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "make -j8",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"base": "$gcc",
"fileLocation": "absolute"
}
},
{
"label": "rebuild",
"type": "shell",
"command": "make clean all",
"problemMatcher": {
"base": "$gcc",
"fileLocation": "absolute"
}
},
{
"label": "clean",
"type": "shell",
"command": "make clean",
"problemMatcher": {
"base": "$gcc",
"fileLocation": "absolute"
}
},
{
"label": "deploy",
"type": "shell",
"command": "nxlink",
"args": ["-s","-a","switch.localhost","out\\EdiZon.nro"],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
},
"problemMatcher": []
},
{
"label": "addr2line",
"type": "shell",
"command": "${DEVKITPRO}/devkitA64/bin/aarch64-none-elf-addr2line.exe",
"args": [
"-p",
"-fiCr",
"-e",
"${workspaceRoot}/out/EdiZon.elf"
],
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "shared",
"clear": false
}
}
]
}
Loading

0 comments on commit 8c63b12

Please sign in to comment.