mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Write some defaults to textures.ini on creation.
This commit is contained in:
parent
409c279c26
commit
434c95700e
1 changed files with 15 additions and 0 deletions
|
@ -1156,6 +1156,21 @@ UI::EventReturn DeveloperToolsScreen::OnOpenTexturesIniFile(UI::EventParams &e)
|
|||
if (f) {
|
||||
fwrite("\xEF\xBB\xBF", 0, 3, f);
|
||||
fclose(f);
|
||||
// Let's also write some defaults
|
||||
std::fstream fs;
|
||||
File::OpenCPPFile(fs, texturesDirectory + "textures.ini", std::ios::out);
|
||||
fs << "# This file is optional\n";
|
||||
fs << "# for syntax explanation check:\n";
|
||||
fs << "# - https://github.com/hrydgard/ppsspp/pull/8715 \n";
|
||||
fs << "# - https://github.com/hrydgard/ppsspp/pull/8792 \n";
|
||||
fs << "[options]\n";
|
||||
fs << "version = 1\n";
|
||||
fs << "hash = quick\n";
|
||||
fs << "\n";
|
||||
fs << "[hashes]\n";
|
||||
fs << "\n";
|
||||
fs << "[hashranges]\n";
|
||||
fs.close();
|
||||
}
|
||||
}
|
||||
enabled_ = File::Exists(texturesDirectory + "textures.ini");
|
||||
|
|
Loading…
Add table
Reference in a new issue