Skip to content

Commit

Permalink
Fixed The Saving Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherrytree56567 committed Feb 25, 2024
1 parent 959702b commit 774d655
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 15 deletions.
13 changes: 9 additions & 4 deletions DrizzleStudio/DrizzleStudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ int main(int argc, char* argv[]) {
ofs << text;
ofs.close();
}
else {
std::ofstream ofs(filePathName, std::ofstream::trunc); // Construct the full file path
ofs << text;
ofs.close();
}
}
if (ImGui::MenuItem("Compile", "F5")) {
std::string a = "cmake . -B build && cmake --build build --config Release";
Expand Down Expand Up @@ -243,8 +248,8 @@ int main(int argc, char* argv[]) {
int width, height;
glfwGetWindowSize(window, &width, &height);

ImGui::SetNextWindowSize(ImVec2(300, 700-24), ImGuiCond_Once);
ImGui::SetNextWindowPos(ImVec2(width - 300, 44), ImGuiCond_Once);
ImGui::SetNextWindowSize(ImVec2(300, 700), ImGuiCond_Once);
ImGui::SetNextWindowPos(ImVec2(width - 300, 20), ImGuiCond_Once);
ImGui::Begin("Project Explorer");
std::pair<std::string, std::pair<std::string, std::pair<std::string, bool>>> hs = DisplayTreeNode(root);
if (hs.first != "") {
Expand All @@ -254,8 +259,8 @@ int main(int argc, char* argv[]) {
}
ImGui::End();

ImGui::SetNextWindowSize(ImVec2(980, 500 - 24), ImGuiCond_Once);
ImGui::SetNextWindowPos(ImVec2(0, 44), ImGuiCond_Once);
ImGui::SetNextWindowSize(ImVec2(980, 500), ImGuiCond_Once);
ImGui::SetNextWindowPos(ImVec2(0, 20), ImGuiCond_Once);

ImGui::Begin("Text Editor");
if (ImGui::InputTextMultiline("##textinput", &text, ImVec2(ImGui::GetWindowSize()[0], ImGui::GetWindowSize()[1] - 35))) {
Expand Down
8 changes: 4 additions & 4 deletions DrizzleStudio/imgui.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ Pos=60,60
Size=400,400

[Window][Text Editor]
Pos=0,44
Size=980,476
Pos=0,20
Size=980,500

[Window][Project Explorer]
Pos=980,44
Size=300,676
Pos=980,20
Size=300,700

[Window][Choose File##ChooseFileDlg]
Pos=60,60
Expand Down
6 changes: 3 additions & 3 deletions DrizzleStudio/vendor/project.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"project": "MyProject",
"project": "MyProfdsject",
"root": {
"name": "MyProject",
"type": "directory",
"children": [
{
"name": "DS.cpp",
"path": "",
"path"
"type": "file"
}

]
}
}
Binary file modified DrizzleStudio/x64/Debug/DrizzleStudio.ilk
Binary file not shown.
6 changes: 2 additions & 4 deletions DrizzleStudio/x64/Debug/DrizzleStudio.log
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
 DrizzleStudio.cpp
C:\Users\ronit\Desktop\DrizzleStudio\DrizzleStudio\DrizzleStudio.cpp(247,46): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
C:\Users\ronit\Desktop\DrizzleStudio\DrizzleStudio\DrizzleStudio.cpp(266,50): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
C:\Users\ronit\Desktop\DrizzleStudio\DrizzleStudio\DrizzleStudio.cpp(252,46): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
C:\Users\ronit\Desktop\DrizzleStudio\DrizzleStudio\DrizzleStudio.cpp(271,50): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
C:\Users\ronit\Desktop\DrizzleStudio\DrizzleStudio\DrizzleStudio.cpp(138,13): warning C4101: 'font': unreferenced local variable
imgui_stdlib.cpp
Generating Code...
DrizzleStudio.vcxproj -> C:\Users\ronit\Desktop\DrizzleStudio\x64\Debug\DrizzleStudio.exe
Binary file modified DrizzleStudio/x64/Debug/DrizzleStudio.obj
Binary file not shown.
Binary file modified DrizzleStudio/x64/Debug/DrizzleStudio.tlog/CL.command.1.tlog
Binary file not shown.
Binary file modified DrizzleStudio/x64/Debug/DrizzleStudio.tlog/CL.read.1.tlog
Binary file not shown.
Binary file modified DrizzleStudio/x64/Debug/DrizzleStudio.tlog/CL.write.1.tlog
Binary file not shown.
Binary file modified DrizzleStudio/x64/Debug/vc143.idb
Binary file not shown.
Binary file modified DrizzleStudio/x64/Debug/vc143.pdb
Binary file not shown.
Binary file modified x64/Debug/DrizzleStudio.exe
Binary file not shown.
Binary file modified x64/Debug/DrizzleStudio.pdb
Binary file not shown.

0 comments on commit 774d655

Please sign in to comment.