IRC logs for #opendune on OFTC at 2010-02-09
⏴ go to previous day
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:58 <TrueBrain> that makes me happy :)
00:04:18 <SmatZ> oh, gcc-3.3.6 complains about -Wextra
00:04:30 <SmatZ> and generally fails badly :-p
00:04:56 <SmatZ> src/global.h:28: warning: ISO C does not allow extra `;' outside of a function
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:27 <TrueBrain> should be 'fixable'
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:07:23 <glx> hmm maybe mingw can fail too then ;)
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: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:10:11 <glx> you used toc to remove stuff from 01F7 ?
00:10:24 <SmatZ> + if (mode > 2) { File_Close(index); return 0; }
00:10:26 <TrueBrain> depends on what you mean
00:10:45 <glx> I mean run decompiler to remove uncalled functions
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: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:57 <SmatZ> my fingers are typing so automatically
00:15:03 <glx> well it runs under JIT too ;)
00:15:04 <TrueBrain> it takes getting used to :)
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:45 <TrueBrain> I dont get any image under valgrind :p
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:14 <TrueBrain> either way ... any more comments on patch?
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: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: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:46 <SmatZ> yeah, I miss sounds a lot
00:29:04 <TrueBrain> he said it will be done before 0.3 :)
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: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: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: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: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: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:38:22 <TrueBrain> to all, a good night :)
00:38:39 <SmatZ> good night, TrueBrain :)
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
12:33:43 <TrueBrain> what to work on next ... WSA loading ... more File shit .. random other function .. hm
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: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
16:24:13 <TrueBrain> more work Xaroth|Work :p
16:24:33 * TrueBrain points to newest member
16:24:58 <Xaroth|Work> originates from the us
16:25:09 <Xaroth|Work> so not sure what to do with that one yet
continue to next day ⏵