diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-05-10 14:58:13 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-05-10 15:03:20 -0400 |
| commit | 620ee30219256afb11275c2a7881c4468a9a744f (patch) | |
| tree | daa2cf4d9a232d1f8dfccc855066169236a756f5 /src/serialization-component.cpp | |
| parent | ecf91229fb5c9150f2d60d97652bf0024a5c3435 (diff) | |
serialization: err messages end with new line
Diffstat (limited to 'src/serialization-component.cpp')
| -rw-r--r-- | src/serialization-component.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/serialization-component.cpp b/src/serialization-component.cpp index afa3b89..3ff4d5d 100644 --- a/src/serialization-component.cpp +++ b/src/serialization-component.cpp @@ -240,21 +240,21 @@ void pke_deserialize_instance(srlztn_deserialize_helper *h, pke_kve_container *k if (strstr(kvec->arr[i].key, SRLZTN_INSTANCE_COMPONENT_MASS)) { stn_res = pk_stn(&mass, kvec->arr[i].val, nullptr); if (stn_res != PK_STN_RES_SUCCESS) { - fprintf(stderr, "[pke_deserialize_instance] Failed to parse %s", SRLZTN_INSTANCE_COMPONENT_MASS); + fprintf(stderr, "[pke_deserialize_instance] Failed to parse %s\n", SRLZTN_INSTANCE_COMPONENT_MASS); } continue; } if (strstr(kvec->arr[i].key, SRLZTN_INSTANCE_COMPONENT_COLLISION_LAYER)) { stn_res = pk_stn(&comp.physicsLayer, kvec->arr[i].val, nullptr, 10); if (stn_res != PK_STN_RES_SUCCESS) { - fprintf(stderr, "[pke_deserialize_instance] Failed to parse %s", SRLZTN_INSTANCE_COMPONENT_COLLISION_LAYER); + fprintf(stderr, "[pke_deserialize_instance] Failed to parse %s\n", SRLZTN_INSTANCE_COMPONENT_COLLISION_LAYER); } continue; } if (strstr(kvec->arr[i].key, SRLZTN_INSTANCE_COMPONENT_COLLISION_MASK)) { stn_res = pk_stn(&comp.physicsMask, kvec->arr[i].val, nullptr, 10); if (stn_res != PK_STN_RES_SUCCESS) { - fprintf(stderr, "[pke_deserialize_instance] Failed to parse %s", SRLZTN_INSTANCE_COMPONENT_COLLISION_MASK); + fprintf(stderr, "[pke_deserialize_instance] Failed to parse %s\n", SRLZTN_INSTANCE_COMPONENT_COLLISION_MASK); } continue; } @@ -292,7 +292,7 @@ void pke_deserialize_instance(srlztn_deserialize_helper *h, pke_kve_container *k */ // typedef Entity_Base *CreateInst(); // entity = reinterpret_cast<CreateInst*>(et_ptr->createInstanceCallback.func)(); - fprintf(stderr, "[%s] Attempted to call EntityType::createInstanceCallback and we have not yet defined a valid function signature", __FILE__); + fprintf(stderr, "[%s] Attempted to call EntityType::createInstanceCallback and we have not yet defined a valid function signature\n", __FILE__); } else { map.created_entity = EntityType_CreateGenericInstance(et_ptr, h->scene, &comp, &inst_pos); } @@ -308,7 +308,7 @@ void pke_deserialize_instance(srlztn_deserialize_helper *h, pke_kve_container *k } pk_arr_reset(&instances); if (map.created_instance == nullptr) { - fprintf(stderr, "[pke_deserialize_instance] Failed to find created instance for creating mapping"); + fprintf(stderr, "[pke_deserialize_instance] Failed to find created instance for creating mapping\n"); } else { pk_arr_append(&h->mapping, &map); } |
