Skip to main content

Topic: How to scan database? (Read 3392 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • KCEII
  • [*]
How to scan database?
Hi. I'm somewhat new to coding - made some C++ plugins for games (HL) a few years back. I've been studying the SDK and the sample plugins.

Sorry for the newb question but how do you scan the database? I'm trying to retrieve the rg values from all the files in the database. All I know is it involves metadb...
  • Last Edit: 16 October, 2008, 02:13:09 AM by KCEII

  • Yirkha
  • [*][*][*][*][*]
  • Moderator
How to scan database?
Reply #1
library_manager::enum_items() or library_manager::get_all_items().
Full-quoting makes you scroll past the same junk over and over.

  • KCEII
  • [*]
How to scan database?
Reply #2
Thanks. One more thing:

I'm trying to show a popup box but I can't figure out the last argument, the icon.

Code: [Select]
static_api_ptr_t<popup_message>()->g_show(s, "Information", ?);

  • foosion
  • [*][*][*][*][*]
  • Moderator
How to scan database?
Reply #3
The g_show method is static, so you should leave static_api_ptr_t out of this, i.e. just do popup_message::g_show(...). As for the icon parameter, look at the method signature in the SDK:
static void g_show(const char* p_msg, const char* p_title, t_icon p_icon).

Hint: Follow the links to the type of p_icon.

Hint 2: "Information" is such a non-descriptive title for a popup message. You didn't use "Topic" as the title of this forum thread, did you? Perhaps you can think of something better.
http://foosion.foobar2000.org/ - my components for foobar2000