Add perfomance_monitor to demo carts #395
This commit is contained in:
parent
39703b5d5e
commit
586a404418
4
Makefile
4
Makefile
|
@ -146,6 +146,7 @@ DEMO_ASSETS= \
|
||||||
bin/assets/jsdemo.tic.dat \
|
bin/assets/jsdemo.tic.dat \
|
||||||
bin/assets/luademo.tic.dat \
|
bin/assets/luademo.tic.dat \
|
||||||
bin/assets/moondemo.tic.dat \
|
bin/assets/moondemo.tic.dat \
|
||||||
|
bin/assets/benchmark.tic.dat \
|
||||||
bin/assets/config.tic.dat
|
bin/assets/config.tic.dat
|
||||||
|
|
||||||
all: run
|
all: run
|
||||||
|
@ -377,5 +378,8 @@ bin/assets/luademo.tic.dat: demos/luademo.tic
|
||||||
bin/assets/moondemo.tic.dat: demos/moondemo.tic
|
bin/assets/moondemo.tic.dat: demos/moondemo.tic
|
||||||
$(BIN2TXT) $< $@ -z
|
$(BIN2TXT) $< $@ -z
|
||||||
|
|
||||||
|
bin/assets/benchmark.tic.dat: demos/benchmark.tic
|
||||||
|
$(BIN2TXT) $< $@ -z
|
||||||
|
|
||||||
clean: $(TIC_O) $(TIC80_O)
|
clean: $(TIC_O) $(TIC80_O)
|
||||||
del bin\*.o
|
del bin\*.o
|
||||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1082,6 +1082,11 @@ static void onConsoleInstallDemosCommand(Console* console, const char* param)
|
||||||
#include "../bin/assets/tetris.tic.dat"
|
#include "../bin/assets/tetris.tic.dat"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const u8 Benchmark[] =
|
||||||
|
{
|
||||||
|
#include "../bin/assets/benchmark.tic.dat"
|
||||||
|
};
|
||||||
|
|
||||||
FileSystem* fs = console->fs;
|
FileSystem* fs = console->fs;
|
||||||
|
|
||||||
static const struct {const char* name; const u8* data; s32 size;} Demos[] =
|
static const struct {const char* name; const u8* data; s32 size;} Demos[] =
|
||||||
|
@ -1094,6 +1099,7 @@ static void onConsoleInstallDemosCommand(Console* console, const char* param)
|
||||||
{"quest.tic", GameQuest, sizeof GameQuest},
|
{"quest.tic", GameQuest, sizeof GameQuest},
|
||||||
{"sfx.tic", DemoSFX, sizeof DemoSFX},
|
{"sfx.tic", DemoSFX, sizeof DemoSFX},
|
||||||
{"tetris.tic", GameTetris, sizeof GameTetris},
|
{"tetris.tic", GameTetris, sizeof GameTetris},
|
||||||
|
{"benchmark.tic", Benchmark, sizeof Benchmark},
|
||||||
};
|
};
|
||||||
|
|
||||||
printBack(console, "\nadded carts:\n\n");
|
printBack(console, "\nadded carts:\n\n");
|
||||||
|
|
Loading…
Reference in New Issue