[nostalgia/core] Replace old namespace nesting with C++17 nesting
This commit is contained in:
@@ -10,8 +10,7 @@
|
||||
|
||||
#include <ox/std/types.hpp>
|
||||
|
||||
namespace nostalgia {
|
||||
namespace core {
|
||||
namespace nostalgia::core {
|
||||
|
||||
typedef struct { uint32_t data[8]; } __attribute__((aligned(4))) Tile, Tile4;
|
||||
// d-tile: double-sized tile (8bpp)
|
||||
@@ -33,4 +32,3 @@ struct __attribute__((packed)) GbaImageData {
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,8 +17,7 @@
|
||||
|
||||
#include "../gfx.hpp"
|
||||
|
||||
namespace nostalgia {
|
||||
namespace core {
|
||||
namespace nostalgia::core {
|
||||
|
||||
using namespace ox;
|
||||
|
||||
@@ -249,4 +248,3 @@ void setTile(Context *ctx, int layer, int column, int row, uint8_t tile) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
|
||||
#include "../media.hpp"
|
||||
|
||||
namespace nostalgia {
|
||||
namespace core {
|
||||
namespace nostalgia::core {
|
||||
|
||||
uint8_t *loadRom(const char*) {
|
||||
// put the header in the wrong order to prevent mistaking this code for the
|
||||
@@ -34,4 +33,3 @@ uint8_t *loadRom(const char*) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
#include "../core.hpp"
|
||||
#include "panic.hpp"
|
||||
|
||||
namespace nostalgia {
|
||||
namespace core {
|
||||
namespace nostalgia::core {
|
||||
|
||||
void panic(const char *msg) {
|
||||
initConsole(nullptr);
|
||||
@@ -23,5 +22,3 @@ void panic(const char *msg) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,11 +10,9 @@
|
||||
|
||||
#include "panic.hpp"
|
||||
|
||||
namespace nostalgia {
|
||||
namespace core {
|
||||
namespace nostalgia::core {
|
||||
|
||||
void panic(const char *msg);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user