mirror of
https://github.com/arabine/open-story-teller.git
synced 2025-12-07 01:15:14 +01:00
fix windows build, remove console window
This commit is contained in:
parent
3d146dc38c
commit
5d158e4ffd
3 changed files with 10 additions and 3 deletions
|
|
@ -168,9 +168,16 @@ if(WIN32)
|
|||
)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
add_executable(${STORY_EDITOR_PROJECT}
|
||||
WIN32
|
||||
${SRCS}
|
||||
)
|
||||
else()
|
||||
add_executable(${STORY_EDITOR_PROJECT}
|
||||
${SRCS}
|
||||
)
|
||||
endif()
|
||||
|
||||
target_include_directories(${STORY_EDITOR_PROJECT} PUBLIC
|
||||
${imgui_SOURCE_DIR}
|
||||
|
|
@ -205,7 +212,7 @@ target_link_libraries(${STORY_EDITOR_PROJECT}
|
|||
)
|
||||
elseif(WIN32)
|
||||
|
||||
target_compile_features("-Wl,-subsystem,windows")
|
||||
#target_compile_features("-Wl,-subsystem,windows")
|
||||
|
||||
target_link_libraries(${STORY_EDITOR_PROJECT}
|
||||
OpenGL::GL
|
||||
|
|
|
|||
|
|
@ -631,7 +631,7 @@ void MainWindow::NewProjectPopup()
|
|||
if (valid)
|
||||
{
|
||||
auto p = std::filesystem::path(projdir) / std::filesystem::path("project.json");
|
||||
m_project.Initialize(p.generic_string());
|
||||
m_story.Initialize(p.generic_string());
|
||||
|
||||
if (display_item_current_idx == 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ void ResourcesWindow::ChooseFile()
|
|||
|
||||
|
||||
std::filesystem::path p(filePathName);
|
||||
std::filesystem::path p2 = m_project.BuildFullAssetsPath( p.filename().generic_string());
|
||||
std::filesystem::path p2 = m_story.BuildFullAssetsPath( p.filename().generic_string());
|
||||
std::filesystem::copy(p, p2, std::filesystem::copy_options::overwrite_existing);
|
||||
|
||||
auto res = std::make_shared<Resource>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue