mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-04 04:50:22 +00:00
Rename startDir to g_startDir
This commit is contained in:
parent
48539861f3
commit
a11a66fb63
|
@ -36143,9 +36143,9 @@ int main(int argc, char *argv[]) {
|
|||
singlespace = qbs_new_cmem(1, 0);
|
||||
singlespace->chr[0] = 32;
|
||||
|
||||
// store _CWD$ for recall using _STARTDIR$ in startDir
|
||||
startDir = qbs_new(0, 0);
|
||||
qbs_set(startDir, func__cwd());
|
||||
// store _CWD$ for recall using _STARTDIR$ in g_startDir
|
||||
g_startDir = qbs_new(0, 0);
|
||||
qbs_set(g_startDir, func__cwd());
|
||||
|
||||
// switch to directory of this EXE file
|
||||
// http://stackoverflow.com/questions/1023306/finding-current-executables-path-without-proc-self-exe
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
struct qbs;
|
||||
|
||||
extern qbs *startDir;
|
||||
extern qbs *g_startDir;
|
||||
|
||||
qbs *func__cwd();
|
||||
qbs *func__dir(qbs *context);
|
||||
|
|
|
@ -267,11 +267,11 @@ int32 func__fileexists(qbs *file) {
|
|||
#endif
|
||||
}
|
||||
|
||||
qbs *startDir = NULL; // set on startup
|
||||
qbs *g_startDir = nullptr; // set on startup
|
||||
|
||||
qbs *func__startdir() {
|
||||
qbs *temp = qbs_new(0, 1);
|
||||
qbs_set(temp, startDir);
|
||||
qbs_set(temp, g_startDir);
|
||||
return temp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue