Rename to Kaizen internally
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
project(gadolinium)
|
||||
project(kaizen)
|
||||
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
@@ -59,7 +59,7 @@ add_subdirectory(../external/imgui imgui)
|
||||
add_subdirectory(../external/nativefiledialog-extended nfd)
|
||||
add_subdirectory(../external/parallel-rdp parallel-rdp)
|
||||
|
||||
add_executable(gadolinium main.cpp)
|
||||
add_executable(kaizen main.cpp)
|
||||
|
||||
file(COPY ${PROJECT_SOURCE_DIR}/../resources/ DESTINATION ${PROJECT_BINARY_DIR}/resources/)
|
||||
file(REMOVE
|
||||
@@ -67,11 +67,11 @@ file(REMOVE
|
||||
${PROJECT_BINARY_DIR}/resources/shader.frag
|
||||
${PROJECT_BINARY_DIR}/resources/shader.vert)
|
||||
|
||||
target_link_libraries(gadolinium PUBLIC frontend frontend-imgui
|
||||
target_link_libraries(kaizen PUBLIC frontend frontend-imgui
|
||||
discord-rpc imgui nfd parallel-rdp backend fmt::fmt nlohmann_json::nlohmann_json core jit registers interpreter mmio rsp SDL2::SDL2main SDL2::SDL2)
|
||||
|
||||
if(WIN32)
|
||||
target_compile_definitions(gadolinium PUBLIC NOMINMAX _CRT_SECURE_NO_WARNINGS)
|
||||
target_compile_definitions(kaizen PUBLIC NOMINMAX _CRT_SECURE_NO_WARNINGS)
|
||||
if(MSVC)
|
||||
target_compile_options(parallel-rdp PUBLIC /EHa)
|
||||
endif()
|
||||
|
||||
@@ -31,7 +31,7 @@ inline void UpdateRPC(State state, const std::string& game = "") {
|
||||
presence.details = textDetails.c_str();
|
||||
presence.state = textState.c_str();
|
||||
presence.startTimestamp = time(nullptr);
|
||||
presence.largeImageText = "Gadolinium";
|
||||
presence.largeImageText = "Kaizen";
|
||||
presence.largeImageKey = "logo";
|
||||
Discord_UpdatePresence(&presence);
|
||||
}
|
||||
|
||||
@@ -31,9 +31,9 @@ void Window::InitSDL() {
|
||||
SDL_Init(SDL_INIT_EVERYTHING);
|
||||
n64::InitAudio();
|
||||
|
||||
windowTitle = "Gadolinium";
|
||||
windowTitle = "Kaizen";
|
||||
window = SDL_CreateWindow(
|
||||
"Gadolinium",
|
||||
"Kaizen",
|
||||
SDL_WINDOWPOS_CENTERED,
|
||||
SDL_WINDOWPOS_CENTERED,
|
||||
1024, 768,
|
||||
@@ -159,7 +159,7 @@ void Window::LoadROM(n64::Core& core, const std::string &path) {
|
||||
}
|
||||
|
||||
Util::UpdateRPC(Util::Playing, gameName);
|
||||
windowTitle = "Gadolinium - " + gameName;
|
||||
windowTitle = "Kaizen - " + gameName;
|
||||
shadowWindowTitle = windowTitle;
|
||||
|
||||
SDL_SetWindowTitle(window, windowTitle.c_str());
|
||||
@@ -199,7 +199,7 @@ void Window::RenderMainMenuBar(n64::Core &core) {
|
||||
LoadROM(core, core.rom);
|
||||
}
|
||||
if (ImGui::MenuItem("Stop")) {
|
||||
windowTitle = "Gadolinium";
|
||||
windowTitle = "Kaizen";
|
||||
core.rom.clear();
|
||||
Util::UpdateRPC(Util::Idling);
|
||||
SDL_SetWindowTitle(window, windowTitle.c_str());
|
||||
|
||||
@@ -20,7 +20,7 @@ struct Window {
|
||||
private:
|
||||
bool showSettings = false;
|
||||
SDL_Window* window{};
|
||||
std::string windowTitle{"Gadolinium"};
|
||||
std::string windowTitle{"Kaizen"};
|
||||
std::string shadowWindowTitle{windowTitle};
|
||||
std::string gameName{};
|
||||
void InitSDL();
|
||||
|
||||
Reference in New Issue
Block a user