mainWindow->LoadFile(filename);
if (!mainWindow->cartridgeLoaded)
- printf("Could not load file \"%s\"!\n", filename.toAscii().data());
+ printf("Could not load file \"%s\"!\n", filename.toUtf8().data());
}
mainWindow->show();
// strcpy(vjs.jagBootPath, generalTab->edit1->text().toAscii().data());
// strcpy(vjs.CDBootPath, generalTab->edit2->text().toAscii().data());
strcpy(vjs.EEPROMPath, CheckForTrailingSlash(
- generalTab->edit3->text()).toAscii().data());
+ generalTab->edit3->text()).toUtf8().data());
strcpy(vjs.ROMPath, CheckForTrailingSlash(
- generalTab->edit4->text()).toAscii().data());
+ generalTab->edit4->text()).toUtf8().data());
vjs.useJaguarBIOS = generalTab->useBIOS->isChecked();
vjs.GPUEnabled = generalTab->useGPU->isChecked();
if (vjs.hardwareTypeAlpine)
{
- strcpy(vjs.alpineROMPath, alpineTab->edit1->text().toAscii().data());
- strcpy(vjs.absROMPath, alpineTab->edit2->text().toAscii().data());
+ strcpy(vjs.alpineROMPath, alpineTab->edit1->text().toUtf8().data());
+ strcpy(vjs.absROMPath, alpineTab->edit2->text().toUtf8().data());
vjs.allowWritesToROM = alpineTab->writeROM->isChecked();
}
// Add mapping...
profileNum = freeProfile;
profile[profileNum].device = deviceList->itemData(deviceList->currentIndex()).toInt();
- strncpy(profile[profileNum].mapName, text.toAscii().data(), 31);
+ strncpy(profile[profileNum].mapName, text.toUtf8().data(), 31);
profile[profileNum].mapName[31] = 0;
profile[profileNum].preferredSlot = CONTROLLER1;
// ZIP files are special: They contain more than just the software now... ;-)
// So now we fish around inside them to pull out the stuff we want.
// Probably also need more stringent error checking as well... :-O
- fileSize = GetFileFromZIP(fileInfo.filePath().toAscii(), FT_SOFTWARE, buffer);
+ fileSize = GetFileFromZIP(fileInfo.filePath().toUtf8(), FT_SOFTWARE, buffer);
if (fileSize == 0)
return;
// See if we can fish out a label. :-)
if (haveZIPFile)
{
- uint32_t size = GetFileFromZIP(fileInfo.filePath().toAscii(), FT_LABEL, buffer);
+ uint32_t size = GetFileFromZIP(fileInfo.filePath().toUtf8(), FT_LABEL, buffer);
//printf("FT: Label size = %u bytes.\n", size);
if (size > 0)
powerButtonOn = false;
TogglePowerState();
// We have to load our software *after* the Jaguar RESET
- cartridgeLoaded = JaguarLoadFile(file.toAscii().data());
+ cartridgeLoaded = JaguarLoadFile(file.toUtf8().data());
SET32(jaguarMainRAM, 0, 0x00200000); // Set top of stack...
// This is icky because we've already done it
for(int i=1; i<numberOfDevices; i++)
{
set->setArrayIndex(i - 1);
- strcpy(deviceNames[i], set->value("deviceName").toString().toAscii().data());
+ strcpy(deviceNames[i], set->value("deviceName").toString().toUtf8().data());
#ifdef DEBUG_PROFILES
printf("Read device name: %s\n", deviceNames[i]);
#endif
{
set->setArrayIndex(i);
profile[i].device = set->value("deviceNum").toInt();
- strcpy(profile[i].mapName, set->value("mapName").toString().toAscii().data());
+ strcpy(profile[i].mapName, set->value("mapName").toString().toUtf8().data());
profile[i].preferredSlot = set->value("preferredSlot").toInt();
for(int j=0; j<21; j++)