This commit is contained in:
Jeffery Myers 2024-08-14 18:01:58 -07:00
parent 3f023baa2f
commit 439b53c74d
3 changed files with 10 additions and 7 deletions

11
.vscode/tasks.json vendored
View file

@ -51,18 +51,21 @@
{
"label": "UpdateMake",
"type": "process",
"command": "./build/premake5",
"command": "./premake5",
"options": {
"cwd": "${workspaceFolder}/build/"
},
"args": [
"gmake2"
],
"windows": {
"command": "./build/premake5.exe"
"command": "./premake5.exe"
},
"linux": {
"command": "./build/premake5"
"command": "./premake5"
},
"osx": {
"command": "./build/premake5.osx"
"command": "./premake5.osx"
},
"group": "build"
}

View file

@ -56,9 +56,9 @@ end
workspaceName = 'MyGame'
baseName = path.getbasename(path.getdirectory(os.getcwd()));
if (baseName ~= 'raylib-quickstart') then
--if (baseName ~= 'raylib-quickstart') then
workspaceName = baseName
end
--end
if (os.isdir('build_files') == false) then
os.mkdir('build_files')

View file

@ -44,7 +44,7 @@ extern "C" { // Prevents name mangling of functions
/// </summary>
/// <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>
inline bool SearchAndSetResourceDir(const char* folderName)
inline static bool SearchAndSetResourceDir(const char* folderName)
{
// check the working dir
if (DirectoryExists(folderName))