1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-25 21:27:45 +00:00

exdpart: Reformat code, misc cleanup

This commit is contained in:
Joshua Goins 2023-10-12 23:45:21 -04:00
parent 24f878b19a
commit 2726344c6a
2 changed files with 68 additions and 62 deletions

View file

@ -211,7 +211,8 @@ void EXDPart::loadSheet(QString name, physis_Buffer buffer)
}
}
Language EXDPart::getSuitableLanguage(physis_EXH* pExh) {
Language EXDPart::getSuitableLanguage(physis_EXH *pExh)
{
for (int i = 0; i < pExh->language_count; i++) {
if (pExh->languages[i] == Language::English) {
return Language::English;
@ -220,3 +221,5 @@ Language EXDPart::getSuitableLanguage(physis_EXH* pExh) {
return Language::None;
}
#include "moc_exdpart.cpp"

View file

@ -10,7 +10,10 @@
#include <physis.hpp>
// TODO: rename to "EXDH" or "Excel" part or something similar because you cannot preview EXD on it's own
class EXDPart : public QWidget {
class EXDPart : public QWidget
{
Q_OBJECT
public:
explicit EXDPart(GameData *data);