1
0
Fork 0

DBG: renamed global variable

This commit is contained in:
Mr. eXoDia 2014-06-18 19:50:34 +02:00
parent f3d7e70797
commit c43d7428c9
5 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
#include <new>
HINSTANCE hInst;
char sqlitedb_basedir[deflen]="";
char dbbasepath[deflen]="";
char dbpath[3*deflen]="";
void* emalloc(size_t size)

View File

@ -92,7 +92,7 @@ enum BITMASK
//superglobal variables
extern HINSTANCE hInst;
extern char sqlitedb_basedir[deflen];
extern char dbbasepath[deflen];
extern char dbpath[3*deflen];
//functions

View File

@ -26,7 +26,6 @@ bool dbload()
bool dbsave()
{
CreateDirectoryA(sqlitedb_basedir, 0); //create database directory
return true;
}

View File

@ -516,7 +516,7 @@ static void cbCreateProcess(CREATE_PROCESS_DEBUG_INFO* CreateProcessInfo)
#else
strcat(sqlitedb, ".dd32");
#endif // _WIN64
sprintf(dbpath, "%s\\%s", sqlitedb_basedir, sqlitedb);
sprintf(dbpath, "%s\\%s", dbbasepath, sqlitedb);
dprintf("Database file: %s\n", dbpath);
dbinit();
SymSetOptions(SYMOPT_DEBUG|SYMOPT_LOAD_LINES);

View File

@ -217,8 +217,9 @@ extern "C" DLL_EXPORT const char* _dbg_dbginit()
while(dir[len]!='\\')
len--;
dir[len]=0;
strcpy(sqlitedb_basedir, dir); //debug directory
PathAppendA(sqlitedb_basedir, "db");
strcpy(dbbasepath, dir); //debug directory
PathAppendA(dbbasepath, "db");
CreateDirectoryA(dbbasepath, 0); //create database directory
SetCurrentDirectoryA(dir);
gMsgStack=msgallocstack();
if(!gMsgStack)