Skip to content

Commit

Permalink
Fix getcwd for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinShadewing committed Sep 30, 2020
1 parent 42af3e3 commit 0fa4d76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions rte/binds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,8 @@ SQInteger sqFileExists(HSQUIRRELVM v){
};

SQInteger sqGetDir(HSQUIRRELVM v){
char* buff;
getCD(buff, FILENAME_MAX);
sq_pushstring(v, buff, FILENAME_MAX);
char* buff = getCD(NULL, 0);
sq_pushstring(v, buff, strlen(buff));
return 1;
};

Expand Down
4 changes: 2 additions & 2 deletions rte/brux-rte.depend
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

1577493087 /home/kelvin/Code/brux/rte/audio.h

1601392345 source:/home/kelvin/Code/brux/rte/binds.cpp
1601394798 source:/home/kelvin/Code/brux/rte/binds.cpp
"main.h"
"global.h"
"graphics.h"
Expand Down Expand Up @@ -193,7 +193,7 @@
<cstddef>
<cstdarg>

1597649719 source:/home/kelvin/Code/brux/rte/global.cpp
1601392788 source:/home/kelvin/Code/brux/rte/global.cpp
"main.h"
"sprite.h"
"global.h"
Expand Down

0 comments on commit 0fa4d76

Please sign in to comment.