mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
oop
This commit is contained in:
parent
95a4173658
commit
39ac44c868
1 changed files with 3 additions and 2 deletions
|
@ -410,7 +410,7 @@ void GameSettingsScreen::CreateViews() {
|
|||
const std::string installedFile = PPSSPPpath + "installed.txt";
|
||||
const std::string path = File::GetExeDirectory();
|
||||
installed = File::Exists(installedFile);
|
||||
if (!installed && result == S_OK){
|
||||
if (!installed && result == S_OK) {
|
||||
ofstream myfile;
|
||||
myfile.open(PPSSPPpath + "installedTEMP.txt");
|
||||
if (myfile.is_open()){
|
||||
|
@ -423,7 +423,7 @@ void GameSettingsScreen::CreateViews() {
|
|||
SavePathInMyDocumentChoice->SetEnabled(false);
|
||||
}
|
||||
else {
|
||||
if (installed && (result == S_OK)) {
|
||||
if (installed && (result == S_OK)) {
|
||||
std::ifstream inputFile(ConvertUTF8ToWString(installedFile));
|
||||
if (!inputFile.fail() && inputFile.is_open()) {
|
||||
SavePathInMyDocumentChoice->OnClick.Handle(this, &GameSettingsScreen::OnSavePathMydoc);
|
||||
|
@ -432,6 +432,7 @@ void GameSettingsScreen::CreateViews() {
|
|||
|
||||
// Skip UTF-8 encoding bytes if there are any. There are 3 of them.
|
||||
if (tempString.substr(0, 3) == "\xEF\xBB\xBF")
|
||||
tempString = tempString.substr(3);
|
||||
if (!(tempString == "")){
|
||||
installed = false;
|
||||
otherinstalled = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue