static bool PKCS8DecodePrivateKey( const unsigned char *pkcsbuf, unsigned long bufsize, unsigned char *szOut, unsigned long &outsize )
{
ltc_asn1_list *pkAlgObject;
- int err = der_decode_sequence_flexi(pkcsbuf, &bufsize, &pkAlgObject);
+ der_decode_sequence_flexi(pkcsbuf, &bufsize, &pkAlgObject);
#define RET_IF_NULL_THEN_ASSIGN(x ) { if ( (x) == NULL ) return false; pkAlgObject = (x); }
RET_IF_NULL_THEN_ASSIGN( pkAlgObject );
FOREACHM_CONST( StepsID, Profile::HighScoresForASteps, hsSong.m_StepsHighScores, j )
{
- const StepsID &stepsID = j->first;
const Profile::HighScoresForASteps &hsSteps = j->second;
const HighScoreList &hsl = hsSteps.hsl;
void LinkedOptionsMenu::SetChoices( const CStringArray &asChoices )
{
- unsigned iPrevNumChoices = m_Rows.size();
ClearChoices();
for( unsigned i = 0; i < asChoices.size(); i++ )
/* If we support texture matrix scaling, a handle to the vertex program: */
static GLhandleARB g_bTextureMatrixShader = 0;
-static bool g_ShaderCompiled = false;
-
LowLevelWindow *wind;
static void InvalidateAllGeometry();
if ( sDriverPath.empty() || pDriver->m_sRoot.empty() )
continue;
- FileType type = pDriver->m_pDriver->GetFileType(sPath);
-
if ( pDriver->m_sType != "dir" && pDriver->m_sType != "dirro" )
continue;
}
else
{
- bool bAlreadyBGChangeHere = false;
BackgroundLayer iLayer = BACKGROUND_LAYER_1;
BackgroundChange bgChange;
bgChange.m_fStartBeat = GAMESTATE->m_fSongBeat;
{
if( bgc->m_fStartBeat == GAMESTATE->m_fSongBeat )
{
- bAlreadyBGChangeHere = true;
bgChange = *bgc;
m_pSong->GetBackgroundChanges(iLayer).erase( bgc );
break;
bool bBlinkGameButton[MAX_GAME_CONTROLLERS][MAX_GAME_BUTTONS];\r
ZERO( bBlinkCabinetLight );\r
ZERO( bBlinkGameButton );\r
- bool bCrossedABeat = false;\r
{\r
const float fSongBeat = GAMESTATE->m_fLightSongBeat;\r
const int iSongRow = BeatToNoteRowNotRounded( fSongBeat );\r
\r
static int iRowLastCrossed = 0;\r
\r
- float fBeatLast = roundf(NoteRowToBeat(iRowLastCrossed));\r
- float fBeatNow = roundf(NoteRowToBeat(iSongRow));\r
-\r
- bCrossedABeat = fBeatLast != fBeatNow;\r
-\r
FOREACH_CabinetLight( cl )\r
{ \r
// for each index we crossed since the last update:\r
if( Repeat && !ALLOW_REPEATING_CHANGE_VALUE_INPUT )
return;
- bool bOneChanged = false;
-
-
int iCurrentChoiceWithFocus = row.GetChoiceInRowWithFocus(pn);
int iNewChoiceWithFocus = iCurrentChoiceWithFocus + iDelta;
ASSERT( iNumChoices > 0 );
wrap( iNewChoiceWithFocus, iNumChoices );
- if( iCurrentChoiceWithFocus != iNewChoiceWithFocus )
- bOneChanged = true;
-
row.SetChoiceInRowWithFocus( pn, iNewChoiceWithFocus );
StoreFocus( pn );
CStringArray Flags;
split( OPTION_MENU_FLAGS, ";", Flags, true );
InputMode im = INPUTMODE_INDIVIDUAL;
- bool Explanations = false;
for( unsigned i = 0; i < Flags.size(); ++i )
{
if( sFlag == "together" )
im = INPUTMODE_SHARE_CURSOR;
else if( sFlag == "explanations" )
- Explanations = true;
+ ;
else if( sFlag == "forceallplayers" )
{
FOREACH_PlayerNumber( pn )
ZERO( bBlinkGameButton );
/* update the lights data */
- bool bCrossedABeat = false;
{
const float fSongBeat = GAMESTATE->m_fLightSongBeat;
const int iSongRow = BeatToNoteRowNotRounded( fSongBeat );
static int iRowLastCrossed = 0;
- float fBeatLast = roundf(NoteRowToBeat(iRowLastCrossed));
- float fBeatNow = roundf(NoteRowToBeat(iSongRow));
-
- bCrossedABeat = fBeatLast != fBeatNow;
-
// keep all cabinet lights (except buttons) on if the steps haven't started.
if( GAMESTATE->m_fSongBeat < GAMESTATE->m_pCurSong->m_fFirstBeat )
{
{
HighScoreList &hsl = PROFILEMAN->GetMachineProfile()->GetStepsHighScoreList(pSong,pSteps);
HighScore hs = hsl.GetTopScore();
- bool bRecentHighScore = false;
if( !hsl.vHighScores.empty() )
{
hs = hsl.GetTopScore();
- const CString *psName = &hsl.GetTopScore().sName;
- bRecentHighScore = find( GAMESTATE->m_vpsNamesThatWereFilled.begin(), GAMESTATE->m_vpsNamesThatWereFilled.end(), psName ) != GAMESTATE->m_vpsNamesThatWereFilled.end();
}
else
{
const HighScoreList &hsl = PROFILEMAN->GetMachineProfile()->GetCourseHighScoreList( pCourse, pTrail );
HighScore hs;
- bool bRecentHighScore = false;
if( !hsl.vHighScores.empty() )
{
hs = hsl.vHighScores[0];
- const CString *psName = &hsl.GetTopScore().sName;
- bRecentHighScore = find( GAMESTATE->m_vpsNamesThatWereFilled.begin(), GAMESTATE->m_vpsNamesThatWereFilled.end(), psName ) != GAMESTATE->m_vpsNamesThatWereFilled.end();
}
else
{
{
while ( !m_bStopThread )
{
- bool bLaunchPrompt = false;
if (m_bPrompt)
{
usleep( 10000 );
}
if ( SM == SM_AnswerConfirmAddZip )
{
- bool bSuccess = false, bBreakEarly = false, bSkip = false;
CString sError;
m_bPrompt = false;
m_PlayerSongLoadThread.Create( InitSASSongThread, this )
////////////////////////
- bBreakEarly = false;
- bSkip = false;
-
g_CurXferFile = MEM_CARD_MOUNT_POINT[m_CurPlayer] + "/" + USER_PACK_TRANSFER_PATH + sSelection;
if ( !UPACKMAN->IsPackTransferable( sSelection, g_CurXferFile, sError ) || !UPACKMAN->IsPackMountable( g_CurXferFile, sError ) )
{
ZERO( bBlinkCabinetLight );
/* update the lights data */
- bool bCrossedABeat = false;
{
const float fSongBeat = GAMESTATE->m_fLightSongBeat;
const int iSongRow = BeatToNoteRowNotRounded( fSongBeat );
static int iRowLastCrossed = 0;
- float fBeatLast = roundf(NoteRowToBeat(iRowLastCrossed));
- float fBeatNow = roundf(NoteRowToBeat(iSongRow));
-
- bCrossedABeat = fBeatLast != fBeatNow;
-
FOREACH_CabinetLight( cl )
{
FOREACH_NONEMPTY_ROW_IN_TRACK_RANGE( m_NoteData, cl, r, iRowLastCrossed+1, iSongRow+1 )
CHECKPOINT_M( sPack );
// it should already be a valid zip by now...
ASSERT( pZip->Load( sPack ) );
- UserPackMountType upmt = UPACK_MOUNT_SONGS;
CStringArray asRootEntries;
pZip->GetDirListing( "/", asRootEntries, true, false );
while(!shutdown)
{
/* Sleep for the size of one chunk. */
- const int chunksize_frames = max_writeahead / num_chunks;
- float sleep_secs = (float(chunksize_frames) / samplerate);
+ //const int chunksize_frames = max_writeahead / num_chunks;
+ //float sleep_secs = (float(chunksize_frames) / samplerate);
usleep( 20000 ); // int(1000 * sleep_secs));
LockMut( m_Mutex );
/* non-fatal */
}
- static int received = 0;
static int active = 0;
if( active )
_exit(1);
}
active = 1;
- received = getpid();
/* Stop other threads. XXX: This prints a spurious ptrace error if any threads
* are already suspended, which happens in ForceCrashHandlerDeadlock(). */
SMALLINT owBlock(int portnum, SMALLINT do_reset, uchar *tran_buf, SMALLINT tran_len)\r
{\r
uchar sendpacket[320];\r
- uchar sendlen=0,pos,i;\r
+ uchar sendlen=0,i;\r
\r
// check for a block too big\r
if (tran_len > 160)\r
}\r
\r
// add the bytes to send\r
- pos = sendlen;\r
for (i = 0; i < tran_len; i++)\r
{\r
sendpacket[sendlen++] = tran_buf[i];\r