mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-16 19:58:53 +01:00
changed strings to cstrings for ofstream constructors in linux
This commit is contained in:
parent
857a229eea
commit
8f35fba18e
@ -85,23 +85,29 @@ bool CollectionInfoBuilder::CreateCollectionDirectory(std::string name)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string filename = collectionPath + "/include.txt";
|
||||||
|
std::cout << "Creating file \"" << filename << "\"" << std::endl;
|
||||||
|
|
||||||
std::ofstream includeFile;
|
std::ofstream includeFile;
|
||||||
std::cout << "Creating file \"" << collectionPath + "/include.txt" << "\"" << std::endl;
|
includeFile.open(filename.c_str());
|
||||||
includeFile.open(collectionPath + "/include.txt");
|
|
||||||
includeFile << "# Add a list of files to show on the menu (one filename per line, without the extension)." << std::endl;
|
includeFile << "# Add a list of files to show on the menu (one filename per line, without the extension)." << std::endl;
|
||||||
includeFile << "# If no items are in this list then all files in the folder specified" << std::endl;
|
includeFile << "# If no items are in this list then all files in the folder specified" << std::endl;
|
||||||
includeFile << "# by settings.conf will be used" << std::endl;
|
includeFile << "# by settings.conf will be used" << std::endl;
|
||||||
includeFile.close();
|
includeFile.close();
|
||||||
|
|
||||||
|
filename = collectionPath + "/exclude.txt";
|
||||||
|
std::cout << "Creating file \"" << filename << "\"" << std::endl;
|
||||||
std::ofstream excludeFile;
|
std::ofstream excludeFile;
|
||||||
std::cout << "Creating file \"" << collectionPath + "/exclude.txt" << "\"" << std::endl;
|
excludeFile.open(filename.c_str());
|
||||||
excludeFile.open(collectionPath + "/exclude.txt");
|
|
||||||
includeFile << "# Add a list of files to hide on the menu (one filename per line, without the extension)." << std::endl;
|
includeFile << "# Add a list of files to hide on the menu (one filename per line, without the extension)." << std::endl;
|
||||||
excludeFile.close();
|
excludeFile.close();
|
||||||
|
|
||||||
|
filename = collectionPath + "/settings.conf";
|
||||||
|
std::cout << "Creating file \"" << filename << "\"" << std::endl;
|
||||||
std::ofstream settingsFile;
|
std::ofstream settingsFile;
|
||||||
std::cout << "Creating file \"" << collectionPath + "/settings.conf" << "\"" << std::endl;
|
settingsFile.open(filename.c_str());
|
||||||
settingsFile.open(collectionPath + "/settings.conf");
|
|
||||||
settingsFile << "# Uncomment and edit the following line to use a different ROM path." << std::endl;
|
settingsFile << "# Uncomment and edit the following line to use a different ROM path." << std::endl;
|
||||||
settingsFile << "#list.path = %BASE_ITEM_PATH%/%ITEM_COLLECTION_NAME%/roms" << std::endl;
|
settingsFile << "#list.path = %BASE_ITEM_PATH%/%ITEM_COLLECTION_NAME%/roms" << std::endl;
|
||||||
settingsFile << "list.extensions = zip" << std::endl;
|
settingsFile << "list.extensions = zip" << std::endl;
|
||||||
@ -120,9 +126,10 @@ bool CollectionInfoBuilder::CreateCollectionDirectory(std::string name)
|
|||||||
settingsFile << "#media.video = %BASE_MEDIA_PATH%/%ITEM_COLLECTION_NAME%/medium_artwork/video" << std::endl;
|
settingsFile << "#media.video = %BASE_MEDIA_PATH%/%ITEM_COLLECTION_NAME%/medium_artwork/video" << std::endl;
|
||||||
settingsFile.close();
|
settingsFile.close();
|
||||||
|
|
||||||
|
filename = collectionPath + "/menu.xml";
|
||||||
|
std::cout << "Creating file \"" << filename << "\"" << std::endl;
|
||||||
std::ofstream menuFile;
|
std::ofstream menuFile;
|
||||||
std::cout << "Creating file \"" << collectionPath + "/menu.xml" << "\"" << std::endl;
|
menuFile.open(filename.c_str());
|
||||||
menuFile.open(collectionPath + "/menu.xml");
|
|
||||||
|
|
||||||
menuFile << "<menu>" << std::endl;
|
menuFile << "<menu>" << std::endl;
|
||||||
menuFile << std::endl;
|
menuFile << std::endl;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user