vscode
This commit is contained in:
parent
3f023baa2f
commit
439b53c74d
11
.vscode/tasks.json
vendored
11
.vscode/tasks.json
vendored
|
@ -51,18 +51,21 @@
|
||||||
{
|
{
|
||||||
"label": "UpdateMake",
|
"label": "UpdateMake",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"command": "./build/premake5",
|
"command": "./premake5",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/build/"
|
||||||
|
},
|
||||||
"args": [
|
"args": [
|
||||||
"gmake2"
|
"gmake2"
|
||||||
],
|
],
|
||||||
"windows": {
|
"windows": {
|
||||||
"command": "./build/premake5.exe"
|
"command": "./premake5.exe"
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"command": "./build/premake5"
|
"command": "./premake5"
|
||||||
},
|
},
|
||||||
"osx": {
|
"osx": {
|
||||||
"command": "./build/premake5.osx"
|
"command": "./premake5.osx"
|
||||||
},
|
},
|
||||||
"group": "build"
|
"group": "build"
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,9 +56,9 @@ end
|
||||||
workspaceName = 'MyGame'
|
workspaceName = 'MyGame'
|
||||||
baseName = path.getbasename(path.getdirectory(os.getcwd()));
|
baseName = path.getbasename(path.getdirectory(os.getcwd()));
|
||||||
|
|
||||||
if (baseName ~= 'raylib-quickstart') then
|
--if (baseName ~= 'raylib-quickstart') then
|
||||||
workspaceName = baseName
|
workspaceName = baseName
|
||||||
end
|
--end
|
||||||
|
|
||||||
if (os.isdir('build_files') == false) then
|
if (os.isdir('build_files') == false) then
|
||||||
os.mkdir('build_files')
|
os.mkdir('build_files')
|
||||||
|
|
|
@ -44,7 +44,7 @@ extern "C" { // Prevents name mangling of functions
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="folderName">The name of the resources dir to look for</param>
|
/// <param name="folderName">The name of the resources dir to look for</param>
|
||||||
/// <returns>True if a dir with the name was found, false if no change was made to the working dir</returns>
|
/// <returns>True if a dir with the name was found, false if no change was made to the working dir</returns>
|
||||||
inline bool SearchAndSetResourceDir(const char* folderName)
|
inline static bool SearchAndSetResourceDir(const char* folderName)
|
||||||
{
|
{
|
||||||
// check the working dir
|
// check the working dir
|
||||||
if (DirectoryExists(folderName))
|
if (DirectoryExists(folderName))
|
||||||
|
|
Loading…
Reference in a new issue