diff --git a/src/drivers/win/tasedit.cpp b/src/drivers/win/tasedit.cpp index 058b62f4..947d1fc9 100644 --- a/src/drivers/win/tasedit.cpp +++ b/src/drivers/win/tasedit.cpp @@ -1,6 +1,5 @@ #include #include -#include //Allows us to save the project and other data :) #include "common.h" #include "tasedit.h" diff --git a/src/drivers/win/taseditlib/taseditproj.cpp b/src/drivers/win/taseditlib/taseditproj.cpp index 7b3ad335..a76a0ed4 100644 --- a/src/drivers/win/taseditlib/taseditproj.cpp +++ b/src/drivers/win/taseditlib/taseditproj.cpp @@ -4,6 +4,16 @@ //Contains all the TASEDit project and all files/settings associated with it //Also contains all methods for manipulating the project files/settings, and saving them to disk +/* + //Private members + //The TASEdit Project's name + std::string projectName; + //The FM2's file name + std::string fm2FileName; + //The TASEdit Project's filename (For saving purposes) + std::string projectFile; +*/ + #include #include #include @@ -42,7 +52,7 @@ void TASEDIT_PROJECT::SaveProject() const char* filename = PFN.c_str(); std::ofstream ofs; ofs.open(filename); - ofs << GetProjectName() << endl; - ofs << GetFM2Name() << endl; + ofs << GetProjectName() << std::endl; + ofs << GetFM2Name() << std::endl; ofs.close(); } \ No newline at end of file diff --git a/src/drivers/win/taseditlib/taseditproj.h b/src/drivers/win/taseditlib/taseditproj.h index f3e51201..3408cea9 100644 --- a/src/drivers/win/taseditlib/taseditproj.h +++ b/src/drivers/win/taseditlib/taseditproj.h @@ -8,18 +8,9 @@ #include -using namespace std; - class TASEDIT_PROJECT { public: - //The TASEdit Project's name - std::string projectName; - //The FM2's file name - std::string fm2FileName; - //The TASEdit Project's filename (For saving purposes) - std::string projectFile; - std::string GetProjectName(); void SetProjectName(std::string e); @@ -31,4 +22,12 @@ public: //Guess what this function is for... void SaveProject(); + +private: + //The TASEdit Project's name + std::string projectName; + //The FM2's file name + std::string fm2FileName; + //The TASEdit Project's filename (For saving purposes) + std::string projectFile; }; \ No newline at end of file