Housekeeping

This commit is contained in:
scawful
2024-11-14 13:28:42 -05:00
parent 1297f2096b
commit fbb46d571a
3 changed files with 11 additions and 20 deletions

View File

@@ -1,7 +1,6 @@
// FontLoader.h
#ifndef FONTLOADER_H
#define FONTLOADER_H
#ifndef YAZE_APP_CORE_PLATFORM_FONTLOADER_H
#define YAZE_APP_CORE_PLATFORM_FONTLOADER_H
void LoadSystemFonts();
#endif // FONTLOADER_H
#endif // YAZE_APP_CORE_PLATFORM_FONTLOADER_H

View File

@@ -6,7 +6,9 @@ add_executable(
cli/handlers/tile16_transfer.cc
app/rom.cc
app/core/common.cc
app/core/project.cc
app/editor/utils/gfx_context.cc
app/core/platform/file_path.mm
${YAZE_APP_EMU_SRC}
${YAZE_APP_GFX_SRC}
${YAZE_APP_ZELDA3_SRC}

View File

@@ -11,21 +11,6 @@
namespace yaze {
namespace test {
TEST(YazeTest, LoadAndUnloadRom) {
yaze_flags flags;
flags.rom_filename = "zelda3.sfc";
const int init = yaze_init(&flags);
ASSERT_EQ(init, 0);
yaze_cleanup(&flags);
}
TEST(YazeTest, NoFilename) {
yaze_flags flags;
const int init = yaze_init(&flags);
ASSERT_EQ(init, -1);
yaze_cleanup(&flags);
}
} // namespace test
} // namespace yaze
@@ -37,8 +22,13 @@ int main(int argc, char* argv[]) {
if (argc > 1 && std::string(argv[1]) == "integration") {
return yaze::test::integration::RunIntegrationTest();
} else if (argc > 1 && std::string(argv[1]) == "room_object") {
::testing::InitGoogleTest(&argc, argv);
if (!RUN_ALL_TESTS()) {
return yaze::test::integration::RunIntegrationTest();
}
}
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
}