-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some problems #1
Comments
Thanks for the bug report.
|
Update description too. This has a bit of memory overhead, but should work everywhere. Hooray for C++11 initializer lists.
It tried making the map (imo the important part) work. The vector is now a regular C array. Works too... Update to head and try it out. |
Awesome, got it working just fine with ES's ResourceManager. Worked perfectly, no modifications to the output files necessary! It'd be nice to set up CMake to automatically include every .cpp file in the data/converted folder instead of manually adding them (and even better, put all the resources in a different folder/filter in Visual Studio), but I don't know enough about CMake to do it. But that's not a res2h problem. :) |
To automatically include the files, try:
After defining the targets header and source files (in TARGET_SOURCES). You can build a VS filter "FILTER_NAME" for the folder "FOLDER_NAME" with the source_group CMake command and some regular expression magic:
What does NOT work (and is a bug imo) is to put all other files into a main filter (so the "header files" and "source files" filters go away). I tried lots of stuff, e.g.
But why that does not work is beyond me... |
Working on getting this to work for ES. Here's a few problems I've run into.
I'm invoking res2h with
res2h ./resources ./converted -s -h Resources.h -u ResourceUtil.cpp
#include "Resources.h"
when it should be#include "../Resources.h"
(or just don't include the header...as far as I can tell it's not necessary, at least for my uses)#include <string>
,#include <vector>
and#include <map>
.The text was updated successfully, but these errors were encountered: