[nostalgia/core] Cleanup CMake config
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
add_library(
|
||||
NostalgiaCore-GBA
|
||||
core.cpp
|
||||
gfx.cpp
|
||||
media.cpp
|
||||
mem.cpp
|
||||
panic.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
NostalgiaCore-GBA PUBLIC
|
||||
GbaStartup
|
||||
OxFS
|
||||
OxStd
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS
|
||||
NostalgiaCore-GBA
|
||||
DESTINATION
|
||||
include/nostalgia/core
|
||||
)
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright 2016 - 2019 gtalent2@gmail.com
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#include <nostalgia/core/core.hpp>
|
||||
|
||||
namespace nostalgia::core {
|
||||
|
||||
ox::Error run() {
|
||||
while (1) {
|
||||
}
|
||||
return OxError(0);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -215,7 +215,7 @@ ox::Error loadTileSheet(Context*,
|
||||
ox::FileAddress) {
|
||||
auto inode = tilesheetPath.getInode().value;
|
||||
ox::Error err(0);
|
||||
const auto PaletteStart = sizeof(GbaImageDataHeader);
|
||||
constexpr auto PaletteStart = sizeof(GbaImageDataHeader);
|
||||
GbaImageDataHeader imgData;
|
||||
|
||||
ox::FileStore32 fs(loadRom(), 32 * 1024 * 1024);
|
||||
|
||||
Reference in New Issue
Block a user