mirror of https://github.com/buggins/dlangide.git
fix crash under win32 - in DCD log messages: close #89
This commit is contained in:
parent
2a48f235b0
commit
3645c29fb6
2
dub.json
2
dub.json
|
@ -12,7 +12,7 @@
|
||||||
"stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi", "views/res/hdpi"],
|
"stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi", "views/res/hdpi"],
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dlangui": "~>0.7.33",
|
"dlangui": "~>0.7.34",
|
||||||
"dcd": "~>0.7.5-3"
|
"dcd": "~>0.7.5-3"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -6,13 +6,26 @@ import std.conv;
|
||||||
import dlangide.ui.frame;
|
import dlangide.ui.frame;
|
||||||
import dlangide.ui.commands;
|
import dlangide.ui.commands;
|
||||||
import dlangide.workspace.workspace;
|
import dlangide.workspace.workspace;
|
||||||
|
import std.experimental.logger;
|
||||||
|
|
||||||
mixin APP_ENTRY_POINT;
|
mixin APP_ENTRY_POINT;
|
||||||
|
|
||||||
/// entry point for dlangui based application
|
/// entry point for dlangui based application
|
||||||
extern (C) int UIAppMain(string[] args) {
|
extern (C) int UIAppMain(string[] args) {
|
||||||
|
|
||||||
|
version(Windows) {
|
||||||
|
debug {
|
||||||
|
sharedLog = new FileLogger("dcd.log");
|
||||||
|
} else {
|
||||||
|
sharedLog = new NullLogger();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
debug {
|
||||||
|
//sharedLog = new FileLogger("dcd.log");
|
||||||
|
} else {
|
||||||
|
sharedLog = new NullLogger();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// embed non-standard resources listed in views/resources.list into executable
|
// embed non-standard resources listed in views/resources.list into executable
|
||||||
embeddedResourceList.addResources(embedResourcesFromList!("resources.list")());
|
embeddedResourceList.addResources(embedResourcesFromList!("resources.list")());
|
||||||
|
|
Loading…
Reference in New Issue