IRC logs for #opendune on OFTC at 2010-02-09
            
00:00:06 <glx> intro runs
00:00:09 <glx> (MSVC)
00:00:18 <TrueBrain> please also try removing hall of fame
00:00:22 <TrueBrain> and loading a game and loading another game
00:00:31 <TrueBrain> and if settings remain over 2 runs
00:01:51 <glx> everything works
00:01:56 <TrueBrain> good :)
00:01:58 <TrueBrain> that makes me happy :)
00:02:07 <SmatZ> HappyBrain
00:04:01 <glx> mingw is ok too
00:04:18 <SmatZ> oh, gcc-3.3.6 complains about -Wextra
00:04:30 <SmatZ> and generally fails badly :-p
00:04:35 <TrueBrain> really?
00:04:36 <TrueBrain> it is C89
00:04:56 <SmatZ> src/global.h:28: warning: ISO C does not allow extra `;' outside of a function
00:05:06 <SmatZ> (about zillion times)
00:05:11 <SmatZ> at different places
00:05:16 <TrueBrain> assert_compile
00:05:17 <SmatZ> objs/src/load.o:/mnt/svn/opendune-trunk/src/load.c:175: more undefined references to `__builtin_bswap32' follow
00:05:20 <SmatZ> also this
00:05:27 <TrueBrain> should be 'fixable'
00:05:50 <glx> somewhere in os/
00:06:24 <TrueBrain> if you like, you can make us patches? :)
00:06:35 <SmatZ> gcc 3.4.6 fails only on builtin_bswap
00:06:37 <SmatZ> ok :)
00:06:52 <glx> src/os/endian.h :)
00:07:23 <glx> hmm maybe mingw can fail too then ;)
00:07:57 <glx> but I have 4.4.0
00:08:07 <glx> older mingw are 3.4.5
00:08:20 <SmatZ> first gcc to know __builtin_bswap seems to be 4.3
00:08:21 <TrueBrain> new patch, added all the doxygen comments
00:08:25 <SmatZ> 4.2.4 fails
00:08:34 <TrueBrain> 4.3.4 here .. so possible
00:08:46 <TrueBrain> I believe there were other methods for GCC before that
00:09:06 <SmatZ> TrueBrain: are those changes in projects/opendune.vcproj intended?
00:09:31 <TrueBrain> yup
00:09:41 <SmatZ> ok
00:10:11 <glx> you used toc to remove stuff from 01F7 ?
00:10:18 <TrueBrain> no
00:10:23 <TrueBrain> well, yes
00:10:24 <SmatZ> + if (mode > 2) { File_Close(index); return 0; }
00:10:26 <TrueBrain> depends on what you mean
00:10:26 * SmatZ likes
00:10:45 <glx> I mean run decompiler to remove uncalled functions
00:10:50 <TrueBrain> yes
00:11:03 <glx> nice feature ;)
00:11:12 <TrueBrain> SmatZ: I am very simple with wrong access :p
00:11:25 <TrueBrain> glx: that was where the commits were about, and the patch is required for :p
00:12:58 <glx> revert /decompiled/cs__2756.c
00:13:14 <glx> (stupid toc ;) )
00:13:19 <TrueBrain> don't blame toc :)
00:13:28 <glx> stupid jit then
00:13:36 <TrueBrain> k .. after this I have a few more File related things to fix ..
00:14:21 <SmatZ> oh, great, openttd runs under valgrind :)
00:14:26 <SmatZ> twice emulated code 8-)
00:14:30 <TrueBrain> openttd?
00:14:40 <SmatZ> oh
00:14:43 <SmatZ> no :(
00:14:46 <SmatZ> opendune :)
00:14:57 <SmatZ> my fingers are typing so automatically
00:15:00 <TrueBrain> hehe :)
00:15:03 <glx> well it runs under JIT too ;)
00:15:04 <TrueBrain> it takes getting used to :)
00:15:06 <TrueBrain> I know ;)
00:15:10 <SmatZ> :)
00:15:27 <TrueBrain> next on agenda are the ReadBlock and ReadWholeFile
00:15:32 <TrueBrain> which open the file, read a blob, close the file
00:15:45 <TrueBrain> nice functions, but ... needs to be converted to be slightly more efficient
00:16:00 <TrueBrain> I wonder how important those ignoreInput++ really are
00:16:20 <SmatZ> :)
00:16:45 <TrueBrain> I dont get any image under valgrind :p
00:16:58 <SmatZ> you have to wait :)
00:17:05 <TrueBrain> got sick of waiting after 30s :p
00:17:06 <SmatZ> or reduce timer frequency :)
00:17:07 <glx> sorting in decompiled.h is still not very natural
00:17:12 <SmatZ> 2.6GHz here
00:17:14 <TrueBrain> either way ... any more comments on patch?
00:17:20 <SmatZ> no[e
00:17:21 <SmatZ> p
00:17:38 <TrueBrain> _File_Open is totally unreadable, because all of the indexes
00:17:44 <TrueBrain> but .. it is the best I could do for now :)
00:18:00 <TrueBrain> it needs 2 additions: malloc and load files there, and use opendir to scan for pak files :)
00:21:49 <glx> 172 index = (uint8)emu_get_memory16(emu_ss, emu_sp, 0x0);
00:22:10 <glx> many spaces around the =
00:24:31 <TrueBrain> ghehe, too much c/p :)
00:27:03 <TrueBrain> stupid glx introduced new functions, now we are back at 10% C-ified, 30% named :(
00:27:15 <TrueBrain> (which is even overstated, as the total doesn't take into account the new functions)
00:27:19 <SmatZ> <3 glx
00:27:47 <glx> worse, I introduced new functions not used by default ;)
00:28:08 <SmatZ> by default? in some "dev" mode?
00:28:20 <TrueBrain> he is working on getting audio to work
00:28:30 <TrueBrain> I made him disable it by default, as it not yet works :)
00:28:35 <SmatZ> :)
00:28:46 <SmatZ> yeah, I miss sounds a lot
00:28:49 <SmatZ> music too
00:29:04 <TrueBrain> he said it will be done before 0.3 :)
00:29:17 <glx> what's the deadline ?
00:29:21 <SmatZ> :)
00:29:22 <TrueBrain> 3 months :)
00:29:29 <glx> possible then :)
00:29:38 <TrueBrain> ;) :)
00:29:44 <TrueBrain> first let me know when you are done with my patch :)
00:30:25 <glx> can I say File_Exists() is stupid ?
00:30:33 <TrueBrain> yup
00:30:41 <TrueBrain> at least it is cross-platform :)
00:30:52 <glx> but I guess it's the only way for PAK
00:30:59 <TrueBrain> I first confused Create for IsWritable ;)
00:31:06 <TrueBrain> the easiest way, yes
00:31:14 <TrueBrain> I want to improve all this, by making a catalog, and use that
00:31:20 <TrueBrain> then Exists also becomes better and faster
00:31:25 <TrueBrain> using access() and a lookup table
00:31:34 <TrueBrain> but for now, this will do :)
00:31:39 <glx> yup
00:32:06 <TrueBrain> I guess if we want this nice, we have to rewrite our current fopen to use File_Open, and add a parameter: Allow-in-PAK
00:32:08 <TrueBrain> or what ever :)
00:32:42 <TrueBrain> whoho, 13% and 32% again
00:33:12 <TrueBrain> ps, glx, decompiled.h is sorted on ip
00:33:16 <SmatZ> what are those 55% remaining?
00:33:20 <TrueBrain> so order is not _that_ weird
00:33:28 <TrueBrain> SmatZ: http://devs.opendune.org/~truebrain/worklist/
00:33:32 <glx> I noticed that yes
00:33:41 <SmatZ> oh :)
00:33:54 <glx> but sorting on CS would make more sense
00:34:01 <TrueBrain> glx: yup, but harder ;)
00:34:16 <TrueBrain> I think File_Open should be extended with something like: USER_DIR, DATA_DIR
00:34:28 <TrueBrain> where first means: no inside PAK (and later in ~/.opendune I guess)
00:34:42 <TrueBrain> where latter means: can be inside PAK, can be in ~/.opendune/data, can be in ...)
00:36:22 <glx> patch looks good (and for once you ran project/generate ;) )
00:36:38 <TrueBrain> ;) :) :)
00:37:57 <DorpsGek> SVN: truebrain (r878) -Add: C-ified File_Open() and most of its friends. It simplifies the original code a lot, and with that it lost a few features. Those can be added later, in a more contructive form (although most users won't ever notice they are gone, as XMS/EMS is inactive anyway)
00:37:59 <TrueBrain> there we are
00:38:09 <TrueBrain> 174 functions done
00:38:10 <TrueBrain> WHOHO
00:38:17 <TrueBrain> glx: thank you
00:38:19 <TrueBrain> SmatZ: thank you
00:38:22 <TrueBrain> to all, a good night :)
00:38:36 <SmatZ> oh
00:38:39 <SmatZ> good night, TrueBrain :)
04:46:54 *** glx has quit IRC
08:20:15 <Xaroth|Work> morning
10:05:46 <TrueBrain> morning
10:41:11 <TrueBrain> I really fucked up an application of mine :) It can only work if all files are in a certain location .. but worse .. I can't run the execuable from any other directoy :p
10:41:16 <TrueBrain> sucky suck ... bad written :)
10:43:11 <TrueBrain> ../main: error while loading shared libraries: ../library/network/base/address.so: cannot open shared object file: No such file or directory
10:45:01 <Xaroth|Work> auch
12:33:43 <TrueBrain> what to work on next ... WSA loading ... more File shit .. random other function .. hm
12:41:57 <TrueBrain> @calc 0x140
12:41:57 <DorpsGek> TrueBrain: 320
12:42:34 <TrueBrain> @calc 0xCB
12:42:34 <DorpsGek> TrueBrain: 203
12:42:40 <TrueBrain> @calc 0xC8
12:42:40 <DorpsGek> TrueBrain: 200
12:42:43 <TrueBrain> ah :)
12:42:57 <TrueBrain> SmatZ: got OpenDUNE to work with gcc 3 and 4.1?
12:51:55 <Xaroth|Work> TrueBrain: did you see MrFlibble's remark about slowness btw?
12:52:09 <TrueBrain> yeah, and decided to ignore it for now
12:52:12 <Xaroth|Work> k
12:52:20 <Xaroth|Work> then we're at least on the same line :P
13:00:59 <TrueBrain> but have you read our (my and glx) requests about svn.opendune.org?
13:01:18 <Xaroth|Work> er, no, I went to bed at 2230 last night
13:14:45 *** glx has joined #openDune
13:14:45 *** ChanServ sets mode: +o glx
13:15:00 <TrueBrain> howdie glx
13:15:01 <Xaroth|Work> o/
13:15:02 <glx> hello
15:19:36 <Xaroth|Work> http://forum.opendune.org/memberlist.php?mode=viewprofile&u=78 << the fact his 'url' is a known phishing site sais enough, tbqfh
15:20:50 <Xaroth|Work> aaand deleted
16:24:13 <TrueBrain> more work Xaroth|Work :p
16:24:23 <Xaroth|Work> eh?
16:24:33 * TrueBrain points to newest member
16:24:36 <Xaroth|Work> yeh
16:24:58 <Xaroth|Work> originates from the us
16:25:09 <Xaroth|Work> so not sure what to do with that one yet
16:28:44 <TrueBrain> no posts yet
16:28:45 <TrueBrain> comes back
16:28:48 <TrueBrain> so .. let it be
18:27:45 <Xaroth> rawr
18:28:06 <TrueBrain> ieuw