我想制作一个 AMX mod X 脚本,这个模块与我制作的游戏有关,所以我使用工作区作为配置。使编译器、库和输出路径依赖于每个游戏。我的源代码与编译器具有相同的文件夹
我试着写了./
,.\\
但它不起作用,vscode仍然找不到amxxpc.exe
,这是我的配置工作区:
{
"folders": [
{
"path": "."
}
],
"settings": {
"amxxpawn.compiler.executablePath": "./amxxpc.exe",
"amxxpawn.compiler.includePaths": [
"./include"
],
"amxxpawn.compiler.outputPath": "../plugins",
"amxxpawn.compiler.outputType": "path"
}
}
amxxpawn.compiler.executablePath
在我写完完整路径之前,仍然无法计算 amxxpc.exe。由于它与源代码位于同一文件夹中,因此我也尝试删除./
但仍找不到它。
这是我使用的扩展:https ://marketplace.visualstudio.com/items?itemName=KliPPy.amxxpawn-language