mirror of https://github.com/mgba-emu/mgba.git
All: Fix whitespace errors
This commit is contained in:
parent
8941f74292
commit
bfc52cd2f0
|
@ -11,15 +11,15 @@
|
||||||
CXX_GUARD_START
|
CXX_GUARD_START
|
||||||
|
|
||||||
struct mSize {
|
struct mSize {
|
||||||
int width;
|
int width;
|
||||||
int height;
|
int height;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct mRectangle {
|
struct mRectangle {
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
int width;
|
int width;
|
||||||
int height;
|
int height;
|
||||||
};
|
};
|
||||||
|
|
||||||
void mRectangleUnion(struct mRectangle* dst, const struct mRectangle* add);
|
void mRectangleUnion(struct mRectangle* dst, const struct mRectangle* add);
|
||||||
|
|
|
@ -9,23 +9,23 @@
|
||||||
#define mSAVEDATA_CLEANUP_THRESHOLD 15
|
#define mSAVEDATA_CLEANUP_THRESHOLD 15
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
mSAVEDATA_DIRT_NONE = 0,
|
mSAVEDATA_DIRT_NONE = 0,
|
||||||
mSAVEDATA_DIRT_NEW = 1,
|
mSAVEDATA_DIRT_NEW = 1,
|
||||||
mSAVEDATA_DIRT_SEEN = 2,
|
mSAVEDATA_DIRT_SEEN = 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline bool mSavedataClean(int* dirty, uint32_t* dirtAge, uint32_t frameCount) {
|
static inline bool mSavedataClean(int* dirty, uint32_t* dirtAge, uint32_t frameCount) {
|
||||||
if (*dirty & mSAVEDATA_DIRT_NEW) {
|
if (*dirty & mSAVEDATA_DIRT_NEW) {
|
||||||
*dirtAge = frameCount;
|
*dirtAge = frameCount;
|
||||||
*dirty &= ~mSAVEDATA_DIRT_NEW;
|
*dirty &= ~mSAVEDATA_DIRT_NEW;
|
||||||
if (!(*dirty & mSAVEDATA_DIRT_SEEN)) {
|
if (!(*dirty & mSAVEDATA_DIRT_SEEN)) {
|
||||||
*dirty |= mSAVEDATA_DIRT_SEEN;
|
*dirty |= mSAVEDATA_DIRT_SEEN;
|
||||||
}
|
}
|
||||||
} else if ((*dirty & mSAVEDATA_DIRT_SEEN) && frameCount - *dirtAge > mSAVEDATA_CLEANUP_THRESHOLD) {
|
} else if ((*dirty & mSAVEDATA_DIRT_SEEN) && frameCount - *dirtAge > mSAVEDATA_CLEANUP_THRESHOLD) {
|
||||||
*dirty = 0;
|
*dirty = 0;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -396,10 +396,10 @@ uint8_t _GBGGB81Read(struct GBMemory* memory, uint16_t address) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void _GBLiCheng(struct GB* gb, uint16_t address, uint8_t value) {
|
void _GBLiCheng(struct GB* gb, uint16_t address, uint8_t value) {
|
||||||
if (address > 0x2100 && address < 0x3000) {
|
if (address > 0x2100 && address < 0x3000) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_GBMBC5(gb, address, value);
|
_GBMBC5(gb, address, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _GBSachen(struct GB* gb, uint16_t address, uint8_t value) {
|
void _GBSachen(struct GB* gb, uint16_t address, uint8_t value) {
|
||||||
|
|
|
@ -160,7 +160,7 @@ void ForwarderController::gotManifest(QNetworkReply* reply) {
|
||||||
mUpdaterGetUpdateForChannel(&context, platform.toUtf8().constData(), m_channel.toUtf8().constData(), &update);
|
mUpdaterGetUpdateForChannel(&context, platform.toUtf8().constData(), m_channel.toUtf8().constData(), &update);
|
||||||
|
|
||||||
downloadBuild({bucket + update.path});
|
downloadBuild({bucket + update.path});
|
||||||
mUpdaterDeinit(&context);
|
mUpdaterDeinit(&context);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ForwarderController::downloadBuild(const QUrl& url) {
|
void ForwarderController::downloadBuild(const QUrl& url) {
|
||||||
|
|
|
@ -137,7 +137,7 @@ Window::Window(CoreManager* manager, ConfigController* config, int playerId, QWi
|
||||||
showFilenameInLibrary->connect([this](const QVariant& value) {
|
showFilenameInLibrary->connect([this](const QVariant& value) {
|
||||||
m_libraryView->setShowFilename(value.toBool());
|
m_libraryView->setShowFilename(value.toBool());
|
||||||
}, this);
|
}, this);
|
||||||
m_config->updateOption("showFilenameInLibrary");
|
m_config->updateOption("showFilenameInLibrary");
|
||||||
ConfigOption* libraryStyle = m_config->addOption("libraryStyle");
|
ConfigOption* libraryStyle = m_config->addOption("libraryStyle");
|
||||||
libraryStyle->connect([this](const QVariant& value) {
|
libraryStyle->connect([this](const QVariant& value) {
|
||||||
m_libraryView->setViewStyle(static_cast<LibraryStyle>(value.toInt()));
|
m_libraryView->setViewStyle(static_cast<LibraryStyle>(value.toInt()));
|
||||||
|
|
Loading…
Reference in New Issue