MCPcopy Create free account
hub / github.com/TASEmulators/fceux / cmpChanged

Method cmpChanged

src/drivers/Qt/GameGenie.cpp:318–336  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

316}
317//----------------------------------------------------------------------------
318void GameGenieDialog_t::cmpChanged(const QString &s)
319{
320 int a, v, c = -1;
321 char gg[12];
322
323 a = strtol( addr->text().toStdString().c_str(), NULL, 16 );
324 v = strtol( val->text().toStdString().c_str(), NULL, 16 );
325
326 if ( s.size() > 0 )
327 {
328 c = strtol( s.toStdString().c_str(), NULL, 16 );
329 }
330
331 EncodeGG( gg, a, v, c );
332
333 ggCode->setText( tr(gg) );
334
335 ListGGAddresses();
336}
337//----------------------------------------------------------------------------
338void GameGenieDialog_t::valChanged(const QString &s)
339{

Callers

nothing calls this directly

Calls 5

ListGGAddressesFunction · 0.85
setTextMethod · 0.80
EncodeGGFunction · 0.70
trFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected