mirror of https://github.com/libAthena/athena.git
Fix compilation
This commit is contained in:
parent
9a7bee95c4
commit
10b36df71f
|
@ -14,7 +14,7 @@ set(ATHENA_MINOR_VERSION 3)
|
|||
set(ATHENA_PATCH_VERSION 0)
|
||||
set(ATHENA_VERSION
|
||||
${ATHENA_MAJOR_VERSION}.${ATHENA_MINOR_VERSION}.${ATHENA_PATCH_VERSION})
|
||||
set(ATHENA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
set(ATHENA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include CACHE INTERNAL "Athena Include Path")
|
||||
|
||||
################
|
||||
# Athena Build #
|
||||
|
@ -22,7 +22,7 @@ set(ATHENA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|||
|
||||
add_subdirectory(extern)
|
||||
|
||||
include_directories(${ATHENA_INCLUDE_DIR} ${LZO_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${LZO_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND CORE_EXTRA src/win32_largefilewrapper.c include/win32_largefilewrapper.h
|
||||
|
|
|
@ -95,12 +95,16 @@ void WiiSaveWriter::writeBanner(WiiBanner* banner)
|
|||
writeInt16(banner->animationSpeed());
|
||||
seek(22);
|
||||
|
||||
writeStringAsWString(banner->title());
|
||||
for (char16_t c : banner->title())
|
||||
writeUint16(c);
|
||||
writeUint16(0);
|
||||
|
||||
if (position() != 0x0080)
|
||||
seek(0x0080, SeekOrigin::Begin);
|
||||
|
||||
writeStringAsWString(banner->subtitle());
|
||||
for (char16_t c : banner->subtitle())
|
||||
writeUint16(c);
|
||||
writeUint16(0);
|
||||
|
||||
if (position() != 0x00C0)
|
||||
seek(0x00C0, SeekOrigin::Begin);
|
||||
|
|
Loading…
Reference in New Issue