[nostalgia/player] Cleanup
This commit is contained in:
parent
56601b7c4f
commit
b839af9207
@ -6,6 +6,7 @@
|
|||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <ox/std/units.hpp>
|
||||||
#include <nostalgia/world/world.hpp>
|
#include <nostalgia/world/world.hpp>
|
||||||
|
|
||||||
using namespace nostalgia::common;
|
using namespace nostalgia::common;
|
||||||
@ -13,7 +14,7 @@ using namespace nostalgia::core;
|
|||||||
using namespace nostalgia::world;
|
using namespace nostalgia::world;
|
||||||
|
|
||||||
int run() {
|
int run() {
|
||||||
ox::FileSystem32 fs(ox::FileStore32(loadRom(), 33554432)); // 32 MB
|
ox::FileSystem32 fs(ox::FileStore32(loadRom(), 32 * ox::units::MB));
|
||||||
Context ctx;
|
Context ctx;
|
||||||
init(&ctx);
|
init(&ctx);
|
||||||
ctx.rom = &fs;
|
ctx.rom = &fs;
|
||||||
@ -25,13 +26,12 @@ int run() {
|
|||||||
|
|
||||||
#ifndef OX_USE_STDLIB
|
#ifndef OX_USE_STDLIB
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
|
|
||||||
|
extern "C"
|
||||||
void _start() {
|
void _start() {
|
||||||
run();
|
run();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user