mirror of https://github.com/buggins/dlangui.git
fix #403
This commit is contained in:
parent
5b96e81d1e
commit
e58f2a1abe
|
@ -713,6 +713,11 @@ alias currentDir = std.file.getcwd;
|
|||
return path[0 .. lastSlash + 1];
|
||||
}
|
||||
|
||||
/// Returns current executable path and file name
|
||||
@property string exeFilename() {
|
||||
return thisExePath();
|
||||
}
|
||||
|
||||
/**
|
||||
Returns application data directory
|
||||
|
||||
|
|
|
@ -1505,8 +1505,10 @@ version (Windows) {
|
|||
return result;
|
||||
}
|
||||
|
||||
/// split command line arg list; prepend with executable file name
|
||||
string[] splitCmdLine(string line) {
|
||||
string[] res;
|
||||
res ~= exeFilename();
|
||||
int start = 0;
|
||||
bool insideQuotes = false;
|
||||
for (int i = 0; i <= line.length; i++) {
|
||||
|
|
|
@ -1087,7 +1087,7 @@ class Win32Platform : Platform {
|
|||
for (uint i = 0; i + 1 < _windowList.length; i++) {
|
||||
if (_windowList[i] is w) {
|
||||
for (uint j = i + 1; j < _windowList.length; j++) {
|
||||
if (_windowList[j].flags & WindowFlag.Modal && _windowList[j]._windowState != WindowState.hidden)
|
||||
if (_windowList[j].flags & WindowFlag.Modal && _windowList[j].windowState != WindowState.hidden)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -1205,8 +1205,10 @@ int DLANGUIWinMain(void* hInstance, void* hPrevInstance,
|
|||
return result;
|
||||
}
|
||||
|
||||
/// split command line arg list; prepend with executable file name
|
||||
string[] splitCmdLine(string line) {
|
||||
string[] res;
|
||||
res ~= exeFilename();
|
||||
int start = 0;
|
||||
bool insideQuotes = false;
|
||||
for (int i = 0; i <= line.length; i++) {
|
||||
|
|
Loading…
Reference in New Issue