Loading sprites and tiles both work correctly with relative paths, now using akgl_path_relative* helpers

This commit is contained in:
2026-05-24 19:57:43 -04:00
parent 980bbc56fb
commit 8f613397d6
5 changed files with 51 additions and 38 deletions

View File

@@ -23,7 +23,7 @@ akerr_ErrorContext *akgl_string_copy(akgl_String *src, akgl_String *dst, int cou
if ( count == 0 ) {
count = AKGL_MAX_STRING_LENGTH;
}
if ( (char *)dst->data != strncpy((char *)&src->data, (char *)&dst->data, count) ) {
if ( (char *)dst->data != strncpy((char *)&dst->data, (char *)&src->data, count) ) {
FAIL_RETURN(e, errno, "strncpy");
}
SUCCEED_RETURN(e);