Difference between revisions of "Categorii"

From WiiBrew
Jump to navigation Jump to search
m (Added HBB)
Line 9: Line 9:
 
| discussion  = Talk:Categorii
 
| discussion  = Talk:Categorii
 
| peripherals = {{FrontSD}} {{FrontSDHC}} {{USBMSD}}
 
| peripherals = {{FrontSD}} {{FrontSDHC}} {{USBMSD}}
 +
| hbb        = yes
 
}}
 
}}
 
Do you have too many apps listed in your HBC? Do you rarely play apps starting with "W" anymore because it takes too long to scroll all the way down to there? Have you ever installed an app but never played it because it got lost in the clutter? Your misery ends now. Introducing, [[Categorii]]!
 
Do you have too many apps listed in your HBC? Do you rarely play apps starting with "W" anymore because it takes too long to scroll all the way down to there? Have you ever installed an app but never played it because it got lost in the clutter? Your misery ends now. Introducing, [[Categorii]]!

Revision as of 12:52, 15 September 2009

Categorii
Cateogrii.gif
General
Author(s)Yossi
TypeUtility
Version1.0
Links
Download
Discussion
[Media:Categorii_v1.0_source.rar Source]
Downloadable via the Homebrew Browser
Peripherals
Loads files from the Front SD slot Loads files from SDHC cards in the Front SD slot USB mass storage device

Do you have too many apps listed in your HBC? Do you rarely play apps starting with "W" anymore because it takes too long to scroll all the way down to there? Have you ever installed an app but never played it because it got lost in the clutter? Your misery ends now. Introducing, Categorii!

Wut?

This app, when used effectively, will give the impression that the HBC has categories. How? By renaming your apps/ directory.
It will appear just like a regular app. When you run it, it will do it's thing with no input from you, and exit. When HBC comes up again, the apps in the destination category show up.

Setup

  • Open up your SD card and create a directory in the root for each category you want to have (apps_utitlites/, apps_games/, etc.).
  • Sort your homebrew from the apps/ directory to the correct category directories.
  • Put a copy of Categorii into each category for each link out of that category (more on this later). Be sure to give each one a unique directory name (categorii1, categorii2, etc. or link_utilities, link_games, whatever).
  • For each link, edit some files.
Required: Edit config.xml
Highly Recommended: Edit meta.xml
Recommended: Create an icon.png
  • Don't forget to rename one of the categories back to apps/ so that HBC can find it.

The included config.xml and meta.xml are preconfigured for a link from apps_games/ to apps_utilites/. You will want to change these as needed for each link. The files are quite straight-forward, and if you can't figure them out you probably should not be using this.
<location from> is what to rename the current apps/ to when we leave, and <location to> is where we are going to.
You may want to make the <name> of each link start with a space so the HBC lists it first.
A simple icon.png with the name of the destination would be a nice finishing touch. (Elisherer has some very nice ones on the talk page).

Use

There are several different ways you could set this up.

  • You could have each category link to the next category in a big loop (games->utilities->demos etc. back around to games) (linked list).
  • You could have the same thing but have a link back every time as well (games->utilities->demos etc. while at the same time demos->utilities->games etc.) (double linked list).
  • You could have one category (lets call it apps_root) that consists only of links to all the other categories, and all the other categories would have a link back to apps_root (tree).
  • You could have every category linked to every other category (web).
  • Or you could have random links to wherever, and end up stuck in some category you forgot to link out of, or out of some category you forgot to link in to.

HBB

As it stands now, this will not work so well with the homebrew browser. Perhaps if a standard naming convention for categories is developed (apps_[hbb category], maybe?) teknecal would add support for it to the browser.

Bugs

These will be addressed when I get my computer back together.

  • If the destination directory does not exists (or is entered in config.xml wrong) but the origin directory is found, you can end up in a limbo state with no directory named apps/ at all.
  • There is a usleep(500000); at the end of the program. It should be reduced or removed.

Libs

I used libmxml and Libfat for this. I totally would have used libELM, but I wasn't able to get it to work. SquidMan blames my dkp setup. I blame his ISP :P
I also feel the need to complain about libmxml only being able to read attributes but not element values. What's up with that Beardface?

Disclaimer

All the usual blah blah blah. If your filesystem on the card gets messed up, this is NOT my fault. It's Libfat's fault.