|
|
@ -17,6 +17,7 @@
|
|
|
|
#include "SDL_events.h"
|
|
|
|
#include "SDL_events.h"
|
|
|
|
#include "SDL_keyboard.h"
|
|
|
|
#include "SDL_keyboard.h"
|
|
|
|
#include "TileTypes.h"
|
|
|
|
#include "TileTypes.h"
|
|
|
|
|
|
|
|
#include "VersionInfo.h"
|
|
|
|
#if DF_VERSION_INT > 34011
|
|
|
|
#if DF_VERSION_INT > 34011
|
|
|
|
#include "DFHackVersion.h"
|
|
|
|
#include "DFHackVersion.h"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -191,9 +192,9 @@ command_result generate_image(color_ostream &out, vector <string> & parameters)
|
|
|
|
imageRef.site_id = -1;
|
|
|
|
imageRef.site_id = -1;
|
|
|
|
imageRef.subid = -1;
|
|
|
|
imageRef.subid = -1;
|
|
|
|
|
|
|
|
|
|
|
|
if (df::global::getArtImage)
|
|
|
|
GET_IMAGE getImage = reinterpret_cast<GET_IMAGE>(Core::getInstance().vinfo->getAddress("rfr_get_art_image"));
|
|
|
|
|
|
|
|
if (getImage)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
df::art_image * (__thiscall *getImage)(df::world*,df::art_image_ref *, int *) = (df::art_image * (__thiscall*)(df::world*, df::art_image_ref *, int *))df::global::getArtImage;
|
|
|
|
|
|
|
|
int subid = -1;
|
|
|
|
int subid = -1;
|
|
|
|
auto image = getImage(world,&imageRef, &subid);
|
|
|
|
auto image = getImage(world,&imageRef, &subid);
|
|
|
|
out.print("Id: %d, subid: %d\n", image->id, image->subid);
|
|
|
|
out.print("Id: %d, subid: %d\n", image->id, image->subid);
|
|
|
|