Report on setup stringtable resource. Does not actually load it yet.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2267 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -26,10 +26,13 @@
|
|||||||
#include "libs/graphics/gfx_common.h"
|
#include "libs/graphics/gfx_common.h"
|
||||||
#include "libs/graphics/widgets.h"
|
#include "libs/graphics/widgets.h"
|
||||||
#include "libs/graphics/tfb_draw.h"
|
#include "libs/graphics/tfb_draw.h"
|
||||||
|
#include "libs/strlib.h"
|
||||||
#include "libs/reslib.h"
|
#include "libs/reslib.h"
|
||||||
#include "libs/sound/sound.h"
|
#include "libs/sound/sound.h"
|
||||||
#include "resinst.h"
|
#include "resinst.h"
|
||||||
|
#include "nameref.h"
|
||||||
|
|
||||||
|
static STRING SetupTab;
|
||||||
|
|
||||||
typedef struct setup_menu_state {
|
typedef struct setup_menu_state {
|
||||||
BOOLEAN (*InputFunc) (struct setup_menu_state *pInputState);
|
BOOLEAN (*InputFunc) (struct setup_menu_state *pInputState);
|
||||||
@@ -736,10 +739,25 @@ SetupMenu (void)
|
|||||||
s.InputFunc = DoSetupMenu;
|
s.InputFunc = DoSetupMenu;
|
||||||
s.initialized = FALSE;
|
s.initialized = FALSE;
|
||||||
SetMenuSounds (0, MENU_SOUND_SELECT);
|
SetMenuSounds (0, MENU_SOUND_SELECT);
|
||||||
|
SetupTab = CaptureStringTable (LoadStringTable (SETUP_MENU_STRTAB));
|
||||||
|
if (SetupTab)
|
||||||
|
{
|
||||||
|
fprintf (stderr, "GetStringTableCount reports %d entries.\n", GetStringTableCount (SetupTab));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fprintf (stderr, "Could not find setup strings!\n");
|
||||||
|
}
|
||||||
done = FALSE;
|
done = FALSE;
|
||||||
|
|
||||||
DoInput ((PVOID)&s, TRUE);
|
DoInput ((PVOID)&s, TRUE);
|
||||||
GLOBAL (CurrentActivity) &= ~CHECK_ABORT;
|
GLOBAL (CurrentActivity) &= ~CHECK_ABORT;
|
||||||
PropagateResults ();
|
PropagateResults ();
|
||||||
|
if (SetupTab)
|
||||||
|
{
|
||||||
|
DestroyStringTable (ReleaseStringTable (SetupTab));
|
||||||
|
SetupTab = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user