Skip to content

Commit

Permalink
Start work on ec (#307)
Browse files Browse the repository at this point in the history
* Don't wrap lines in MWCC output *please*
Makes things much easier to follow lol

* Fix MSL_C++ `locale` link issues

* Fix warnings in `iterator` header

* Initial `ec` object config

* "let's do this first", i said; "it'll be an easy start", i said
little did i know what cryptography horrors awaited me

* Make `src` folder for ec

* Tell STLport to bring in MSL std in ec

* ec_md5.cpp

* Initial progress on ec_string
Lots of inlining shenanigans, -O4,s is stifling things

* shr_time_bw.c, almost got shr_time_bw.c

* bless you Cuyler

* Some progress on ec_md5c.c
many pains to work out still

* Quazal::MD5 mostly done
Figured I'd do this along the way lol

* Fix IDE-only errors in __mem.h

* ECResult

* ec logging prototypes

* ec_mem.cpp

* ec_base64.cpp functionally equivalent

* fix std::allocator

* Implement basic iterator adapters

* Make Metrowerks::compressed_pair work correctly with reference types

* Fill out ECAllocator

* ec::hex_decode/encode functionally equivalent

* small tweak to a couple ec_mem strings
  • Loading branch information
TheNathannator authored Aug 17, 2024
1 parent d7d67b8 commit 3123464
Show file tree
Hide file tree
Showing 39 changed files with 3,256 additions and 152 deletions.
29 changes: 29 additions & 0 deletions config/SZBE69_B8/flags.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"-gccinc",

"-maxerrors 1",
"-nowraplines",

"-proc gekko",
"-align powerpc",
Expand Down Expand Up @@ -215,6 +216,34 @@
"-func_align 4",
"-O4,p"
]
},
"sdk/ec": {
"base": "base",
"flags": [
"-sdata 0",
"-sdata2 0",

"-func_align 4",
"-Cpp_exceptions on",

"-O4,s",
"-inline noauto",
"-ipa file",

"-d _STLP_WHOLE_NATIVE_STD",
"-d _STLP_DONT_REDEFINE_STD"
]
},
"sdk/ec_c": {
"base": "base",
"flags": [
"-lang=c99",
"-O4,s",
"-inline noauto",

"-d _STLP_WHOLE_NATIVE_STD",
"-d _STLP_DONT_REDEFINE_STD"
]
}
}
}
59 changes: 53 additions & 6 deletions config/SZBE69_B8/objects.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@

"network/ObjDup/DOFilter.cpp": "NonMatching",

"network/Plugins/JobGetPublicURL.cpp": "Matching",
"network/Plugins/MD5.cpp": "NonMatching",
"network/Plugins/ZLibPlugin.cpp": "Matching",

"network/Plugins/JobGetPublicURL.cpp": "Matching",
"network/Services/UserMessage.cpp": "Matching"
}
},
Expand Down Expand Up @@ -770,10 +771,7 @@
"status": "Equivalent",
"comment": "Weak method ordering issues"
},
"sdk/PowerPC_EABI_Support/MSL/MSL_C++/MSL_Common/locale.cpp": {
"status": "LinkIssues",
"comment": "Weak method link ordering issues relating with msl_thread"
},
"sdk/PowerPC_EABI_Support/MSL/MSL_C++/MSL_Common/locale.cpp": "Matching",
"sdk/PowerPC_EABI_Support/MSL/MSL_C++/MSL_Common/msl_thread.cpp": "Matching"
}
},
Expand Down Expand Up @@ -836,9 +834,58 @@
},
"sdk/ec": {
"mw_version": "Wii/1.3",
"cflags": "base",
"cflags": "sdk/ec",
"objects": {
"sdk/ec/src/ec_api.cpp": "NonMatching",
"sdk/ec/src/ec_asyncOp.cpp": "NonMatching",
"sdk/ec/src/ec_base64.cpp": "Equivalent",
"sdk/ec/src/ec_checkECard.cpp": "NonMatching",
"sdk/ec/src/ec_checkReg.cpp": "NonMatching",
"sdk/ec/src/ec_chkDevStat.cpp": "NonMatching",
"sdk/ec/src/ec_chkDownload_bw.cpp": "NonMatching",

"sdk/ec/src/ec_connect.cpp": "NonMatching",
"sdk/ec/src/ec_content.cpp": "NonMatching",
"sdk/ec/src/ec_csup.cpp": "NonMatching",
"sdk/ec/src/ec_deleteContents.cpp": "NonMatching",
"sdk/ec/src/ec_dk.cpp": "NonMatching",
"sdk/ec/src/ec_downloadContents.cpp": "NonMatching",
"sdk/ec/src/ec_file_bw.cpp": "NonMatching",
"sdk/ec/src/ec_getContentsResReq.cpp": "NonMatching",
"sdk/ec/src/ec_getTitle.cpp": "NonMatching",
"sdk/ec/src/ec_getTitleResReq.cpp": "NonMatching",
"sdk/ec/src/ec_http_bw.cpp": "NonMatching",

"sdk/ec/src/ec_list.cpp": "NonMatching",
"sdk/ec/src/ec_listCatalog.cpp": "NonMatching",
"sdk/ec/src/ec_listContentDownloadInfos.cpp": "NonMatching",
"sdk/ec/src/ec_listContentSetGroups.cpp": "NonMatching",
"sdk/ec/src/ec_listContentSets.cpp": "NonMatching",
"sdk/ec/src/ec_listECardItems.cpp": "NonMatching",
"sdk/ec/src/ec_listPurchaseHistory.cpp": "NonMatching",
"sdk/ec/src/ec_listServiceItems.cpp": "NonMatching",
"sdk/ec/src/ec_listTitleContents.cpp": "NonMatching",
"sdk/ec/src/ec_listTitles.cpp": "NonMatching",

"sdk/ec/src/ec_md5.cpp": "Matching",
"sdk/ec/src/ec_mem.cpp": "Matching",
"sdk/ec/src/ec_misc.cpp": "NonMatching",
"sdk/ec/src/ec_purchaseTitle.cpp": "NonMatching",
"sdk/ec/src/ec_register.cpp": "NonMatching",
"sdk/ec/src/ec_shoplog_bw.cpp": "NonMatching",
"sdk/ec/src/ec_soap.cpp": "NonMatching",
"sdk/ec/src/ec_string.cpp": "NonMatching",
"sdk/ec/src/ec_sysconfig_bw.cpp": "NonMatching"
}
},
"sdk/ec_c": {
"mw_version": "Wii/1.3",
"cflags": "sdk/ec_c",
"objects": {
"sdk/ec/src/ec_md5c.c": "NonMatching",

"sdk/ec/src/shr_th_bw.c": "Matching",
"sdk/ec/src/shr_time_bw.c": "Matching"
}
},
"sdk/NdevExi2A": {
Expand Down
Loading

0 comments on commit 3123464

Please sign in to comment.