fix some warnings and use the damn FORCE_INLINE macro otherwise what's it there for

This commit is contained in:
SimoneN64
2023-06-05 20:54:34 +02:00
parent 776634a293
commit 32c66fdf5f
25 changed files with 139 additions and 133 deletions

View File

@@ -34,7 +34,7 @@ void PIF::LoadMempak(fs::path path) {
fclose(f);
}
inline size_t getSaveSize(SaveType saveType) {
FORCE_INLINE size_t getSaveSize(SaveType saveType) {
switch (saveType) {
case SAVE_NONE:
return 0;
@@ -110,7 +110,7 @@ void PIF::CICChallenge() {
}
}
inline u8 data_crc(const u8* data) {
FORCE_INLINE u8 data_crc(const u8* data) {
u8 crc = 0;
for (int i = 0; i <= 32; i++) {
for (int j = 7; j >= 0; j--) {