You were right :
uint gamesCount = 0;
should be a global var and commented out in mergeFile function, and simply
declared outside of this function:
====================================
uint gamesCount = 0;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// mergeFile
inline uint
mergeFile(Index * targetIndex, ..................................
=====================================
I just made a single test and it seems to work.
Pascal
2008/6/20 Laurent Bouhier <[EMAIL PROTECTED]>:
> Hello,
>
> When using scmerge the result file has only the maximum number of games
> from the initial files (not the sum of the number of games).
>
> Reading the code, it seems it comes from scmerge.cpp, in function
> mergeFile, the uint gamesCount is wrong, has it restarts from 0 for each
> file, so new games are written at the place of first one, and at end it is
> not a merge !
>
> Game file (.sg3) and names file (.sn3) are correct, only index (.si3) is
> wrong with the bad number of games (the database is then compressible!).
>
> So scmerge is unusable !
>
> Regards
> --
> Laurent
>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Scid-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scid-users