【MP】文件夹切换
; * xFolder *
; Jump to custom folders
; (c) benj9, x85 (maybe x75)
; (!) Masterpatch. Uses FreeRam + 0x7C
#pragma enable old_equal_ff
7A100: 78466F6C64657231302C62656E6A3900
7A110: 3FB500F044F90ED02569002D0BD00138
7A120: 09D4E978884206DC012121703D210022
7A130: 231C00F092F83FBDFEB589B020780990
7A140: EA780B92002A7AD01420013250430790
7A150: 2A79920892002A710A92142151434018
7A160: 1030012192DF002869D0041C10340025
7A170: 00260998042808D1F5A7E8003F1800F0
7A180: 63F80135032DF7DD20E0FF2D01D1F8A7
7A190: 12E00A990A1C7243079880180019071C
7A1A0: 2A1C00F08DF90999022902D0002805D0
7A1B0: 02E0002800D1DFA700F046F801350B98
7A1C0: 8542E2DBFF2D01DCFF25DEE70C9D0695
7A1D0: 103C05940D9808300490002709980228
7A1E0: 08D004DB042807DBE1A003900AE00227
7A1F0: D7A202E0D8A200E0D9A2DBA1C5A3201C
7A200: 16DF03940297784651300190CDA20421
7A210: 08A800F04EF905D008A81BDF02D008A8
7A220: AFDF01380090311C0998042800D10321
7A230: 00230022201C1030C7DF2B0200E00020
7A240: 0C99486009B0FEBD142070430019B049
7A250: 05604760816001367047F0B58FB01C1C
7A260: 071C0E1C101C15DF0020606025693D2E
7A270: 28D12678042E01D1781C02E0FF2F02D1
7A280: 0420207032E0032E2AD00E9700A8391C
7A290: 00F0F9F8ABA100A800F0FAF828794000
7A2A0: 08300C90A4DF3A1C071C297900F018F9
7A2B0: 022E0AD0002803D00020391C00F0C4F8
7A2C0: 381C15DF0020207012E0052020700A94
7A2D0: 0B978DA000A90022C7DF0701A06007E0
7A2E0: 391C0020009000A800F0D9F8FFF724FF
7A2F0: 0FB00120F0BD40B5061C306BA4DF7063
7A300: 021C331CF16A032000F09EF8B16AC860
7A310: 40BDF0B5BFB0061C0F1CB88882498842
7A320: 38881CD17D49884219D1F06A15DF706B
7A330: C7DF2301002807D0021C706B00A9A3DF
7A340: 00A8B16B00F0ABF8B46AA068F568A842
7A350: 01D0C7DFFC01281CC7DFFC01A0603FB0
7A360: F0BD70B5061C706B15DFB46AE068C7DF
7A370: FC01E060022020700C2014DF02D10020
7A380: 207004E0846003217A4605324DDF70BD
7A390: 30B58468256915DFFFF7CEFE30BD0FB5
7A3A0: C7DFE480051CEC6F002C09D101201421
7A3B0: 92DF041C04D0EC6778461730C7DF2B01
7A3C0: 0FBD10B5FFF7EBFF02D06E48C4DF2061
7A3D0: 10BD70B5FFF7E3FF34D02569002D31D0
7A3E0: 6E78B0422ED1FF229432914228D06078
7A3F0: 012827D0AE780132914205D001329142
7A400: 20D1002E1AD001E0012E1BD020780028
7A410: 18D1A068002801D0C7DFFC0160680028
7A420: 02D00121C7DF3D010120207000206060
7A430: E060A060FFF780FE00D12070012000E0
7A440: 00206070002070BDF0B59AB0041C0D1C
7A450: 161C1F1C00A8682158DF281CC7DF2301
7A460: 002800D0262001900295009401200890
7A470: 002C02D003950B960E9700A8C7DF2E02
7A480: 1AB00028F0BD00B54A1C2CA116DF00BD
7A490: 08B50B1C1FA20421C7DF2D0208BD18B5
7A4A0: 041C00A8FFF7EFFF00A9201CFFF7F0FF
7A4B0: 18BD08B5009217A30422C7DF2C0208BD
7A4C0: 38B5041C0D1C00A8111CFFF7DCFF00AA
7A4D0: 291C201CFFF7EDFF01D0201C1BDF38BD
7A4E0: 30B5BFB0041C0D1C00A8FFF7E9FF02D1
7A4F0: 2168088005E02A1C00A9201CC7DF6C01
7A500: 01203FB030BD000013A307A0F7A207A0
7A510: FFFFFF7F78466F6C6465720009420000
7A520: 63A307A03C0000000064000030A507A0
7A530: 020000003C667265653E000025303264
7A540: 000000005072657653656C6563740000
7A550: 4A756D7020746F004368616E67650000
7A560: 44656C65746500002573202573000000
7A570: 5B537769746368206D6F64655D000000
7A580: E4D3C2B10DCD0000BE01000000000000,"\
\
{p=xFolder ver=1 cp=benj9 id=CD0D pf=n}","\
{c key lsk=1 rsk=4 green=0xB center=0x1A `navi up`=0x3B `navi dn`=0x3C","\
`navi left`=0x3D `navi right`=0x3E ljoker=0x11 rjoker`=0x1D `lside up`=0x14","\
`lside dn`=0x15 `rside up`=0xD `rside dn`=0xE}","\
{1 o key c=key v=0x1A}{2 cb longpress v=1}{3 b `max folders` v=10}","\
{4 b `folder string maxlen` v=64}{8 i `menu icon` v=172}",00
#pragma disable old_equal_ff
/*** Usage *************
Configure hotkey in master midlet. By pressing hotkey, you get in radiobutton list labeled
"Jump to xFolder", where you can choose folders to jump to. The selection is sticky, so next
time you enter menu by hotkey, selection is at same folder as previous time.
At first start, list is empty, there is only one entry named [Switch mode]. Click, you see a
menu with entries
> Jump to
> Change
> Delete
"Jump to" is the normal jump mode you enter by pressing the hotkey, "Change" and "Delete"
are for maintaining the list of folders. In all 3 modes you have the "[Switch mode]" entry
to switch to another mode.
By clicking on "Change", you get in a menu where you see all available slots for folders,
first time all labelled "<free>". Click at one of them, you get in a explorer selection where
you can navigate through file system. Choose one folder. You get back in the "Change" menu
and you can define more folders.
In "Delete" menu you can click on a folder to delete this entry.
In "Jump to" and "Delete" menu you see only the defined entries, in "Change" menu you see all entries.
Change the number of available entries in master midlet.
If you want to change the order of the folder entries, edit "xFolder"... entries in 1:/default/setup.pd
Advanced: you can jump to the defined folders by other patches by calling func(int foldernum), where address
of func is A007A111", and foldernum is 1 to n for first folder (in you see all slots in change menu"), and
n is last folder available.
In case of problems having enabled pin input at boot and using xtask, use patch "Master 1.4 & Elf compatibility"
*************/