Skip to content

Commit

Permalink
Change project name to NanoBoyAdvance
Browse files Browse the repository at this point in the history
  • Loading branch information
fleroviux committed Mar 29, 2021
1 parent afc83a7 commit 07614f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" CACHE STRING "")
endif()

project(NanoboyAdvance CXX)
project(NanoBoyAdvance CXX)

set(VERSION_MAJOR 1)
set(VERSION_MINOR 3)
Expand Down
6 changes: 3 additions & 3 deletions src/platform/sdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ find_package(OpenGL REQUIRED)
set(GLEW_VERBOSE ON)
find_package(GLEW REQUIRED)

add_executable(NanoboyAdvance ${SOURCES} ${HEADERS})
target_include_directories(NanoboyAdvance PRIVATE ${SDL2_INCLUDE_DIR} ${GLEW_INCLUDE_DIRS})
target_link_libraries(NanoboyAdvance nba ${SDL2_LIBRARY} OpenGL::GL GLEW::GLEW)
add_executable(NanoBoyAdvance ${SOURCES} ${HEADERS})
target_include_directories(NanoBoyAdvance PRIVATE ${SDL2_INCLUDE_DIR} ${GLEW_INCLUDE_DIRS})
target_link_libraries(NanoBoyAdvance nba ${SDL2_LIBRARY} OpenGL::GL GLEW::GLEW)

file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/resource/config.toml" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/resource/keymap.toml" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
Expand Down
4 changes: 2 additions & 2 deletions src/platform/sdl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ void init(int argc, char** argv) {
parse_arguments(argc, argv);
load_keymap();
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_GAMECONTROLLER);
g_window = SDL_CreateWindow("NanoboyAdvance",
g_window = SDL_CreateWindow("NanoBoyAdvance",
SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED,
kNativeWidth * g_config->video.scale,
Expand Down Expand Up @@ -375,7 +375,7 @@ void loop() {
SDL_GL_SwapWindow(g_window);
auto ticks_end = SDL_GetTicks();
if ((ticks_end - ticks_start) >= 1000) {
auto title = fmt::format("NanoboyAdvance [{0} fps | {1}%]", g_frame_counter, int(g_frame_counter / 60.0 * 100.0));
auto title = fmt::format("NanoBoyAdvance [{0} fps | {1}%]", g_frame_counter, int(g_frame_counter / 60.0 * 100.0));
SDL_SetWindowTitle(g_window, title.c_str());
g_frame_counter = 0;
ticks_start = ticks_end;
Expand Down

0 comments on commit 07614f5

Please sign in to comment.