ソースを参照

resource: resource path must have extension

Daniele Bartolini 5 年 前
コミット
d4e93436c5
1 ファイル変更1 行追加0 行削除
  1. 1 0
      src/resource/resource_id.cpp

+ 1 - 0
src/resource/resource_id.cpp

@@ -13,6 +13,7 @@ namespace crown
 {
 {
 ResourceId resource_id(const char* path)
 ResourceId resource_id(const char* path)
 {
 {
+	CE_ASSERT(path::extension(path) != NULL);
 	const char* type = path::extension(path);
 	const char* type = path::extension(path);
 	const u32 len = u32(type - path - 1);
 	const u32 len = u32(type - path - 1);
 	return resource_id(type, strlen32(type), path, len);
 	return resource_id(type, strlen32(type), path, len);