def install(plugin):
    if plugin == 'ARK':
        if tkMessageBox.askyesno(title="3.65?",message="ARK WILL NOT WORK ON 3.65+\nDo you still want to continue?"):
                ARK.vp_start_gui()
    elif plugin == 'VHBL':
        VHBL.vp_start_gui()
    elif plugin == 'HiddenApps':
        HiddenApps.run()
    elif plugin == 'Whitelister':
        Whitelister.vp_start_gui()
    elif plugin == 'UriCaller':
        UriCaller.vp_start_gui()
    elif plugin == 'PSMRuntime':
        PSMRuntime.run()
    elif plugin == 'Skype':
        if tkMessageBox.askyesno(title="3.65?",message="SKYPE WILL NOT WORK ON 3.65+\nDo you still want to continue?"):
                Skype.run()
    elif plugin == 'RemoveFeatured':
        RemoveFeatured.vp_start_gui()
    elif plugin == 'CmBackup':
        cmbackup.vp_start_gui()
    elif plugin == 'EmuBubble':
        emububble.vp_start_gui()
    elif plugin == 'ClonePSP':
        clonePSP.vp_start_gui()
    elif plugin == 'VitaShell':
        VitaShell.run()

    else:
        ### Load Custom EasyInstaller. ###
        defs.executePy(defs.getWorkingDir()+'/easyinstallers/'+plugin+'/main.py')

    sys.stdout.flush()
Esempio n. 2
0
def install(plugin):
    if plugin == 'ARK':
        if tkMessageBox.askyesno(title="3.65?",message="ARK WILL NOT WORK ON 3.65+ \nDo you still want to continue?"):
                ARK.vp_start_gui()
    elif plugin == 'VHBL':
        VHBL.vp_start_gui()
    elif plugin == 'HiddenApps':
        HiddenApps.run()
    elif plugin == 'Whitelister':
        Whitelister.vp_start_gui()
    elif plugin == 'UriCaller':
        UriCaller.vp_start_gui()
    elif plugin == 'PSMRuntime':
        PSMRuntime.run()
    elif plugin == 'Skype':
        if tkMessageBox.askyesno(title="3.65?",message="SKYPE WILL NOT WORK ON 3.65+ \nDo you still want to continue?"):
                Skype.run()
    elif plugin == 'RemoveFeatured':
        RemoveFeatured.vp_start_gui()
    elif plugin == 'CmBackup':
        cmbackup.vp_start_gui()

    sys.stdout.flush()
Esempio n. 3
0
    ""

try:
    if args[0] == "s":
        print "Skipping Initial Check.."
        print "Problems may occur when doing this..."
        print "Running GUI.."
        main.vp_start_gui()
except IndexError:
    ""

try:
    if args[0] != "" and args[0] != "noUpdateCheck":
        print "Extracting CMBackup File"
        import easyinstallers.CmBackup.main as CMBACKUP
        CMBACKUP.vp_start_gui(args[0])
except IndexError:
    ""

try:
    if args[0] == "noUpdateCheck":
        print "Skipping Update Check."
except IndexError:
    print "Checking for updates"
    defs.checkForUpdate(version)

if not os.path.exists("accounts"):
    os.makedirs("accounts")
if not os.path.exists("keys"):
    os.makedirs("keys")
def install(plugin):
    if plugin == 'ARK':
        if tkMessageBox.askyesno(
                title="3.65?",
                message=
                "ARK WILL NOT WORK ON 3.65+\nDo you still want to continue?"):
            ARK.vp_start_gui()
    elif plugin == 'VHBL':
        VHBL.vp_start_gui()
    elif plugin == 'HiddenApps':
        HiddenApps.run()
    elif plugin == 'Whitelister':
        Whitelister.vp_start_gui()
    elif plugin == 'UriCaller':
        UriCaller.vp_start_gui()
    elif plugin == 'PSMRuntime':
        PSMRuntime.run()
    elif plugin == 'Skype':
        if tkMessageBox.askyesno(
                title="3.65?",
                message=
                "SKYPE WILL NOT WORK ON 3.65+\nDo you still want to continue?"
        ):
            Skype.run()
    elif plugin == 'RemoveFeatured':
        RemoveFeatured.vp_start_gui()
    elif plugin == 'CmBackup':
        cmbackup.vp_start_gui()
    elif plugin == 'EmuBubble':
        emububble.vp_start_gui()
    elif plugin == 'ClonePSP':
        clonePSP.vp_start_gui()
    elif plugin == 'VitaShell':
        VitaShell.run()
    elif plugin == 'hencore':
        if not os.path.exists("easyinstallers/hencore/PCSG90096/app"):
            if tkMessageBox.askyesno(
                    title="Download h-encore?",
                    message=
                    "h-encore is not downloaded\nIt will not work unless you download it\nDo you want to download h-encore?"
            ):
                if os.path.exists("hencore"):
                    shutil.rmtree('hencore')
                if os.path.exists("easyinstallers/hencore/PCSG90096/app"):
                    shutil.rmtree('easyinstallers/hencore/PCSG90096/app')
                if os.path.exists("easyinstallers/hencore/PCSG90096/appmeta"):
                    shutil.rmtree('easyinstallers/hencore/PCSG90096/appmeta')
                if os.path.exists("easyinstallers/hencore/PCSG90096/license"):
                    shutil.rmtree('easyinstallers/hencore/PCSG90096/license')
                if os.path.exists("easyinstallers/hencore/PCSG90096/savedata"):
                    shutil.rmtree('easyinstallers/hencore/PCSG90096/savedata')
                if os.path.exists("easyinstallers/hencore/PCSG90096/sce_sys"):
                    shutil.rmtree('easyinstallers/hencore/PCSG90096/sce_sys')
                print 'Downloading bitter smile...\nThis may take a while.'
                os.makedirs("hencore")
                open("hencore/bittersmile.pkg", "wb").write(
                    urllib2.urlopen(
                        "http://ares.dl.playstation.net/cdn/JP0741/PCSG90096_00/xGMrXOkORxWRyqzLMihZPqsXAbAXLzvAdJFqtPJLAZTgOcqJobxQAhLNbgiFydVlcmVOrpZKklOYxizQCRpiLfjeROuWivGXfwgkq.pkg"
                    ).read())
                print 'Downloading pkg2zip...'
                open("hencore/pkg2zip_32bit.zip", "wb").write(
                    urllib2.urlopen(
                        "https://github.com/mmozeiko/pkg2zip/releases/download/v1.8/pkg2zip_32bit.zip"
                    ).read())
                print 'Unzipping pkg2zip...'
                zip_ref = zipfile.ZipFile("hencore/pkg2zip_32bit.zip", 'r')
                zip_ref.extractall("hencore")
                zip_ref.close()
                os.remove("hencore/pkg2zip_32bit.zip")
                print 'Downloading h-encore...'
                open("hencore/h-encore.zip", "wb").write(
                    urllib2.urlopen(
                        "https://github.com/TheOfficialFloW/h-encore/releases/download/v1.0/h-encore.zip"
                    ).read())
                print 'Unzipping h-encore...'
                zip_ref = zipfile.ZipFile("hencore/h-encore.zip", 'r')
                zip_ref.extractall("hencore")
                zip_ref.close()
                os.remove("hencore/h-encore.zip")
                print 'Decrypting pkg...'
                subprocess.call('hencore/pkg2zip -x hencore/bittersmile.pkg')
                print 'Copying game to h-encore folder...'
                source = "app/PCSG90096/"
                dest1 = "hencore/h-encore/app/ux0_temp_game_PCSG90096_app_PCSG90096/"
                files = os.listdir(source)
                for f in files:
                    shutil.move(source + f, dest1)
                shutil.rmtree('app')
                print 'Copying license...'
                shutil.copy2(
                    "hencore/h-encore/app/ux0_temp_game_PCSG90096_app_PCSG90096/sce_sys/package/temp.bin",
                    "hencore/h-encore/license/ux0_temp_game_PCSG90096_license_app_PCSG90096"
                )
                shutil.move(
                    "hencore/h-encore/license/ux0_temp_game_PCSG90096_license_app_PCSG90096/temp.bin",
                    "hencore/h-encore/license/ux0_temp_game_PCSG90096_license_app_PCSG90096/6488b73b912a753a492e2714e9b38bc7.rif"
                )
                print 'Finishing up...'
                if not os.path.exists("hencore/h-encore/sce_sys/"):
                    os.makedirs("hencore/h-encore/sce_sys/")
                source = "hencore/h-encore/PCSG90096/sce_sys/"
                dest1 = "hencore/h-encore/sce_sys/"
                files = os.listdir(source)
                for f in files:
                    shutil.move(source + f, dest1)
                os.rmdir("hencore/h-encore/PCSG90096/sce_sys")
                os.rmdir("hencore/h-encore/PCSG90096/")
                source = "hencore/h-encore/"
                dest1 = "easyinstallers/hencore/PCSG90096"
                files = os.listdir(source)
                for f in files:
                    shutil.move(source + f, dest1)
                shutil.rmtree('hencore')
                hencore.run()
        else:
            hencore.run()

    else:
        ### Load Custom EasyInstaller. ###
        defs.executePy(defs.getWorkingDir() + '/easyinstallers/' + plugin +
                       '/main.py')

    sys.stdout.flush()