Posts: 47
Joined: Dec 2004
Reputation:
0
pondering this a bit...
the kai integration uses the dirs and the game saves (i believe)..
i think it uses your gamesaves to list the games which are available to play...so that probably stays the same...
so its, again, just when the user selects the game we'd look it up in a database....so when/where does the database get created?? or does the code to add games to the database need to be written?? if so does it happen everytime??
just some initial thoughts...i'll probably need a mentor on this...any takers? bobbin007??
Posts: 47
Joined: Dec 2004
Reputation:
0
so the end result would be that there is no need for adding a games dir in the kai integration gui....we'll be able to automagically locate it based on this database....
i like this!
the only problem i see i...how will the database get updated with existing stuff? i.e. i already have gamesaves and such...i assume my database is built...
is the database built each time xbmc launches?
would the users just need to blow away the db?
..maybe i should just focus on writing the code to make it happen as you describe and all else will fall into place ;-)
Posts: 952
Joined: Feb 2005
Reputation:
0
"how will the database get updated with existing stuff?"
not that i know the code, but it seems to me that a logical place would be when using the games bookmark which scans the directories for xbe's extracting their game names and icons from the xbe itself. the titleid is in there.
i do knot know how this is read, if it's easy through the xdk. if not, then caustik has a filespec for xbe's which i have used myself for my xberenamer pc application
Posts: 47
Joined: Dec 2004
Reputation:
0
ok gang,
i just submitted the code. bobbin007 will probably be checking it out... (patch #1121950)
here's how it works:
1. first checks the ";"-seperated list of dirs found in the settings for kai....
2. if not found it will then look into the myprograms5.db to find the game.
the db lookup will make kai be able to launch games in numerous places since the db is created from the games bookmark...so now if you have a large depth setting, or multiple dirs you can rely on the db lookup to find/launch the game...
enjoy!!!!
Posts: 952
Joined: Feb 2005
Reputation:
0
2005-02-14, 10:56
scampa, awesome! you rock!
i cannot build a version myself to test, but i was thinking
1. there is not need for the kai folder setting, unless you do not have a games bookmark ofcourse.
2. is it not faster to look in the db before scanning the kai dirs?
can't wait to check out your new feature. tnx again!
Posts: 47
Joined: Dec 2004
Reputation:
0
ultrabrutal,
i questioned this stuff myself, however bobbin007 felt it better to still leave the option....
as for db vs string lookup.....not sure...typiucally i'd say avoid the db lookup..but i have no idea how this stuff runs on c++....i can say that an index was added to the new column in the db to enhance the lookup...
you know what....thinking about this as i type....if we leave the setting in the gui, then that should take precedence over the db lookup.....you can avoid the settings lookup alltogether by leaving it blank...if it is blank it will not be checked any further...
-s
Posts: 952
Joined: Feb 2005
Reputation:
0
that's good to hear. i will clear the folder string then and rely on the games bookmark.
can't wait to get a build to test.
tnx again
Posts: 47
Joined: Dec 2004
Reputation:
0
no problem...
lets us know how you make out when you do....
also...i may have another updated late tonight/tomorrow...apparently homebrew apps may not have a title id so i need to adjust my query for that...i'm going to look into this tonight...if you're not worried about that, then the current stuff should work...
Posts: 404
Joined: Oct 2003
Reputation:
0
patch checked into cvs.
great work scampa123!
this is a great improvement, hope you'll all like it. :kickass:
greets
bobbin007
Posts: 47
Joined: Dec 2004
Reputation:
0
i just heard from bobbin007 and the changes have been checked in....
as for the potential db lookup issue i mentioned, bobbin007 mentioned to me the fact that kai will not work with homebrew apps and thus no problem.....
so now we just have to see what you guys say when after you start using it...
:fixed:
Posts: 47
Joined: Dec 2004
Reputation:
0
oh ok cool....now i understand :-)