Support and General Use > Plugins/Viewers

Rockboy Color

<< < (3/3)

LambdaCalculus:

--- Quote from: Strife89 on March 02, 2008, 10:25:46 PM ---Maybe you guys should look at Visual Boy Advance. (Just a thought; don't know if it's in C or even GLPed. :-[ )

--- End quote ---

VisualBoy Advance is GPL'ed.

http://en.wikipedia.org/wiki/VisualBoy_Advance

Quinjamincy:
I found all the special pallettes like metroid, but I didn't see on for Pokemon.

LambdaCalculus:
So make one. :)

Quinjamincy:
How can I do that?

cool_walking_:
Set up a development environment: http://www.rockbox.org/twiki/bin/view/Main/DevelopmentGuide

Then look in /rockbox/apps/plugins/rockboy/.
In palette-presets.h, add a new block for your palette (colour codes look to be in the format 0xBBGGRR), and increment this count:

--- Quote ---int palettes [17][4][4] = {
--- End quote ---

In menu.c, add a line for your new palette in here (in the same order as palette-presets.h):

--- Code: ---    static const struct opt_items palette[]= {
        { "Brown (Default)", -1 },
        { "Gray", -1 },
        { "Light Gray", -1 },
        { "Multi-Color 1", -1 },
        { "Multi-Color 2", -1 },
        { "Adventure Island", -1 },
        { "Adventure Island 2", -1 },
        { "Balloon Kid", -1 },
        { "Batman", -1 },
        { "Batman: Return of Joker", -1 },
        { "Bionic Commando", -1 },
        { "Castlvania Adventure", -1 },
        { "Donkey Kong Land", -1 },
        { "Dr. Mario", -1 },
        { "Kirby", -1 },
        { "Metroid", -1 },
        { "Zelda", -1 },
    };
--- End code ---
and finally, increment this number to match:
--- Quote ---rb->set_option(items[6].desc, &options.pal, INT, palette, 17, NULL );
--- End quote ---

Navigation

[0] Message Index

[*] Previous page

Go to full version