mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-17 12:51:15 +00:00
add vita to dist folder
This commit is contained in:
parent
fae97351a5
commit
b12d246b3f
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -151,6 +151,13 @@ jobs:
|
|||||||
cd build
|
cd build
|
||||||
mkdir dist
|
mkdir dist
|
||||||
mv *.3dsx dist/
|
mv *.3dsx dist/
|
||||||
|
|
||||||
|
- name: Package (Vita)
|
||||||
|
if: ${{ matrix.vita }}
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
mkdir dist
|
||||||
|
mv *.vpk dist/
|
||||||
|
|
||||||
- name: Upload Build Artifacts
|
- name: Upload Build Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
@ -548,6 +548,11 @@ if (ISLE_BUILD_APP)
|
|||||||
ISLE/3ds/config.cpp
|
ISLE/3ds/config.cpp
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
if(VITA)
|
||||||
|
target_sources(isle PRIVATE
|
||||||
|
ISLE/vita/config.cpp
|
||||||
|
)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ISLE_BUILD_CONFIG)
|
if (ISLE_BUILD_CONFIG)
|
||||||
@ -672,11 +677,6 @@ if(EMSCRIPTEN)
|
|||||||
DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
if(VITA)
|
|
||||||
install(FILES "$<TARGET_FILE_DIR:isle>/isle.vpk" "$<TARGET_FILE_DIR:isle>/isle.self"
|
|
||||||
DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_subdirectory(packaging)
|
add_subdirectory(packaging)
|
||||||
|
|
||||||
@ -705,6 +705,8 @@ if(VITA)
|
|||||||
|
|
||||||
vita_create_self(isle.self isle UNSAFE)
|
vita_create_self(isle.self isle UNSAFE)
|
||||||
|
|
||||||
|
#add_subdirectory(CONFIG_vita)
|
||||||
|
|
||||||
if(VITA_USE_OPENGLES2)
|
if(VITA_USE_OPENGLES2)
|
||||||
set(VPK_FILE_ARGS)
|
set(VPK_FILE_ARGS)
|
||||||
get_target_property(gles_modules GLESv2 MODULES)
|
get_target_property(gles_modules GLESv2 MODULES)
|
||||||
|
|||||||
@ -55,6 +55,10 @@
|
|||||||
#include "3ds/config.h"
|
#include "3ds/config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __vita__
|
||||||
|
#include "vita/config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(IsleApp, 0x8c)
|
DECOMP_SIZE_ASSERT(IsleApp, 0x8c)
|
||||||
|
|
||||||
// GLOBAL: ISLE 0x410030
|
// GLOBAL: ISLE 0x410030
|
||||||
@ -835,6 +839,9 @@ bool IsleApp::LoadConfig()
|
|||||||
|
|
||||||
#ifdef __3DS__
|
#ifdef __3DS__
|
||||||
N3DS_SetupDefaultConfigOverrides(dict);
|
N3DS_SetupDefaultConfigOverrides(dict);
|
||||||
|
#endif
|
||||||
|
#ifdef __vita__
|
||||||
|
VITA_SetupDefaultConfigOverrides(dict);
|
||||||
#endif
|
#endif
|
||||||
iniparser_dump_ini(dict, iniFP);
|
iniparser_dump_ini(dict, iniFP);
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "New config written at '%s'", iniConfig);
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "New config written at '%s'", iniConfig);
|
||||||
|
|||||||
17
ISLE/vita/config.cpp
Normal file
17
ISLE/vita/config.cpp
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <SDL3/SDL_log.h>
|
||||||
|
#include <iniparser.h>
|
||||||
|
|
||||||
|
void VITA_SetupDefaultConfigOverrides(dictionary* p_dictionary)
|
||||||
|
{
|
||||||
|
SDL_Log("Overriding default config for VITA");
|
||||||
|
|
||||||
|
iniparser_set(p_dictionary, "isle:diskpath", "app0:");
|
||||||
|
iniparser_set(p_dictionary, "isle:cdpath", "app0:cd/");
|
||||||
|
iniparser_set(p_dictionary, "isle:UseJoystick", "true");
|
||||||
|
iniparser_set(p_dictionary, "isle:Draw Cursor", "true");
|
||||||
|
|
||||||
|
// Use e_noAnimation/cut transition
|
||||||
|
//iniparser_set(p_dictionary, "isle:Transition Type", "1");
|
||||||
|
}
|
||||||
8
ISLE/vita/config.h
Normal file
8
ISLE/vita/config.h
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#ifndef VITA_CONFIG_H
|
||||||
|
#define VITA_CONFIG_H
|
||||||
|
|
||||||
|
#include "dictionary.h"
|
||||||
|
|
||||||
|
void VITA_SetupDefaultConfigOverrides(dictionary* p_dictionary);
|
||||||
|
|
||||||
|
#endif // VITA_CONFIG_H
|
||||||
@ -1330,7 +1330,6 @@ void GXMRenderer::Resize(int width, int height, const ViewportTransform& viewpor
|
|||||||
m_width = width;
|
m_width = width;
|
||||||
m_height = height;
|
m_height = height;
|
||||||
m_viewportTransform = viewportTransform;
|
m_viewportTransform = viewportTransform;
|
||||||
SDL_Log("GXMRenderer::Resize TODO");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GXMRenderer::Clear(float r, float g, float b)
|
void GXMRenderer::Clear(float r, float g, float b)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user