Fix compilation

This commit is contained in:
Phillip Stephens 2018-06-17 18:43:24 -07:00
parent 9a7bee95c4
commit 10b36df71f
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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);