Skip to content

Commit

Permalink
updater will delete itself
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Jul 14, 2023
1 parent 4873417 commit ab052c3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extras/menus/xMenu/include/text.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TextAnim{

private:

float scroll;
int scroll;
string title;
string subtitle;

Expand Down
6 changes: 2 additions & 4 deletions extras/menus/xMenu/src/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
TextAnim::TextAnim(string title, string subtitle){
this->title = title;
this->subtitle = subtitle;
this->scroll = 200.f;
this->scroll = 200;
}

TextAnim::~TextAnim(){
}

void TextAnim::draw(float y){

printTextScreen(200, y+30, this->title.c_str(), WHITE_COLOR);
printTextScreen(200, y+60, this->subtitle.c_str(), WHITE_COLOR);

printTextScreen(scroll, y+60, this->subtitle.c_str(), WHITE_COLOR);
}
7 changes: 7 additions & 0 deletions extras/updater/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ int main(int argc, char * argv[])
}
}

// delete updater
sceIoClose(my_fd);
sceIoRemove(eboot_path);
char* c = strrchr(eboot_path, '/');
*c = 0;
sceIoRmdir(eboot_path);

// Kill Main Thread
sceKernelExitGame();

Expand Down

0 comments on commit ab052c3

Please sign in to comment.