rename emulator
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
project(natsukashii)
|
||||
project(gadolinium)
|
||||
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
@@ -18,7 +18,7 @@ add_subdirectory(../external/parallel-rdp prdp)
|
||||
add_subdirectory(../external/imgui imgui)
|
||||
add_subdirectory(../external/nativefiledialog-extended nfd)
|
||||
|
||||
add_executable(natsukashii
|
||||
add_executable(gadolinium
|
||||
${CORE_SOURCES}
|
||||
${CORE_HEADERS}
|
||||
${FRONTEND_SOURCES}
|
||||
@@ -27,7 +27,7 @@ add_executable(natsukashii
|
||||
common.hpp
|
||||
util.hpp)
|
||||
|
||||
target_include_directories(natsukashii PRIVATE
|
||||
target_include_directories(gadolinium PRIVATE
|
||||
.
|
||||
n64
|
||||
n64/core
|
||||
@@ -53,8 +53,8 @@ file(REMOVE
|
||||
${PROJECT_BINARY_DIR}/resources/shader.vert)
|
||||
|
||||
if(WIN32)
|
||||
target_compile_definitions(natsukashii PUBLIC NOMINMAX _CRT_SECURE_NO_WARNINGS)
|
||||
target_compile_options(natsukashii PUBLIC /EHa)
|
||||
target_compile_definitions(gadolinium PUBLIC NOMINMAX _CRT_SECURE_NO_WARNINGS)
|
||||
target_compile_options(gadolinium PUBLIC /EHa)
|
||||
endif()
|
||||
|
||||
target_link_libraries(natsukashii PRIVATE SDL2::SDL2main SDL2::SDL2 capstone-static nfd parallel-rdp fmt::fmt imgui nlohmann_json::nlohmann_json)
|
||||
target_link_libraries(gadolinium PRIVATE SDL2::SDL2main SDL2::SDL2 capstone-static nfd parallel-rdp fmt::fmt imgui nlohmann_json::nlohmann_json)
|
||||
@@ -25,9 +25,9 @@ void Window::InitSDL() {
|
||||
SDL_Init(SDL_INIT_EVERYTHING);
|
||||
n64::InitAudio();
|
||||
|
||||
windowTitle = "natsukashii";
|
||||
windowTitle = "Gadolinium";
|
||||
window = SDL_CreateWindow(
|
||||
"natsukashii",
|
||||
"Gadolinium",
|
||||
SDL_WINDOWPOS_CENTERED,
|
||||
SDL_WINDOWPOS_CENTERED,
|
||||
800, 600,
|
||||
@@ -158,7 +158,7 @@ void Window::LoadROM(n64::Core& core, const std::string &path) {
|
||||
name = std::filesystem::path(path).stem().string();
|
||||
}
|
||||
|
||||
windowTitle = "natsukashii - " + name;
|
||||
windowTitle = "Gadolinium - " + name;
|
||||
shadowWindowTitle = windowTitle;
|
||||
|
||||
SDL_SetWindowTitle(window, windowTitle.c_str());
|
||||
@@ -210,7 +210,7 @@ void Window::Render(n64::Core& core) {
|
||||
LoadROM(core, core.rom);
|
||||
}
|
||||
if (ImGui::MenuItem("Stop")) {
|
||||
windowTitle = "natsukashii";
|
||||
windowTitle = "Gadolinium";
|
||||
SDL_SetWindowTitle(window, windowTitle.c_str());
|
||||
core.Stop();
|
||||
}
|
||||
|
||||
@@ -80,4 +80,4 @@ struct RDP {
|
||||
RunCommand(mi, regs, rsp);
|
||||
}
|
||||
};
|
||||
} // natsukashii
|
||||
} // n64
|
||||
|
||||
Reference in New Issue
Block a user