Hacking CMFileManager PSP - Multi-purpose file manager for the PSP

Joel16

Ils ne passeront pas
OP
Member
Joined
May 8, 2011
Messages
902
Trophies
1
Age
24
Location
Doesn't concern you.
XP
4,438
Country
United States
Considering the mess of CyanogenPSP, an old project of mine that I wrote when I was around 16, I wanted to give my favorite handled one final contribution. CyanogenPSP, may *look good* and *work* well in the most part, however the code base that it uses is a huge horrible mess and I can't emphasize it any further. I'm noticing this now as I approach my final year in Computer Engineering. The file manager in it never even worked, the coding concepts used inside of it is very bad, many duplicate functions that do the same thing, no proper error handling, bad use of resources etc. I wouldn't want anyone to use that as a code base to anything, hence why I want to make one final contribution no matter how late it is. A final contribution with a clean, dev-friendly open source code base. My answer to this CM File Manager PSP - a minimalistic approach to a file manager with a variety of user friendly features. PS. I don't care how late this is, the PSP is an amazing device and I want to do this even if just 3-4 people are interested.

VhxiN0s.png

Ve9RxvA.png


dAXBq1Y.png


CFdkOh2.png


5Z842jp.png


lZ7Yl9C.png


7dxTCxz.png

Features:
See README.md: https://github.com/joel16/CMFileManager-PSP/blob/next/README.MD

Downloads:
https://github.com/joel16/CMFileManager-PSP/releases
 
Last edited by Joel16,

Joel16

Ils ne passeront pas
OP
Member
Joined
May 8, 2011
Messages
902
Trophies
1
Age
24
Location
Doesn't concern you.
XP
4,438
Country
United States
Oh and I forgot to mention, unlike other file managers for PSP, this shouldn't delete + copy a file just to move it to another location. It will instead move it directly (similar to mv command in linux) which should be a lot faster. So far, the delete, rename and new folder functions is working properly, but the multi file handing functions, copy/cut is yet to be working. Once I get the basic file manager functions up, I'll publish the initial release. I also added an option to auto USB mount similar to how the PSP does it in the XMB. (This can be turned off in options).

oXnt79q.png
 
Last edited by Joel16,

cvskid

Well-Known Member
Member
Joined
Apr 13, 2014
Messages
2,669
Trophies
1
XP
2,378
Country
United States

Va1iXZB.png


pYzt51u.png


p2hhRpa.png


MaidJRk.png

Anticipated features:

- Basic file manager functions (copy, cut, delete -> with multiple files/folders, + rename, new folder)
- Built in FTP.
- Built in USB mass storage.
- Handling certain file archives.
- Media (music, pictures, reading text files).


Downloads:

None as of now, but keep checking Github!
Saw your post about this on reddit but it looked like the online vita community didn't appreciate this despite it being helpful considering the ps vita has adrenaline. Glad that psp homebrew is still being made. Thank you for the file manager app. Will use it on both an actual psp and ps vita once it's finished.
 
Last edited by cvskid,
  • Like
Reactions: Malckyor and Joel16

Joel16

Ils ne passeront pas
OP
Member
Joined
May 8, 2011
Messages
902
Trophies
1
Age
24
Location
Doesn't concern you.
XP
4,438
Country
United States
Saw your post about this on reddit but it looked like the online vita community didn't appreciate this despite it being helpful considering the ps vita has adrenaline. Glad that psp homebrew is still being made. Thank you for the file manager app. Will use it on both an actual psp and ps vita once it's finished.
It's understandable since vita has vitashell which makes use of vita's power. This is mainly for the PSP considering pspfiler was rather clunky and I don't remember any file manager that moved files/folders instantly, rather they would copy and then delete which can take quite a while. So it's basically a more user friendly file manager that offers a plethora of features that is built upon the latest changes within the PSPSDK.
 
Last edited by Joel16,

Joel16

Ils ne passeront pas
OP
Member
Joined
May 8, 2011
Messages
902
Trophies
1
Age
24
Location
Doesn't concern you.
XP
4,438
Country
United States
Initial Release is up!

wWeLZz8.jpg

pYzt51u.png

oXnt79q.png

MaidJRk.png

6o3coep.png

Features:
  • Copy files/folders.
  • Immediate move files/folders.
  • Delete files/folders.
  • Multi file handling functions for copy/move/delete.
  • File properties. (File size, creation time, modification time, access times, permissions)
  • Creating directories.
  • Renaming files/folders.
  • Image viewer.
  • Auto USB mount.
  • Dark theme mode.
  • Browse other drives like flash0 and flash1. (Please be careful not to delete/move/rename anything here)

https://github.com/joel16/CMFileManager-PSP/releases/tag/v1.00
 

crimsonwolf8439

Active Member
Newcomer
Joined
May 22, 2016
Messages
44
Trophies
0
Age
27
XP
575
Country
Took a look at source, looks like you're using OSL? How'd you get it working? I've not yet managed to get a working version of OSL into my toolchain.
 
  • Like
Reactions: Malckyor

Joel16

Ils ne passeront pas
OP
Member
Joined
May 8, 2011
Messages
902
Trophies
1
Age
24
Location
Doesn't concern you.
XP
4,438
Country
United States
Release v1.0.1 is up!

  • Load app icons into VRAM and swizzle textures.
  • Properly determine if running from ef0:/ (PSP Go) or ms0:/
  • Can now launch ISO/CSO and homebrew.
  • Added ICON0 by JesterIOS.
  • Display storage bar for ef0:/ or ms0:/ devices.
  • Add option to create files and refresh directory list in options menu.
  • Fix minor glitch in OSK. (The OSK dialog would appear rather glitch-y when trying to cancel.)
  • "New folder" option initially has "New folder" set in OSK.
  • "Rename" option has the current file's name initially set in the OSK.
  • Lock power (prevent suspend) during file operations.
  • Make cancel button functional in options menu.
  • Screenshot path is now changed to /PSP/PHOTO/CMFileManager/.
  • Added zip file extraction.

Download: https://github.com/joel16/CMFileManager-PSP/releases/tag/v1.01
 

Malckyor

The One and Only!
Member
Joined
Sep 19, 2018
Messages
266
Trophies
0
Age
27
XP
1,111
Country
Brazil
Great! I gladly appreciate it! I was just wanting a new file manager, well, if you say that it can read and write .txt files for managing of plugins for example and that it has that same file transfer via adhoc like the Adhoc File Transfer homebrew and that we can connect to PC without exiting the homebrew (I didn't get if this is what you meant for the Auto USB Mount), then I must say that is the perfect manager homebrew ever!!

By the way, I don't mind that is late too, I started some time ago a PSP DLC thread, not everybody may want or need it, but I'll keep the files for those who want them and never lose them again. This is getting old so it's getting more more difficult to get.

Edit: Oh, it really mounts the USB, that was what I thought, I liked it!
 
Last edited by Malckyor,

Joel16

Ils ne passeront pas
OP
Member
Joined
May 8, 2011
Messages
902
Trophies
1
Age
24
Location
Doesn't concern you.
XP
4,438
Country
United States
New release v1.10 is up!

Notice: Please delete your "data" folder and config.cfg file in (ms0/ef0):/PSP/GAME/CMFileManager/. The data folder is no longer needed, since all of the external assets are now embedded into the binary. The config file has some changes that won't work with previous versions. After you delete the config file, the app will create a new one. From this update on wards, deleting the config file if any changes pertaining to the config is made will be handled automatically.

Change-log:

  • Handle config version so that user won't have to manually delete it for upcoming releases.
  • Fixed buffer overflow when multi selecting a file with a long path name.
  • Embed all assets and fonts into the binary and load them from memory. (You no longer need the datafolder)
  • Added a help dialog under settings menu.
  • Get enter/cancel buttons from registry. (For example the cross button implies enter/accept in the west, but Asian games use the cross button as a cancel button).
  • Highlight current selected drive in menu bar.
  • Fixed auto USB storage for PSP GO. (Now displays both ef0:/ and ms0:/ in USB mode)
  • USB mode no longer requires the app to restart if "Auto usb mounting" is toggled under settings.
  • Now uses a much cleaner method of detecting if running from ef0:/ on a PSP Go.
  • disc0:/ (UMD) can now be accessed in non GO models as an additional drive in the menu bar.
  • Implement error dialog for failures with file/directory functions and .zip archives.
  • Only delete destination if it exists in copy mode. (overwriting)

Download: https://github.com/joel16/CMFileManager-PSP/releases/tag/v1.10
 
  • Like
Reactions: Malckyor and cvskid

Joel16

Ils ne passeront pas
OP
Member
Joined
May 8, 2011
Messages
902
Trophies
1
Age
24
Location
Doesn't concern you.
XP
4,438
Country
United States
New release v2.0.0 is up. To avoid any issues its best to delete your CMFileManagerPSP folder before replacing it with this one. Anyways:

Change-log:

  • Built under latest PSP toolchain using GCC 8.2, with many optimizations. (Switched to the -Os optimization flag since the PSP has a small cache.)
  • No longer relies on outdated libpng/libjpeg versions or oslib. Now uses a modified version of g2dlib which uses stb_image to load textures and make use of scegu directly! This is a major change, since it gets rid of a bunch of needless functions from oslib, and uses a library purely written for 2d graphics.
  • Added support for displaying .BMP images. (Remember no support for any images over 512 x 512!)
  • Screenshots now use .BMP format.
  • Improved copy file mechanism - should be a little bit more faster and the animation should be more fluid than previous releases.
  • Now uses updated Roboto font.
  • Add support for accessing both ef0:/ and ms0:/ on PSP Go (Due to this mechanism the boot time is a little longer than previous releases)
  • Add dialog for extracting .zip archives.
  • Properly use transparency when accessing certain elements like dialog boxes, menu bar etc.

IX7Jfz9.png


Q3iDhxj.png


OMOSi9W.png


zUV3gQd.png

Download: https://github.com/joel16/CMFileManager-PSP/releases/tag/v2.00
 

Joel16

Ils ne passeront pas
OP
Member
Joined
May 8, 2011
Messages
902
Trophies
1
Age
24
Location
Doesn't concern you.
XP
4,438
Country
United States
New release v2.1.0 is up!

Change-log:

  • Fixed error 80010002 due to hardcoded app path if game categories plugin is enabled.
  • Fixed incorrect clock frequency during boot.
  • Properly use delta time for menu bar animation.
  • Check if services are initialized properly during boot, other wise exit.
  • Properly use the correct app path when logging.
  • Added the following various functionalities for image viewer:
    • Automatically scale images if height > 272. (Note only images less than 512 x 512 can be viewed).
    • Added support for viewing .TGA, .PGM and .PPM images.
    • Added zooming in/out (D-PAD up/D-PAD down)
    • Added a help menu to view image functionalities (Select when viewing an image)
    • Allow positioning image after it's zoomed in. (Analog stick)
    • Added ability to flip vertically (Triangle button) or flip horizontally (Square button).
  • Fix incorrect CWD path after .zip extraction.
  • Initial 16-Bit 44.1 KHz audio playback support (no metadata, seeking, shuffle or repeat functionality implemented):
    • Added support for playing FLAC, OGG, WAV and XM files. (Note some formats already supported by the XMB aren't included, and I probably won't).
    • Display progress of audio samples.
    • Display duration and current time.
  • Log data if config/last visited directory fails to be properly read during boot.
  • Many consistency changes and minor clean ups.

ATq59WN.jpg


zBfotSJ.jpg

Download: https://github.com/joel16/CMFileManager-PSP/releases
 

Joel16

Ils ne passeront pas
OP
Member
Joined
May 8, 2011
Messages
902
Trophies
1
Age
24
Location
Doesn't concern you.
XP
4,438
Country
United States
Minor bug fix version v2.20 is up

Change-log:
  • Fixed crash on PS VITA caused by v2.10.
  • Add MP3 playback support (ID3v1 and ID3v2) using mpg123 v1.25.10.
  • Use audio_driver.prx (custom kernel plugin to enable sampling frequencies at 48k Hz)
  • XM player uses 48k Hz now.
  • Use VFPU for handling texture rotation.
  • glib2D now uses stbi_image's standard load file for textures instead of loading via sceIo* wrappers and then decoding from memory using stbi_image.
  • Removed unused code, and made minor consistency/optimization changes.
3w9SZxi.png

Download: https://github.com/joel16/CMFileManager-PSP/releases/tag/v2.20
 
General chit-chat
Help Users
    Veho @ Veho: Easy there, Mrs Bobbitt.