From 2698c84576447535f397fafcb9f5f06290c3596a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 28 Nov 2014 17:00:53 +0000 Subject: Minor tweak to bin2cpp, it now will now include a comment showing you the name of each file in the source. It would be nice to have an enumeration or something at some point too. --- src/tools/bin2cpp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/bin2cpp.cpp b/src/tools/bin2cpp.cpp index 4214b34..cd57086 100644 --- a/src/tools/bin2cpp.cpp +++ b/src/tools/bin2cpp.cpp @@ -194,7 +194,8 @@ int main( int argc, char *argv[] ) int idx = 0; for( Bu::StringList::iterator i = opt.slInput.begin(); i; i++ ) { - fSrc << "\t\tcase " << Bu::__calcHashCode( *i ) << "UL:" << fSrc.nl + fSrc << "\t\tcase " << Bu::__calcHashCode( *i ) << "UL: // \"" + << *i << "\"" << fSrc.nl << "\t\t\treturn aFile[" << idx << "];" << fSrc.nl; idx++; } -- cgit v1.2.3