--- Log opened Fri Jul 22 02:25:22 2011 02:25 -!- posixninja [~textual@h95.145.90.75.dynamic.ip.windstream.net] has joined #freemyipod 02:47 -!- [7] [~TheSeven@rockbox/developer/TheSeven] has quit [Disconnected by services] 02:47 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 03:32 -!- [Saint] [~st.lasciv@124-197-58-10.callplus.net.nz] has quit [Quit: Imagination is for turbo-nerds who can't handle how kick-butt reality is. I'm a kick-butt reality master! I would rather die, than be imaginative. I mean that.] 03:34 -!- [Saint] [~st.lasciv@124-197-58-10.callplus.net.nz] has joined #freemyipod 04:00 -!- [Saint] [~st.lasciv@124-197-58-10.callplus.net.nz] has quit [Quit: Imagination is for turbo-nerds who can't handle how kick-butt reality is. I'm a kick-butt reality master! I would rather die, than be imaginative. I mean that.] 04:03 -!- [Saint] [~Saint]@124-197-58-10.callplus.net.nz] has joined #freemyipod 04:28 -!- posixninja [~textual@h95.145.90.75.dynamic.ip.windstream.net] has quit [Quit: Computer has gone to sleep.] 07:58 -!- n1s [~quassel@rockbox/developer/n1s] has joined #freemyipod 08:59 -!- user890104 [~Venci@83.228.31.135] has quit [Remote host closed the connection] 09:00 -!- user890104 [~Venci@83.228.31.135] has joined #freemyipod 09:24 -!- [Saint] [~Saint]@124-197-58-10.callplus.net.nz] has quit [Read error: Connection reset by peer] 09:26 -!- [Saint] [~st.lasciv@124-197-58-10.callplus.net.nz] has joined #freemyipod 09:41 * user890104 wonders what "diskmodehotstuff100" in emcore installer's source means 10:07 -!- [Saint] [~st.lasciv@124-197-58-10.callplus.net.nz] has quit [Quit: Imagination is for turbo-nerds who can't handle how kick-butt reality is. I'm a kick-butt reality master! I would rather die, than be imaginative. I mean that.] 10:09 -!- [Saint] [~Saint]@124-197-58-10.callplus.net.nz] has joined #freemyipod 10:35 < TheSeven> that's the magic string that makes the apple bootloader boot diskmode on the next reboot 10:37 < user890104> thanks 10:40 < user890104> i've made changes to my serial number patch, it can handle serial numbers up to 496 chars, so it should be compatible with any device that gets an emcore port: http://pastebin.com/raw.php?i=mWQ7ST4a 10:45 < user890104> and i'm trying to implement some kind of file browser using libui right now 10:45 < user890104> i managed to make the list using a dynamic allocations after some trial and error 10:51 < TheSeven> yeah, you basically need to preallocate the list memory for the maximum possible number of elements, or first count all the files and then allocate it once you know the size 10:52 -!- user890104 [~Venci@83.228.31.135] has quit [Ping timeout: 240 seconds] 12:36 -!- posixninja [~textual@h95.145.90.75.dynamic.ip.windstream.net] has joined #freemyipod 13:31 -!- [Saint] [~Saint]@124-197-58-10.callplus.net.nz] has quit [Read error: Connection reset by peer] 13:33 -!- [Saint] [~st.lasciv@124-197-58-10.callplus.net.nz] has joined #freemyipod 14:02 -!- user890104 [~Venci@213.226.63.154] has joined #freemyipod 14:12 < user890104> TheSeven: any suggestions how to name the folder where user-uploaded apps would be stored? for example Apps or Applications (as on OSX :) ) ? 14:13 * TheSeven suggests "/.apps" 14:13 < TheSeven> [12:51:56] yeah, you basically need to preallocate the list memory for the maximum possible number of elements, or first count all the files and then allocate it once you know the size 14:13 < TheSeven> the action and renderer params can be allocated on the fly, but it's kinda hard to keep track of them and not leak anything 14:14 < TheSeven> it might be easier to use one big allocation that contains everything, that also reduces fragmentation and overhead (8 bytes per allocation) 14:14 < TheSeven> it needs a bigger contiguous chunk of free memory of course 14:17 < user890104> here's what i've done so far: http://pastebin.com/Y3D3YhaN 14:17 < user890104> it just makes 20 menu items 14:18 < user890104> (and it's a bit ugly) 14:25 < TheSeven> hm, is there are particular reason why you copy the chooser definition around? 14:25 < TheSeven> a* 14:25 < TheSeven> seems like you could just use the "master copy" directly 14:26 < TheSeven> also, this line looks a bit strange to me: 14:26 < TheSeven> if (!lib) lib = get_library(identifier, version, LIBSOURCE_RAM_ALLOCED, (void *) 0x08000C68); 14:26 < user890104> this is because i tried to run libui on a nano4g :) 14:27 < TheSeven> there's an easier way to do this 14:27 < TheSeven> just launch the lib as if it was an app, and then launch the app using it 14:28 < TheSeven> as the lib is already in memory in this case, the source definition won't be used at all, so it's fine if it points to the bootflash 14:34 < user890104> is there a limit of the number of files in a directory on fat32? 14:37 < TheSeven> i don't think so 14:37 < user890104> i copy the chooser_info struct in a new buffer that has enough space to fit the required number of items 14:37 < user890104> buecause i don't know how to "resize" the array once allocated 14:37 < user890104> because* 14:37 < TheSeven> oh, so this means that memcpy(chooser, &toolchooser, sizeof(struct chooser_info) + itemlimit * sizeof(struct chooser_item)); is copying some garbage as wellß 14:37 < TheSeven> ? 14:38 < user890104> well ... 14:38 < user890104> i zero out every item below 14:38 < user890104> i just don't know a better way to do this 14:39 < TheSeven> just use sizeof(toolchooser) as the size for memcpy? 14:40 < user890104> is there ay difference between sizeof something and sizeof(something)? 14:40 < TheSeven> i don't think so, but the first one is syntactically weird 15:06 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has quit [Disconnected by services] 15:06 -!- [7] [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 15:17 < user890104> emcore frees up the memory allocated by an app but not explictly freed after the app exits, right? 15:25 < [7]> yeah, but you shouldn't rely on that 15:26 < user890104> yeah i know, just asking 15:26 < user890104> is this the proper way to list a directory? http://pastebin.com/Lim0YjHW 15:26 < user890104> i mean do i need 2 pointers? 15:29 -!- [7] [~TheSeven@rockbox/developer/TheSeven] has quit [Disconnected by services] 15:30 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 15:57 -!- ceipha [~ceipha@cm-84.215.1.105.getinternet.no] has joined #freemyipod 16:10 -!- [Saint] [~st.lasciv@124-197-58-10.callplus.net.nz] has quit [Quit: Imagination is for turbo-nerds who can't handle how kick-butt reality is. I'm a kick-butt reality master! I would rather die, than be imaginative. I mean that.] 16:12 -!- [Saint] [~Saint]@124-197-58-10.callplus.net.nz] has joined #freemyipod 16:35 -!- user890104 [~Venci@213.226.63.154] has quit [] 16:52 -!- user890104 [~Venci@213.226.63.153] has joined #freemyipod 16:58 < user890104> TheSeven: so with the structure you proposed, the /.apps folder will look like: 16:58 < user890104> |- app1.emcoreapp 16:58 < user890104> |- app1 16:58 < user890104> |- app2.emcoreapp 16:58 < user890104> |- app2 16:59 < user890104> (app1 and app2 being folders that hold the app's settings) 17:24 < TheSeven> hm, i'm wondering if the emcoreapp files should be inside the app folder as well 17:24 < TheSeven> (in the same place as their resources etc.) 17:24 < TheSeven> we'll probably need a way to determine where an app was launched from, so that it can find its resources, even if it installed in a different location 17:26 < user890104> installed in means of what? 17:26 < user890104> i assume that an app would look for its settings in /.apps// no matter how/where it is located 17:27 < user890104> that's why i asked you about the location of .emcoreapps 17:27 < Farthen> that would be my opinion, too 17:29 < user890104> so the applications folder could be something that's clearly visible to the user 17:29 < user890104> because he/she is supposed to modify manually its contents 17:29 < user890104> by uploading/removing apps.. so i proposed Apps or Applications 17:30 < user890104> what do you think? 17:40 -!- n1s [~quassel@rockbox/developer/n1s] has quit [Remote host closed the connection] 17:56 -!- ceipha [~ceipha@cm-84.215.1.105.getinternet.no] has quit [Ping timeout: 255 seconds] 17:59 -!- ceipha [~ceipha@cm-84.215.1.105.getinternet.no] has joined #freemyipod 18:05 -!- ceipha [~ceipha@cm-84.215.1.105.getinternet.no] has quit [Ping timeout: 260 seconds] 18:55 -!- [Saint] [~Saint]@124-197-58-10.callplus.net.nz] has quit [Quit: Quit...] 19:05 -!- [Saint] [~st.lasciv@124-197-58-10.callplus.net.nz] has joined #freemyipod 23:15 -!- posixninja [~textual@h95.145.90.75.dynamic.ip.windstream.net] has quit [Quit: Computer has gone to sleep.] --- Log closed Sat Jul 23 00:38:03 2011