Add install for nost-pack
This commit is contained in:
parent
e8b7d45cfa
commit
aaa870a2e9
@ -17,6 +17,13 @@ target_link_libraries(
|
||||
NostalgiaCore
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS
|
||||
nost-pack
|
||||
RUNTIME DESTINATION
|
||||
bin
|
||||
)
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR OFF)
|
||||
set(CMAKE_AUTOMOC OFF)
|
||||
|
||||
|
@ -64,7 +64,7 @@ int run(ClArgs args) {
|
||||
auto compact = args.getBool("c");
|
||||
QMap<QRgb, int> colors;
|
||||
QImage src(inPath);
|
||||
const auto imgDataBuffSize = sizeof(Pallete) + src.width() * src.height();
|
||||
const auto imgDataBuffSize = sizeof(Pallete) - 1 + src.width() * src.height();
|
||||
uint8_t imgDataBuff[imgDataBuffSize];
|
||||
GbaImageData *id = (GbaImageData*) imgDataBuff;
|
||||
int colorId = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user