#define TICKS_PER_MSEC (268123.480)
void showRomPathMarquee(const int XposValue,int Ypos, std::string text) {
std::string path = text;
while(!(hidKeysDown() & KEY_UP)){
std::string scrolled,temp,temp2;
hidScanInput();
sf2d_start_frame(GFX_TOP, GFX_LEFT);
sf2d_start_frame(GFX_TOP, GFX_LEFT);
temp = path.substr(1,(path.length()));
temp2 = path.substr(0,1);
path = temp + temp2;
if(path.length() + 1 == ' '){
sftd_draw_textf(font, XposValue, Ypos, SET_ALPHA(color_data->color, 255), 12, "%s %s", temp.c_str(), temp2.c_str());
}else{
sftd_draw_textf(font, XposValue, Ypos, SET_ALPHA(color_data->color, 255), 12, "%s", path.c_str());
}
sf2d_end_frame();
sf2d_swapbuffers();
svcSleepThread(500000000 ); // sleep for 0,5 sec
}
}