Skip to content

Commit

Permalink
FIX unintelligible sequence of decimal characters on savedialog.
Browse files Browse the repository at this point in the history
    ppge_atlas JPN font define ShiftJIS -> UTF8 is all ok.
    but, cannot use all of chinese character. bacause blockAlloc failed. 
    So no change drawing Kanji.
    you can try to change native/tools/atlastool.cpp USE_LEVEL for all of chinese character.

FIX savedialog XXXGetStatus() loop. for daungeon traveler 2.
    Can now be saved it.
FIX sceAtrac getCodec  InvalidMemory
  • Loading branch information
nachume committed May 1, 2013
1 parent 74b55cc commit eac08a4
Show file tree
Hide file tree
Showing 7 changed files with 23,316 additions and 21,713 deletions.
4 changes: 2 additions & 2 deletions Core/Dialog/PSPSaveDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -819,8 +819,8 @@ int PSPSaveDialog::Update()

int PSPSaveDialog::Shutdown()
{
if (status != SCE_UTILITY_STATUS_FINISHED)
return SCE_ERROR_UTILITY_INVALID_STATUS;
//if (status != SCE_UTILITY_STATUS_FINISHED)
// return SCE_ERROR_UTILITY_INVALID_STATUS;

PSPDialog::Shutdown();
param.SetPspParam(0);
Expand Down
5 changes: 3 additions & 2 deletions Core/HLE/sceAtrac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void deleteAtrac(int atracID) {
}
}

int getCodecType(int addr) {
int getCodecType(const u32 addr) {
int at3magic = Memory::Read_U16(addr + 20);
if (at3magic == AT3_MAGIC) {
return PSP_MODE_AT_3;
Expand Down Expand Up @@ -212,7 +212,8 @@ void Atrac::Analyze()
switch (chunkMagic) {
case FMT_CHUNK_MAGIC: {
if (chunkSize >= 16) {
atracChannels = (getCodecType(Memory::Read_U16(first.addr + offset )) == PSP_MODE_AT_3_PLUS) ? Memory::Read_U16(first.addr + offset + 2) : 2 ;
atracChannels = Memory::Read_U16(first.addr + offset + 2);
//atracChannels = (getCodecType(Memory::Read_U32(first.addr + offset )) == PSP_MODE_AT_3_PLUS) ? Memory::Read_U16(first.addr + offset + 2) : 2 ;
atracSampleRate = Memory::Read_U32(first.addr + offset + 4);
atracBitrate = Memory::Read_U32(first.addr + offset + 8);
atracBytesPerFrame = Memory::Read_U16(first.addr + offset + 12);
Expand Down
14 changes: 12 additions & 2 deletions Core/HLE/sceUtility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ void __UtilityShutdown()
netDialog.Shutdown();
}

int __UtilityGetStatus()
{
if (currentDialogType == UTILITY_DIALOG_NONE) {
return 0;
} else {
WARN_LOG(HLE, "__UtilityGetStatus() Faked dialog : wrong dialog type");
return SCE_ERROR_UTILITY_WRONG_TYPE;
}
}

int sceUtilitySavedataInitStart(u32 paramAddr)
{
if (currentDialogActive && currentDialogType != UTILITY_DIALOG_SAVEDATA)
Expand Down Expand Up @@ -369,7 +379,7 @@ int sceUtilityNetconfGetStatus()

int sceUtilityScreenshotGetStatus()
{
u32 retval = 0;//__UtilityGetStatus();
u32 retval = __UtilityGetStatus();
ERROR_LOG(HLE, "UNIMPL %i=sceUtilityScreenshotGetStatus()", retval);
return retval;
}
Expand All @@ -381,7 +391,7 @@ void sceUtilityGamedataInstallInitStart(u32 unkown)

int sceUtilityGamedataInstallGetStatus()
{
u32 retval = 0;//__UtilityGetStatus();
u32 retval = __UtilityGetStatus();
ERROR_LOG(HLE, "UNIMPL %i=sceUtilityGamedataInstallGetStatus()", retval);
return retval;
}
Expand Down
45,004 changes: 23,298 additions & 21,706 deletions Core/Util/ppge_atlas.cpp

Large diffs are not rendered by default.

Binary file modified android/assets/ppge_atlas.zim
Binary file not shown.
Binary file modified assets/ppge_atlas.zim
Binary file not shown.
2 changes: 1 addition & 1 deletion ppge_atlasscript.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
2048
font UBUNTU24 C:/Windows/Fonts/KozGoPro-Medium.otf UWkhcGR 24
font UBUNTU24 C:/Windows/Fonts/KozGoPro-Medium.otf UWkhcsGR 24
image I_CROSS source_assets/image/cross.png copy
image I_CIRCLE source_assets/image/circle.png copy
image I_SQUARE source_assets/image/square.png copy
Expand Down

0 comments on commit eac08a4

Please sign in to comment.