manuals tidy tier 2: empty-catch, enum-size, trivially-destructible
This commit is contained in:
@@ -65,7 +65,7 @@ auto JD8_LoadSurface(const char* file) -> JD8_Surface {
|
||||
memcpy(image, cached.data(), 64000);
|
||||
return image;
|
||||
} catch (const std::exception&) {
|
||||
// No està al cache (asset no llistat al manifest). Fallback.
|
||||
// @INTENTIONAL: no està al cache (asset no llistat al manifest), fallback al loader.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ auto JD8_LoadPalette(const char* file) -> JD8_Palette {
|
||||
memcpy(palette, cached.data(), 768);
|
||||
return palette;
|
||||
} catch (const std::exception&) {
|
||||
// No està al cache — fallback a lectura + LoadPalette.
|
||||
// @INTENTIONAL: no està al cache, fallback a lectura + LoadPalette.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -262,7 +262,7 @@ void JD8_SetPaletteColor(Uint8 index, Uint8 r, Uint8 g, Uint8 b) {
|
||||
// el caller decideix quan fer Flip.
|
||||
namespace {
|
||||
|
||||
enum class FadeType {
|
||||
enum class FadeType : std::uint8_t {
|
||||
None = 0,
|
||||
Out,
|
||||
ToPal,
|
||||
|
||||
Reference in New Issue
Block a user