Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- u64 StrTitleIdToLong(char * str_title_id, u8 title_type)
- {
- //Hmm somewhat failed with 64 bit bitwise operations, hence below senseless switch code..
- //Though possibly it's irrelevant
- u64 title_id;
- if (title_type=='1') {
- title_id = 0x0001000100000000LL;
- } else if (title_type =='2') {
- title_id = 0x0001000200000000LL;
- } else if (title_type =='4') {
- title_id = 0x0001000400000000LL;
- } else if (title_type =='8') {
- title_id = 0x0001000800000000LL;
- } else return 0LL;
- title_id = title_id +
- (((u64)str_title_id[0])<<24) +
- (((u64)str_title_id[1])<<16) +
- (((u64)str_title_id[2])<<8) +
- ((u64)str_title_id[3]);
- return title_id;
- }
Add Comment
Please, Sign In to add comment