shithub: cstory

Download patch

ref: ace79d13f11984cd334ec65479c9e5a042eb99f4
parent: 4c752e08cea94dc5995d48474ff978f6b62af4cd
author: cuckydev <cuckydev@users.noreply.github.com>
date: Sun Jan 20 13:02:31 EST 2019

added info to bin2h

--- a/res/bin2h.cpp
+++ b/res/bin2h.cpp
@@ -1,3 +1,6 @@
+//Bin2h by Cucky
+//Converts files to the .h's expected by Cave Story Engine for resources.
+
 #include <stdio.h>
 #include <string>
 #include <string.h>
@@ -12,8 +15,8 @@
 	{
 		std::string filename = argv[1];
 
-		// Remove directory if present.
-		// Do this before extension removal incase directory has a period character.
+		//Remove directory if present.
+		//Do this before extension removal incase directory has a period character.
 		const size_t last_slash_idx = filename.find_last_of("\\/");
 		if (std::string::npos != last_slash_idx)
 		{
@@ -20,7 +23,7 @@
 			filename.erase(0, last_slash_idx + 1);
 		}
 
-		// Remove extension if present.
+		//Remove extension if present.
 		const size_t period_idx = filename.rfind('.');
 		if (std::string::npos != period_idx)
 		{