Skip to content

Commit 44a2ecf

Browse files
ComputerEliteComputerElite
authored andcommitted
update vsc stuff
1 parent bf6ddb5 commit 44a2ecf

3 files changed

Lines changed: 82 additions & 13 deletions

File tree

.vscode/c_cpp_properties.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,27 @@
22
"configurations": [
33
{
44
"defines": [
5+
"MOD_ID=\"#{id}\"",
56
"VERSION=\"0.1.0\"",
67
"__GNUC__",
78
"__aarch64__"
89
],
910
"includePath": [
10-
"${workspaceFolder}/**",
11-
"${workspaceFolder}/shared",
12-
"${workspaceFolder}/include",
13-
"${workspaceFolder}/extern/**",
14-
"${workspaceFolder}/extern/libil2cpp/il2cpp/libil2cpp"
11+
"${workspaceFolder}/extern/includes/libil2cpp/il2cpp/libil2cpp",
12+
"${workspaceFolder}/extern/includes/codegen/include",
13+
"${workspaceFolder}/extern/includes",
14+
"${workspaceFolder}/include",
15+
"${workspaceFolder}/shared",
16+
"${workspaceFolder}",
17+
18+
"#{ndkpath}/**",
19+
"${default}"
1520
],
1621
"name": "Quest",
1722
"cStandard": "c11",
1823
"cppStandard": "c++20",
19-
"intelliSenseMode": "clang-x64"
24+
"intelliSenseMode": "clang-x64",
25+
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
2026
}
2127
],
2228
"version": 4

.vscode/launch.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch Beat Saber",
6+
"type": "fb-lldb",
7+
"request": "launch",
8+
"preLaunchTask": "Powershell Build and Copy",
9+
"android": {
10+
"application": {
11+
"package": "com.beatgames.beatsaber",
12+
"activity": "com.unity3d.player.UnityPlayerActivity"
13+
},
14+
"lldbConfig": {
15+
"sourceMaps": [],
16+
"librarySearchPaths": [
17+
"${workspaceFolder}/build/debug/",
18+
"${workspaceFolder}/extern/libs/"
19+
]
20+
}
21+
}
22+
},
23+
{
24+
"name": "Attach to running Beat Saber Instance",
25+
"type": "fb-lldb",
26+
"request": "attach",
27+
"android": {
28+
"application": {
29+
"package": "com.beatgames.beatsaber",
30+
"activity": "com.unity3d.player.UnityPlayerActivity"
31+
},
32+
"lldbConfig": {
33+
"sourceMaps": [],
34+
"librarySearchPaths": [
35+
"${workspaceFolder}/build/debug/",
36+
"${workspaceFolder}/extern/libs/",
37+
]
38+
}
39+
}
40+
}
41+
]
42+
}

.vscode/tasks.json

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
{
3535
"label": "Powershell Build and Copy",
36-
"detail": "Builds and copies the library to the Quest using adb and force-quits Beat Saber",
36+
"detail": "Builds and copies the library to the Quest using ADB and force-quits Beat Saber",
3737
"type": "shell",
3838
"command": "./copy.ps1",
3939
"windows": {
@@ -45,12 +45,12 @@
4545
}
4646
},
4747
{
48-
"label": "BMBF Build",
49-
"detail": "Builds a .zip to be uploaded into BMBF",
48+
"label": "QMOD Build",
49+
"detail": "Builds a .qmod to be installed into BMBF or QuestPatcher",
5050
"type": "shell",
51-
"command": "./buildBMBF.ps1",
51+
"command": "./buildQMOD.ps1",
5252
"windows": {
53-
"command": "./buildBMBF.ps1"
53+
"command": "./buildQMOD.ps1"
5454
},
5555
"args": [],
5656
"group": "build",
@@ -60,9 +60,30 @@
6060
},
6161
{
6262
"label": "Start logging",
63-
"detail": "Records a log to log.txt using adb logcat",
63+
"detail": "Begin logging from the Quest to the console",
6464
"type": "shell",
65-
"command": "./startlogging.bat"
65+
"command": "./start-logging.ps1",
66+
"windows": {
67+
"command": "./start-logging.ps1"
68+
}
69+
},
70+
{
71+
"label": "Start logging to file",
72+
"detail": "Begin logging from the Quest to the console and saving output to a file 'logcat.log'",
73+
"type": "shell",
74+
"command": "./start-logging.ps1 --file",
75+
"windows": {
76+
"command": "./start-logging.ps1 --file"
77+
}
78+
},
79+
{
80+
"label": "Restart Beat Saber",
81+
"detail": "Force-quits and restarts Beat Saber on the Quest",
82+
"type": "shell",
83+
"command": "./start-logging.ps1",
84+
"windows": {
85+
"command": "./start-logging.ps1"
86+
}
6687
}
6788
]
6889
}

0 commit comments

Comments
 (0)