X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ide%2Fsrc%2Fproject%2FWorkspace.ec;h=85f15de2d5a48f28fc8bbf4747e23e092eb8254a;hb=bcc76f7adb90bcc1105f14f94fdbaed239e78d8f;hp=a840d4b3ccb6d6bba60ca96f1731030782df07cf;hpb=382f4c3a49052b4a087c785a0180669576efcdbf;p=sdk diff --git a/ide/src/project/Workspace.ec b/ide/src/project/Workspace.ec index a840d4b..85f15de 100644 --- a/ide/src/project/Workspace.ec +++ b/ide/src/project/Workspace.ec @@ -177,6 +177,7 @@ public: private: String compiler; + int bitDepth; public: void Save() @@ -220,6 +221,7 @@ public: file.Printf("\nVersion 0.02\n"); file.Printf("\nWorkspace\n"); file.Printf("\n Active Compiler = %s\n", compiler ? compiler : defaultCompilerName); + file.Printf("\n Active Bit Depth = %d\n", bitDepth); if(projects.first) { @@ -968,6 +970,14 @@ Workspace LoadWorkspace(char * filePath, char * fromProjectFile) workspace.compiler = equal; delete compiler; } + if(!strcmpi(buffer, "Active Bit Depth")) + { + int bitDepth = atoi(equal); + if(!(bitDepth == 32 || bitDepth == 64)) + bitDepth = 0; + workspace.bitDepth = bitDepth; + ide.toolBar.activeBitDepth.SelectRow(ide.toolBar.activeBitDepth.FindRow(bitDepth)); + } } else if(!strcmpi(section, "Execution Data")) {