mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
🩹 fix: doesnt compile
This commit is contained in:
parent
45c9fadc7b
commit
6a4c07c79a
@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.25...4.0 FATAL_ERROR)
|
|||||||
|
|
||||||
project(isle LANGUAGES CXX C VERSION 0.1)
|
project(isle LANGUAGES CXX C VERSION 0.1)
|
||||||
|
|
||||||
|
if(WINDOWS_STORE)
|
||||||
|
add_compile_definitions(WINDOWS_STORE)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(EMSCRIPTEN)
|
if(EMSCRIPTEN)
|
||||||
add_compile_options(-pthread)
|
add_compile_options(-pthread)
|
||||||
add_link_options(-sALLOW_MEMORY_GROWTH=1 -sMAXIMUM_MEMORY=2gb -sUSE_PTHREADS=1 -sPROXY_TO_PTHREAD=1 -sPTHREAD_POOL_SIZE_STRICT=0 -sFORCE_FILESYSTEM=1 -sWASMFS=1 -sEXIT_RUNTIME=1)
|
add_link_options(-sALLOW_MEMORY_GROWTH=1 -sMAXIMUM_MEMORY=2gb -sUSE_PTHREADS=1 -sPROXY_TO_PTHREAD=1 -sPTHREAD_POOL_SIZE_STRICT=0 -sFORCE_FILESYSTEM=1 -sWASMFS=1 -sEXIT_RUNTIME=1)
|
||||||
@ -551,6 +555,18 @@ if(ISLE_BUILD_APP)
|
|||||||
ISLE/3ds/config.cpp
|
ISLE/3ds/config.cpp
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
if(WINDOWS_STORE)
|
||||||
|
set(ISLE_CURSORS
|
||||||
|
ISLE/res/arrow.bmp
|
||||||
|
ISLE/res/busy.bmp
|
||||||
|
ISLE/res/no.bmp
|
||||||
|
)
|
||||||
|
set_source_files_properties(${ISLE_CURSORS} PROPERTIES
|
||||||
|
VS_DEPLOYMENT_CONTENT 1
|
||||||
|
)
|
||||||
|
|
||||||
|
target_sources(isle PRIVATE ${ISLE_CURSORS})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ISLE_BUILD_CONFIG)
|
if (ISLE_BUILD_CONFIG)
|
||||||
|
|||||||
@ -678,7 +678,7 @@ MxResult IsleApp::SetupWindow()
|
|||||||
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER, g_targetHeight);
|
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER, g_targetHeight);
|
||||||
SDL_SetBooleanProperty(props, SDL_PROP_WINDOW_CREATE_FULLSCREEN_BOOLEAN, m_fullScreen);
|
SDL_SetBooleanProperty(props, SDL_PROP_WINDOW_CREATE_FULLSCREEN_BOOLEAN, m_fullScreen);
|
||||||
SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_TITLE_STRING, WINDOW_TITLE);
|
SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_TITLE_STRING, WINDOW_TITLE);
|
||||||
#if defined(MINIWIN) && !defined(__3DS__)
|
#if defined(MINIWIN) && !defined(__3DS__) && !defined(WINDOWS_STORE)
|
||||||
SDL_SetBooleanProperty(props, SDL_PROP_WINDOW_CREATE_OPENGL_BOOLEAN, true);
|
SDL_SetBooleanProperty(props, SDL_PROP_WINDOW_CREATE_OPENGL_BOOLEAN, true);
|
||||||
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
|
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
|
||||||
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
|
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
|
||||||
|
|||||||
BIN
ISLE/res/arrow.bmp
Normal file
BIN
ISLE/res/arrow.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
BIN
ISLE/res/busy.bmp
Normal file
BIN
ISLE/res/busy.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
BIN
ISLE/res/no.bmp
Normal file
BIN
ISLE/res/no.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
@ -7,7 +7,7 @@
|
|||||||
#ifdef __3DS__
|
#ifdef __3DS__
|
||||||
#include "d3drmrenderer_citro3d.h"
|
#include "d3drmrenderer_citro3d.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) && !defined(WINDOWS_STORE)
|
||||||
#include "d3drmrenderer_directx9.h"
|
#include "d3drmrenderer_directx9.h"
|
||||||
#endif
|
#endif
|
||||||
#include "d3drmrenderer_sdl3gpu.h"
|
#include "d3drmrenderer_sdl3gpu.h"
|
||||||
@ -357,7 +357,7 @@ HRESULT DirectDrawImpl::CreateDevice(
|
|||||||
DDRenderer = new Citro3DRenderer(DDSDesc.dwWidth, DDSDesc.dwHeight);
|
DDRenderer = new Citro3DRenderer(DDSDesc.dwWidth, DDSDesc.dwHeight);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) && !defined(WINDOWS_STORE)
|
||||||
else if (SDL_memcmp(&guid, &DirectX9_GUID, sizeof(GUID)) == 0) {
|
else if (SDL_memcmp(&guid, &DirectX9_GUID, sizeof(GUID)) == 0) {
|
||||||
DDRenderer = DirectX9Renderer::Create(DDSDesc.dwWidth, DDSDesc.dwHeight);
|
DDRenderer = DirectX9Renderer::Create(DDSDesc.dwWidth, DDSDesc.dwHeight);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user