Skip to content

Commit

Permalink
버그 핫픽스 2
Browse files Browse the repository at this point in the history
  • Loading branch information
LocketGoma committed Jan 13, 2019
1 parent 9f33ce8 commit 433e5fb
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Addon_BBCC_DCconEditor_AUTO/FileEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ map <string, int>::iterator entry_iter = entry_list.begin();
/*사실상 메인 코드*/
//map <string, int> entry_list;
string default_path = "lib/dccon_list.js"; //기본 경로
string input_path;
string temp_file = "temp.dat";
unique_ptr<fstream> dcconlist;

bool linking(string route) { //1 번
Expand All @@ -24,7 +26,7 @@ unique_ptr<fstream> dcconlist;
if (route == "default_path")
route = default_path;


input_path = route;
dcconlist = make_unique<fstream>(route);

string temp;
Expand Down Expand Up @@ -162,7 +164,7 @@ string covert_input_manager(string input) {
string temp;
string midpoint;
string output;
ofstream ofile("test.txt"); //반드시 엔트리 오픈보다 나중에 실행될것.
ofstream ofile(temp_file); //반드시 엔트리 오픈보다 나중에 실행될것.
bool end_line = false;
dcconlist->seekg(0);

Expand Down Expand Up @@ -215,22 +217,24 @@ string covert_input_manager(string input) {
}

void list_entry_copier() { //리스트 카피.
ifstream ifile("test.txt");
ifstream ifile(temp_file);

string temp;
dcconlist.reset();
dcconlist = make_unique<fstream>(input_path, ios::out|ios::trunc);

string temp;

if (dcconlist->is_open()) {
dcconlist->seekg(0);
while (!ifile.eof()) {
getline(ifile, temp);
*dcconlist << temp << endl;
}
}
//*dcconlist << "ed" << endl;
}
ifile.close();

dcconlist.~unique_ptr();
remove("test.txt");
//dcconlist.~unique_ptr();
remove(temp_file.c_str());

}
int list_entry_printer() {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed Addon_BBCC_DCconEditor_AUTO/Release/FileEditor.obj
Binary file not shown.
Binary file removed Addon_BBCC_DCconEditor_AUTO/Release/Interface.obj
Binary file not shown.
Binary file removed Addon_BBCC_DCconEditor_AUTO/Release/filereader.obj
Binary file not shown.

0 comments on commit 433e5fb

Please sign in to comment.