diff options
-rw-r--r-- | Project/FileHanding.cpp | 10 | ||||
-rw-r--r-- | Project/Project.project | 6 | ||||
-rw-r--r-- | Project/compile_flags.txt | 13 |
3 files changed, 11 insertions, 18 deletions
diff --git a/Project/FileHanding.cpp b/Project/FileHanding.cpp index ed747a8..b8e39ce 100644 --- a/Project/FileHanding.cpp +++ b/Project/FileHanding.cpp @@ -24,11 +24,11 @@ FileHanding::FileHanding() {} void FileHanding::SaveProject(wxFileName path) { // Erase the file (if exists or not) and write the initial data - std::ofstream writeProjectsFile(path.GetFullPath()); + std::ofstream writeProjectsFile(path.GetFullPath().mb_str()); writeProjectsFile.close(); rapidxml::xml_document<> doc; - rapidxml::file<> xmlFile(path.GetFullPath().mb_str()); + rapidxml::file<> xmlFile(path.GetFullPath()); doc.parse<0>(xmlFile.data()); rapidxml::xml_node<>* decl = doc.allocate_node(rapidxml::node_declaration); @@ -257,7 +257,7 @@ void FileHanding::SaveProject(wxFileName path) } //} - std::ofstream writeXML(path.GetFullPath()); + std::ofstream writeXML(path.GetFullPath().mb_str()); writeXML << doc; writeXML.close(); } @@ -579,7 +579,7 @@ bool FileHanding::OpenProject(wxFileName path) void FileHanding::SaveControl(wxFileName path) { // Same process present in SaveProject(): - std::ofstream writeProjectsFile(path.GetFullPath()); + std::ofstream writeProjectsFile(path.GetFullPath().mb_str()); writeProjectsFile.close(); rapidxml::xml_document<> doc; @@ -601,7 +601,7 @@ void FileHanding::SaveControl(wxFileName path) auto elementsNode = XMLParser::AppendNode(doc, rootNode, "ControlElements"); SaveControlElements(doc, elementsNode); - std::ofstream writeXML(path.GetFullPath()); + std::ofstream writeXML(path.GetFullPath().mb_str()); writeXML << doc; writeXML.close(); } diff --git a/Project/Project.project b/Project/Project.project index 57d3707..b575519 100644 --- a/Project/Project.project +++ b/Project/Project.project @@ -519,13 +519,13 @@ <SearchPaths/> </Completion> </Configuration> - <Configuration Name="Release_Windows_x64" CompilerType="MinGW ( TDM-GCC-64 )" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append"> - <Compiler Options="-O2;-Wall;$(shell wx-config --cflags);-std=gnu++11" C_Options="-O2;-Wall" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0"> + <Configuration Name="Release_Windows_x64" CompilerType="MinGW 64bit ( MSYS2 64bit )" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append"> + <Compiler Options="-O2;-std=c++17;-Wall;$(shell wx-config --cflags)" C_Options="-O2;-Wall" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0"> <IncludePath Value="."/> <Preprocessor Value="NDEBUG"/> <Preprocessor Value="UNICODE"/> </Compiler> - <Linker Options="$(shell wx-config --libs std,adv,ribbon,aui,propgrid,richtext,stc,gl);-mwindows" Required="yes"/> + <Linker Options="$(shell wx-config --libs std,adv,ribbon,aui,propgrid,richtext,stc,gl);-mwindows;-static" Required="yes"/> <ResourceCompiler Options="$(shell wx-config --rcflags)" Required="no"/> <General OutputFile="$(IntermediateDirectory)/pspufu" IntermediateDirectory="./Release_Windows_x64" Command="./pspufu" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="no" IsGUIProgram="yes" IsEnabled="yes"/> <BuildSystem Name="Default"/> diff --git a/Project/compile_flags.txt b/Project/compile_flags.txt index 79426de..350b93a 100644 --- a/Project/compile_flags.txt +++ b/Project/compile_flags.txt @@ -1,13 +1,6 @@ --IC:\TDM-GCC-64\lib\gcc\x86_64-w64-mingw32\5.1.0\include\c++ --IC:\TDM-GCC-64\lib\gcc\x86_64-w64-mingw32\5.1.0\include\c++\x86_64-w64-mingw32 --IC:\TDM-GCC-64\lib\gcc\x86_64-w64-mingw32\5.1.0\include\c++\backward --IC:\TDM-GCC-64\lib\gcc\x86_64-w64-mingw32\5.1.0\include --IC:\TDM-GCC-64\include --IC:\TDM-GCC-64\lib\gcc\x86_64-w64-mingw32\5.1.0\include-fixed --IC:\TDM-GCC-64\x86_64-w64-mingw32\include --IC:\Users\NDSE-69\Documents\GitHub\PSP\Project --IC:\wxWidgets-3.1.2\lib\gcc_dll\mswu --IC:\wxWidgets-3.1.2\include +-IC:\Users\thale\Documents\GitHub\PSP\Project +-IC:\wxWidgets-3.1.3\lib\gcc_dll\mswu +-IC:\wxWidgets-3.1.3\include -D_UNICODE -DHAVE_W32API_H -DWXUSINGDLL |