ManaGunZ

PS3 ManaGunZ - PS3 Backup Manager by Zar v1.41

Regarding my previous brainstorming message about multithreading...
I was reading a C++ tutorial and found a good example of how to do it https://www.tutorialspoint.com/cplusplus/cpp_multithreading.htm
In the example they uses the "pthread_create" and "pthread_exit" from linux POSIX (and this should work if you run it in PS3 under OtherOS linux, actually there is a small chunk of source code example from glevand on wiki using it)
But under GameOS it seems is done with "sys_ppu_thread_create" and "sys_ppu_thread_exit" and works in the same way, is using library <sys/thread.h> as can be seen in openps3ftp
https://github.com/jjolano/openps3ftp-v1/blob/master/source/main.c

I thought multithreading in homebrew could be a milestone, but i just realized openps3ftp was using it lot of time ago
 
Last edited:
I know, I'm using several thread yet. To detect if a new device was plugged for exemple.
So, I did it. Look the last commit in github. I'll try keep up to date github with my local repo... It's just i dont want to release the pkg yet. I would like to include retro game option before release the v1.27
 
Nice, did you find some way to use multithread for scanning games ?, by looking at the commits in git i cant see where is used
No need to explain anyway, this stuff with multithreading is over my skills so i will not understand, im just learning

It was mostlly an idea... actually i been thinking a bit more in this and got another idea
The multithreading features could be managed in a separated group of functions, all them in a specific .c file
With functions like ppu_availability, thread_request, etc...
So every time is needed to create a thread from any other subroutine you just ask for a thread request, and is returned the number of ppu's availables, his load, etc... and if posible it creates a thread (or more if availability is more than 1)

Actually, having a "smart thread manager" like this im talking about helps to take full advantage of multithread to ballance loads
What i said before about 1 thread for every game format (i dont like this idea much at this point i think it can be done better).... it could be faster if you load this same thread several times and every one of them starts scanning games in different points of the list

As example for an user that only has PS3ISO games... this user doesnt needs threads to scan other game formats, but maybe he has a lot of PS3 ISO games so is better to assign several threads to scan the same game format
Based on the filenames of the .ISO files.... one thread starts scanning in character A... another in J... another in T... and so on
The number of threads should be the max available and needs to be calculated dinamically to push the performance to the limit making cell to work at 100% load


Not sure if it makes sense, im just talking loud
 
Last edited:
I Understand what.you want to do but.i'm not skilled enough to 'optimise' this kind of stuff. If it's working i'm happy, you can't do what ever you want in these threads, the memory is rly-limited.
To learn how to use these i advise you to the samples inside sdk. Also, inside headers files there is some comment very helpfull.

Moreover, when it scan it's not letter by letter, it open the directory and check every object inside this directory. Directories can be defined in global settings.
Also, It's not working like other manager. The name of the directory isn't important... If you put your ISO inside GAMES it will detected anyway. I wanted to build it like this, even if it slow it a little bit.
 
I Understand what.you want to do but.i'm not skilled enough to 'optimise' this kind of stuff. If it's working i'm happy, you can't do what ever you want in these threads, the memory is rly-limited.
To learn how to use these i advise you to the samples inside sdk. Also, inside headers files there is some comment very helpfull.

Moreover, when it scan it's not letter by letter, it open the directory and check every object inside this directory. Directories can be defined in global settings.
Also, It's not working like other manager. The name of the directory isn't important... If you put your ISO inside GAMES it will detected anyway. I wanted to build it like this, even if it slow it a little bit.

Release v 1.27?
 
PS2ISO compatible poor in mamba mode?
I test NPJD00040 convert to ISO,
Get a black screen in mamba mode,
The same game dvd convert to iso as get black screen
DEX can not launch iso.bin.enc, so can not be verified
 
PS2ISO compatible poor in mamba mode?
I test NPJD00040 convert to ISO,
Get a black screen in mamba mode,
The same game dvd convert to iso as get black screen
DEX can not launch iso.bin.enc, so can not be verified

Original classic pkg for this game have included special config file like @Zar mentioned. So if you just extract iso.bin.enc or convert to ISO, then config file will be not applied which result in black screen in this case. Is rare, but still hacked PS2 net emu can't apply "per game fixes" on cobra and on mamba.
 
Re-encrypt CONFIG (PS2U10000.KEY)
Test failed No PS2 logo black screen,
Same as DEX launch ps2 classic

Ps2classic never worked on DEX mode (except for the launcher method + decrypted iso) and that config also caused the freezing on both CEX and DEX ever since Cobra 7.3

Try converting back to CEX and use the original PS2 emu in this case the launcher method won't work, ah then you don't need to use the original ps2 emu either since the ps2classic works with both original and cobra emulators.

I remember people used to use config + decrypted iso via ps2launcher method on cobra 7.1, but I've never tried it back then

I know for sure it doesn't work with Cobra 7.3

Maybe @habib could give us some clue


Sent from my iPhone using Tapatalk
 
Last edited:
Config should work for iso if you use a hack, basically install launcher, add cfg, mount iso and launch through launcher and boom!

Behind the scenes i am working on improving lots of aspects of cfw, i am hearing you people and trying to add/fix what i think is viable for a cfw :)
 
Config should work for iso if you use a hack, basically install launcher, add cfg, mount iso and launch through launcher and boom!

Behind the scenes i am working on improving lots of aspects of cfw, i am hearing you people and trying to add/fix what i think is viable for a cfw :)

Fyi I just told config causes blackscreen, please try your stuff once in a while xD


Sent from my iPhone using Tapatalk
 
Fyi I just told config causes blackscreen, please try your stuff once in a while xD


Sent from my iPhone using Tapatalk
weird enough...
I would take a peek if I get info:if this happens on this cobra revision only, happens on original or cobra emu, if this occurs only after mounting ps2 game
basically details xD
I would try my stuff...if I wasn't too busy "pirating" ps4 games lmao
 
@Omage @Joonie @habib

EDIT : meh.... I just noticied it's cobra 7.1 and not 7.3, i'll update to 7.3 later...

I did some test here the result with the game [NPJD00040] Mana Khemia 2 on rebug 4.75

Original PS2 Classic PKG + Original RAP + ReatPSN = WORKING

ISO extracted from ISO.BIN.ENC + MGZ mounted with COBRA = NOT WORKING (Blackscreen)
ISO extracted from ISO.BIN.ENC + MGZ mounted with MAMBA = NOT WORKING (Blackscreen) (useless test I know...)


I installed PS2ISO_LAUNCHER_1.03.pkg and activated it with ReactPSN :

Re-encrypted ISO with ps2launcher RAP (PS2U10000) copied in /dev_hdd0/game/PS2U10000/USRDIR/ =
NOT WORKING (Blackscreen)
Re-encrypted ISO with ps2launcher RAP (PS2U10000) + original CONFIG copied in /dev_hdd0/game/PS2U10000/USRDIR/ = NOT WORKING (I have msg corrupted data)

Re-encrypted ISO with ps2launcher RAP (PS2U10000) + Re-encrypted CONFIG with ps2launcher RAP (PS2U10000) copied in /dev_hdd0/game/PS2U10000/USRDIR/ =
WORKING


I Re-encrypted ISO and CONFIG files with ps2_classic_GUI.exe from ps3tools collection of @aldostools

There is no weird behaviour everything is working as it supposed to be ... I tryed with cobra enabled and disabled and I had same result.

@Omage perhaps you have a corrupted backup of your game ?

@habib Could it be possible to support CONFIG files with ISO mounted with COBRA ?
 
Last edited:
perhaps you have a corrupted backup of your game ?
ISO extracted from NPJD00040 ISO.BIN.ENC

I think reason the mamba mode can not launch CONFIG + ISO,
DEX mode also can not use ps2launcher ISO.BIN.ENC,
Re-encrypt using the ps2classic e dex parameter to get the black screen a same
 
Back
Top