PS3 unrar lib (psl1ght)

Discussion in 'Homebrew Development' started by bucanero, Apr 9, 2020.

  1. 459
    786
    147
    bucanero

    bucanero Developer

    Joined:
    Jun 29, 2019
    Messages:
    459
    Likes Received:
    786
    Trophy Points:
    147
    Gender:
    Male
    Location:
    Argentina
    Home Page:
    I was bored today and I modified the unrar source to compile on PS3 (psl1ght)
    so now I have a nice libunrar.a lying around :)

    the question is, could it be useful for something? maybe including it in a file manager, if supporting .RAR files has any advantage for users... any other ideas?

    btw, if anyone wants I can upload the source and changes to GitHub

    cheers
     
  2. 954
    385
    97
    Coro

    Coro Member

    Joined:
    May 2, 2019
    Messages:
    954
    Likes Received:
    385
    Trophy Points:
    97
    you never know who might find a use for it...i vote for github
     
  3. 7,508
    6,997
    622
    sandungas

    sandungas Moderator Developer

    Joined:
    Dec 31, 2014
    Messages:
    7,508
    Likes Received:
    6,997
    Trophy Points:
    622
    Location:
    Babylon 20xxE series
    Yeah, for filemanagers could be a handy addition, in the same way that is supported ZIP as a general purpose compressed fileformat (but the PS3 official firmware doesnt knows anything about ZIP)

    RAR falls in the same category... is not really related with the PS3, the homebrew filemanagers supports ZIP because is a poular format, the only difference is RAR is a bit less popular but i guess is the second in the "top list" of poular compressed formats (at least for microsoft windows users)
     
    bucanero and Java Brasil ps3 like this.
  4. 459
    786
    147
    bucanero

    bucanero Developer

    Joined:
    Jun 29, 2019
    Messages:
    459
    Likes Received:
    786
    Trophy Points:
    147
    Gender:
    Male
    Location:
    Argentina
    Home Page:
    alright, I'll try to build a basic "unrar" sample app with the library, and if everything works then I'll upload it to GitHub. (e.g. the app opens a RAR /dev_usb000/archive.rar and unpacks it to /dev_hdd0/tmp/ )

    Then if someone wants to add it to a homebrew file manager, it should be straight-forward.
     
    Algol, Zar, sandungas and 2 others like this.
  5. 459
    786
    147
    bucanero

    bucanero Developer

    Joined:
    Jun 29, 2019
    Messages:
    459
    Likes Received:
    786
    Trophy Points:
    147
    Gender:
    Male
    Location:
    Argentina
    Home Page:
    quick update:

    I didn't upload the lib to Github because after I built a basic test app, the unrar lib wasn't working as expected.
    With the lib, I was able to "open" and list the .rar file contents, but if I tried to extract the files, the app would just freeze.

    I didn't want to dig into the inner code of the lib trying to find where the code fails (perhaps is related to the file open/read/write/close functions, but who knows), so for now I'll leave it be.

    I might get back to it later, if this quarantine last forever
     

Share This Page