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", "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"
} }

View file

@ -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')

View file

@ -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))