mirror of
				https://github.com/hedge-dev/UnleashedRecomp.git
				synced 2025-10-30 07:11:05 +00:00 
			
		
		
		
	Merge 7740f6587d into 9ace79a4d2
				
					
				
			This commit is contained in:
		
						commit
						901654fed1
					
				
					 2 changed files with 47 additions and 0 deletions
				
			
		|  | @ -64,6 +64,30 @@ bool UseAlternateTitleMidAsmHook() | ||||||
|     return isSWA; |     return isSWA; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | bool UseAlternateTitleStaffRollMidAsmHook(PPCRegister& r1) | ||||||
|  | { | ||||||
|  |     auto pGroupName = (Hedgehog::Base::CSharedString*)g_memory.Translate(r1.s64 + 0x60); | ||||||
|  | 
 | ||||||
|  |     if (Config::UseAlternateTitle) | ||||||
|  |     { | ||||||
|  |         // Redirect English title to Japanese title.
 | ||||||
|  |         if (strcmp(pGroupName->c_str(), "OFCI5") == 0 || strcmp(pGroupName->c_str(), "OTLR11") == 0) | ||||||
|  |             return Config::Language == ELanguage::Japanese; | ||||||
|  | 
 | ||||||
|  |         // Redirect Japanese title to English title.
 | ||||||
|  |         if (strcmp(pGroupName->c_str(), "JFCI7") == 0 || strcmp(pGroupName->c_str(), "JTLR13") == 0) | ||||||
|  |             return Config::Language != ELanguage::Japanese; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     if (pGroupName->c_str()[0] == 'J') | ||||||
|  |         return Config::Language == ELanguage::Japanese; | ||||||
|  | 
 | ||||||
|  |     if (pGroupName->c_str()[0] == 'O') | ||||||
|  |         return Config::Language != ELanguage::Japanese; | ||||||
|  | 
 | ||||||
|  |     return true; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| /* Hook function that gets the game region
 | /* Hook function that gets the game region
 | ||||||
|    and force result to zero for Japanese |    and force result to zero for Japanese | ||||||
|    to display the correct logos. */ |    to display the correct logos. */ | ||||||
|  |  | ||||||
|  | @ -1101,12 +1101,35 @@ name = "ObjGrindDashPanelAllocMidAsmHook" | ||||||
| address = 0x82614948 | address = 0x82614948 | ||||||
| registers = ["r3"] | registers = ["r3"] | ||||||
| 
 | 
 | ||||||
|  | # Title screen logo | ||||||
| [[midasm_hook]] | [[midasm_hook]] | ||||||
| name = "UseAlternateTitleMidAsmHook" | name = "UseAlternateTitleMidAsmHook" | ||||||
| address = 0x82580F44 | address = 0x82580F44 | ||||||
| jump_address_on_true = 0x82580F48 | jump_address_on_true = 0x82580F48 | ||||||
| jump_address_on_false = 0x82580FA0 | jump_address_on_false = 0x82580FA0 | ||||||
| 
 | 
 | ||||||
|  | # Advertise movie logo | ||||||
|  | [[midasm_hook]] | ||||||
|  | name = "UseAlternateTitleMidAsmHook" | ||||||
|  | address = 0x82B73780 | ||||||
|  | jump_address_on_true = 0x82B73784 | ||||||
|  | jump_address_on_false = 0x82B737F8 | ||||||
|  | 
 | ||||||
|  | # Opening movie logo | ||||||
|  | [[midasm_hook]] | ||||||
|  | name = "UseAlternateTitleMidAsmHook" | ||||||
|  | address = 0x82B73630 | ||||||
|  | jump_address_on_true = 0x82B73634 | ||||||
|  | jump_address_on_false = 0x82B736B0 | ||||||
|  | 
 | ||||||
|  | # Staff roll logo | ||||||
|  | [[midasm_hook]] | ||||||
|  | name = "UseAlternateTitleStaffRollMidAsmHook" | ||||||
|  | address = 0x8257EBF0 | ||||||
|  | registers = ["r1"] | ||||||
|  | jump_address_on_true = 0x8257EC7C | ||||||
|  | jump_address_on_false = 0x8257ECC0 | ||||||
|  | 
 | ||||||
| [[midasm_hook]] | [[midasm_hook]] | ||||||
| name = "EndingTextAllocMidAsmHook" | name = "EndingTextAllocMidAsmHook" | ||||||
| address = 0x8257E284 | address = 0x8257E284 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Hyper
						Hyper