Daniele Bartolini 9 lat temu
rodzic
commit
5766a2d744

+ 5 - 5
src/core/filesystem/filesystem_apk.cpp

@@ -93,7 +93,7 @@ public:
 
 	u32 write(const void* /*data*/, u32 /*size*/)
 	{
-		CE_ASSERT(false, "Apk files are read only!");
+		CE_FATAL("Apk files are read only!");
 		return 0;
 	}
 
@@ -145,22 +145,22 @@ u64 FilesystemApk::last_modified_time(const char* path)
 
 void FilesystemApk::create_directory(const char* /*path*/)
 {
-	CE_ASSERT(false, "Cannot create directory in Android assets folder");
+	CE_FATAL("Cannot create directory in Android assets folder");
 }
 
 void FilesystemApk::delete_directory(const char* /*path*/)
 {
-	CE_ASSERT(false, "Cannot delete directory in Android assets folder");
+	CE_FATAL("Cannot delete directory in Android assets folder");
 }
 
 void FilesystemApk::create_file(const char* /*path*/)
 {
-	CE_ASSERT(false, "Cannot create file in Android assets folder");
+	CE_FATAL("Cannot create file in Android assets folder");
 }
 
 void FilesystemApk::delete_file(const char* /*path*/)
 {
-	CE_ASSERT(false, "Cannot delete file in Android assets folder");
+	CE_FATAL("Cannot delete file in Android assets folder");
 }
 
 void FilesystemApk::list_files(const char* path, Vector<DynamicString>& files)

+ 4 - 4
src/core/memory/memory.cpp

@@ -10,26 +10,26 @@
 
 // void* operator new(size_t) throw (std::bad_alloc)
 // {
-// 	CE_ASSERT(false, "operator new forbidden");
+// 	CE_FATAL("operator new forbidden");
 
 // 	return NULL;
 // }
 
 // void* operator new[](size_t) throw (std::bad_alloc)
 // {
-// 	CE_ASSERT(false, "operator new[] forbidden");
+// 	CE_FATAL("operator new[] forbidden");
 
 // 	return NULL;
 // }
 
 // void operator delete(void*) throw ()
 // {
-// 	CE_ASSERT(false, "operator delete forbidden");
+// 	CE_FATAL("operator delete forbidden");
 // }
 
 // void operator delete[](void*) throw ()
 // {
-// 	CE_ASSERT(false, "operator delete[] forbidden");
+// 	CE_FATAL("operator delete[] forbidden");
 // }
 
 namespace crown

+ 1 - 1
src/device/device.cpp

@@ -659,7 +659,7 @@ void Device::destroy_world(World& w)
 		}
 	}
 
-	CE_ASSERT(false, "Bad world");
+	CE_FATAL("Bad world");
 }
 
 ResourcePackage* Device::create_resource_package(StringId64 id)

+ 2 - 2
src/device/input_device.cpp

@@ -80,7 +80,7 @@ u8 InputDevice::button_id(StringId32 name)
 			return i;
 	}
 
-	CE_ASSERT(false, "Unknown button name");
+	CE_FATAL("Unknown button name");
 	return 0;
 }
 
@@ -92,7 +92,7 @@ u8 InputDevice::axis_id(StringId32 name)
 			return i;
 	}
 
-	CE_ASSERT(false, "Unknown axis name");
+	CE_FATAL("Unknown axis name");
 	return 0;
 }
 

+ 1 - 1
src/resource/mesh_resource.h

@@ -58,7 +58,7 @@ struct MeshResource
 				return geometries[i];
 		}
 
-		CE_ASSERT(false, "Mesh name not found");
+		CE_FATAL("Mesh name not found");
 		return NULL;
 	}
 };

+ 1 - 1
src/world/unit_manager.cpp

@@ -83,7 +83,7 @@ void UnitManager::unregister_destroy_function(void* user_ptr)
 		}
 	}
 
-	CE_ASSERT(false, "Bad destroy function");
+	CE_FATAL("Bad destroy function");
 }
 
 void UnitManager::trigger_destroy_callbacks(UnitId id)

+ 1 - 1
src/world/world.cpp

@@ -380,7 +380,7 @@ void World::stop_sound(SoundInstanceId id)
 
 void World::link_sound(SoundInstanceId /*id*/, UnitId /*unit*/, s32 /*node*/)
 {
-	CE_ASSERT(false, "Not implemented yet");
+	CE_FATAL("Not implemented yet");
 }
 
 void World::set_listener_pose(const Matrix4x4& pose)