summaryrefslogtreecommitdiff
path: root/include/JSystem
AgeCommit message (Collapse)Author
2021-01-06match some Z2Calc functions (#72)lepelog
* Z2Calc OK * inline definitions in random.h and format * set -enum int compiler flag and fix enum hacks * note for get_ufloat_1 inline * PR suggestions and UB note Co-authored-by: Pheenoh <pheenoh@gmail.com>
2021-01-06Refactor JUTFont symbols (#71)notyourav
* fix JUTFont args * fix Co-authored-by: Pheenoh <pheenoh@gmail.com>
2021-01-06JKRSolidHeap (#69)Jonathan Wase
* JKRSolidHeap progress * JKRSolidHeap, added const to virtual functions, and JKRHeap::TState * fixed braces * fix function overload * clang-format Co-authored-by: Julgodis <> Co-authored-by: Pheenoh <pheenoh@gmail.com>
2021-01-06JKRFileCache matched 22/24 (#73)Jonathan Wase
* progress * strlen, strcat, and strcchr * more functions from JKRFileCache * JKRFileCache 22/24 matched Co-authored-by: Julgodis <>
2021-01-05TObject and JStudio internals (#57)notyourav
* TObject * fix Co-authored-by: Pheenoh <pheenoh@gmail.com>
2021-01-05JKRMemArchive (#66)Jonathan Wase
* JKRArchivePri OK * JKRArchivePub OK * formatting * removed unused asm files and tried to fixed setExpandSize and getExpandSize * JKRMemArchive and created JKRCompression Co-authored-by: Julgodis <>
2021-01-04JKRArchive (#63)Jonathan Wase
* JKRArchivePri OK * JKRArchivePub OK * formatting * removed unused asm files and tried to fixed setExpandSize and getExpandSize Co-authored-by: Julgodis <>
2021-01-04close-to-matching mDoCPd_c::convert() (#61)Erin Moon
2021-01-03JKRFileLoader, JKRFileFinder, and JKRThread (#60)Jonathan Wase
* JKRFileLoader OK * JKRFileFinder progress * JKRFileFinder OK * JKRFileCache fix virtual function signatures * added OSThread and OSContext types * JKRThread fixed nonmatching functions Co-authored-by: Julgodis <> Co-authored-by: Pheenoh <pheenoh@gmail.com>
2021-01-03JKernel cleanup and DVD types (#59)Jonathan Wase
* JKRDecomp OK * JKRFile and JKRDvdFile cleanup * more DVD stuff and cleanup JKRDvdFile more * formatting * JKRHeap cleanup * formatting * JKRDisposer cleanup * JKRAramBlock and JKRAramHeap cleanup * fix merge error * fixed comments * forgot to save file... * fix DVDCBcallback Co-authored-by: Julgodis <>
2021-01-03swap in memcpy for func_80003540, correct some minor issues in dvd.h and ↵Pheenoh
JKRDVDFile.h
2021-01-03countUsed OKPheenoh
2021-01-03HeapCheck::heapDisplay OKPheenoh
2021-01-03JKRDecomp OK (#58)Jonathan Wase
* JKRDecomp OK * clang-format tool * JKRThread cleanup and fixed suggestions Co-authored-by: Julgodis <> Co-authored-by: Pheenoh <pheenoh@gmail.com>
2021-01-03JKRAramHeap and JKRAramPiece (#53)Jonathan Wase
* renamed func_XXX to _savegpr_XX * renamed func_XXX to _restgpr_XX * renamed func_XXX to _savefpr_XX * renamed func_XXX to _restfpr_XX * cleanup functions.h and moved intrisics to mwcc.h * formatting * cleanup functions.h * Added include/ar/ARQ.h * renamed func_XXX to _savegpr_25 * removed JKRAramPiece asm files * JKRAramHeap OK, JKRAramPiece OK * formatting * more formatting * Added const and removed explicit this-> * fixed merge problems * changed mMessages[1] to mMessage * foramatting Co-authored-by: Julgodis <> Co-authored-by: Pheenoh <pheenoh@gmail.com>
2021-01-03decomp some small files, do some cleanup (#42)Erin Moon
* remove leftover asm: JSUList.s * d_save_init: decomp * JMath/random: decomp * J3DUDL: fixup label * JAUClusterSound: decomp * c_API_controller_pad: decomp, elaborate globals/types * clang-format * don't add guards to functions.h * semantic merge of m_cpadInfo stuff * fix undef symbols Co-authored-by: Pheenoh <pheenoh@gmail.com>
2021-01-02Fixed _savegpr etc. (#54)Jonathan Wase
* renamed func_XXX to _savegpr_XX * renamed func_XXX to _restgpr_XX * renamed func_XXX to _savefpr_XX * renamed func_XXX to _restfpr_XX * cleanup functions.h and moved intrisics to mwcc.h * formatting * cleanup functions.h * fix bad-formatting from master Co-authored-by: Julgodis <>
2021-01-02adjust gameinfo sizing, rename inline register funcsPheenoh
2021-01-02Merge branch 'master' of https://github.com/zeldaret/tpPheenoh
2021-01-02more d_save funcs OK, initial map out of dcomifg_play_c and it's classesPheenoh
2021-01-02JKRAramBlock OK (#52)Jonathan Wase
Co-authored-by: Julgodis <>
2021-01-02JKRAssertHeap OK (#47)Jonathan Wase
* JKRAssertHeap OK * removed JKRAssertHeap asm files. Co-authored-by: Julgodis <>
2021-01-02M_do_controller_pad split and partially matched (#36)jdflyer
* m_Do_controller_pad split * Attempt to match and match mDoCPd_c::recalibrate * Fix Merge Errors * clang-format Co-authored-by: Pheenoh <pheenoh@gmail.com>
2020-12-31A few f_pc files (#26)lepelog
* f_pc_base, one non matching * some of f_pc_manager * f_pc_node OK * f_pc_pause partly * started node_req * more progress * most of node req * delete unused asm * node req header and param names * param renaming * header for manager * review comment struct names * fpcM_Management OK * int -> s32 * merge master * most of f_pc_create_iter * f_pc_stdcreate_req OK * f_pc_fstcreate OK * f_pc_leaf OK * f_pc_draw OK * f_pc_deletor partly * fix parameter type in f_pc_pause * review * review, use cPh enum and fix process_profile_definition struct * convert f_pc files to C * matched more functions * fix global.h * fix variable types * format * mpre Phs enum * fix merge errors * fix gamepad stopPatternedRumble * format * delete leftover files from merge * move asm to correct folder * revert f_pc from C to CPP * remove C hacks and format * format * OK
2020-12-29Split and decompile parts of JUTGamePad (#33)Erin Moon
* JUTGamePad.o: elaborate classes, split * JUTGamePad::CButton: decompile functions: - clear() - clear(JUTGamePad*) - setRepeat() * elaborate PAD* types in new header * decompile getNumBit() * elaborate JUTGamePad fields * move retyped externs from variables.h to JUTGamePad.h * elaborate JUTGamePadLongPress * JUTGamePad: decompile functions - initList() - init() - clear() - assign() - checkResetCallback() - checkResetSwitch() - clearForReset() - recalibrate() JUTGamePad: decompile * JUTGamePad::CStick::clear(): decompile * JUTGamePad::CRumble: decompile functions - startMotor() - stopMotor() - triggerPatternedRumble() - startPatternedRumble() - stopPatternedRumbleAtThePeriod() - setEnabled() * JUTGamePadLongPress::checkCallback(): decompile * nonmatching: JUTGamePad::CRumble::update() and JUTGamePad::getGamePad * JSUList<T>: allow access to JSUPtrList functions * functions.h: clear out some func decls that are no longer used * add notes in JUTGamePad.cpp * clang-format + add back extern funcs * fix some more extern labels Co-authored-by: Pheenoh <pheenoh@gmail.com>
2020-12-29JUTXfb: decompile (#38)Erin Moon
* m_Do_Reset: split and (some) decomp decompiles: - my_OSCancelAlarmAll() - destroyVideo() * mDoRst::reset(): decompile, plus some supporting code * split DVD* functions to dvd.h * mDoRst::resetCallBack(): decompile * JUTXfb: split * JUTXfb: decompile (except for almost-matching ctor) Elaborates JUTVideo and some related stuff. Decompiles the following functions: - JUTXfb::initiate() - JUTXfb::createManager() - JUTXfb::common_init() - JUTXfb::destroyManager() - JUTXfb::~JUTXfb() - JUTXfb::JUTXfb(): *almost* matching up to regalloc * clang-format and extern label modifications Co-authored-by: Pheenoh <pheenoh@gmail.com>
2020-12-26move asm in TUs to files, add diff.pyPheenoh
2020-12-26run clang-formatPheenoh
2020-12-25begin splitting d_a_alink (#34)TakaRikka
* begin splitting d_a_alink * fix Co-authored-by: Pheenoh <pheenoh@gmail.com>
2020-12-25m_Do_Reset: OK (#35)Erin Moon
* m_Do_Reset: split and (some) decomp decompiles: - my_OSCancelAlarmAll() - destroyVideo() * mDoRst::reset(): decompile, plus some supporting code * split DVD* functions to dvd.h * mDoRst::resetCallBack(): decompile
2020-12-13Z2StatusMgr (#24)TakaRikka
* split Z2SeMgr / begin split of Z2SeqMgr * Z2StatusMgr ok most of Z2StatusMgr done, rest split * name some class members * name some Z2SceneMgr vars Co-authored-by: Pheenoh <pheenoh@gmail.com>
2020-12-06add d_meter2_info methods, addBottleNum OK, getBombNum OK, isLetterReadFlag OKunknown
2020-12-06JKernel (#20)Jonathan Wase
* JKRDvdArchive.s split * JKRMemArchive.s split * JKRAramArchive.s split * JKRCompArchive.s split * JKRDecomp.s split * JKRDvdRipper.s split * JKRAramBlock.s split * JKRAramHeap.s split * JKRAramPiece.s split * JKRAramStream.s split * removed unused .s files * JKRDvdAramRipper.s split * JKRAram.s split * cleanup and making vtables easier to debug * fixed merge errors * fixed JKRFileLoader::fetchVolumeName Co-authored-by: Pheenoh <pheenoh@gmail.com>
2020-12-06OS.h and JKRDvdFile (#19)Jonathan Wase
* OS header * JKRFile and JKRDvdFile
2020-12-05Types and functions for JKRThread, JKRFile, JKRDvdFile, JKRFileCache... (#17)Jonathan Wase
* Added JSUListIterator and decompiled JKRHeap::dispose_subroutine * JKRDisposer! * only 4 functions not OK in JKRHeap * JKRThread asm functions * more JKRThread * JKRThreadSwitch * JKRThread::JKRThread * More JKRTHread functions and vtable * fixed bad merge * update JKRThread and JKRThreadSwitch to use new virtual inheritance * save before asmsplit.py script * JKRFile * JKRDvdFile * JKRFileCache * JKRFileFinder * JKRFileLoader * JKRAssertHeap * JKRExpHeap * JKRSolidHeap * fixed type and functions definitions * JKRArchive (Pub) * missed file * JKRArchive * forgot obj_files.mk * fixed merge error and class members * class members * removed unused asm files * added names to global variables * class members for JKRHeap, JKRExpHeap, JKRSolidHeap, and JKRFileCache.
2020-12-04initial class structure for dComIfG_inf_cunknown
2020-12-03Merge branch 'master' of https://github.com/zeldaret/tpunknown
2020-12-03begin adding d_com_inf_game, add include guards to headersunknown
2020-12-03JSUList.h templates and JKRHeap matches (#13)Jonathan Wase
* JSULink, JSUList, JSUTree and more matching in JKRHeap * Added JSUListIterator and decompiled JKRHeap::dispose_subroutine * more templates and JKRHeap functions * JKRDisposer! * only 4 functions not OK in JKRHeap * fixed: *this->getObject() Co-authored-by: Pheenoh <pheenoh@gmail.com>
2020-12-03JSystem Font classes, SComponent cBgW (#14)notyourav
* c_bg_w.cpp OK * JUTFont and JUTResFont partially implemented Co-authored-by: notyouraveragehooman <65437533+notyouraveragehooman@users.noreply.github.com> Co-authored-by: Pheenoh <pheenoh@gmail.com>
2020-12-01Improved handling of virtual inheritance. (#7)Jonathan Wase
* new system for handling vtables * commented out non-matching JKRDisposer::~JKDisposer() * removed artificial vtables and matched simple virtual-call functions * better text on nonmatching functions * reverted asmdiff.sh * attempt 2 * Spelling * banner and .gitignore for vtable artifacts * move virtual function to the correct class * remove unnecessary casts
2020-11-30JKRHeap functions (#6)Jonathan Wase
* becomeSystemHeap OK! becomeCurrentHeap OK! * initArena OK! * static-alloc OK! static-free OK! static-resize OK! * operator new OK! operator delete OK! * removed asm/d/file/sel/d_file_sel_info.o from obj_files.mk * fixed vtable names
2020-11-29migrate remaining d_save and m_Do_main asm to inline, add intial class ↵unknown
mapping for dFile_select_c
2020-11-29add more sorting to inline'd asm for JSystem, move m_Do_main over to using ↵unknown
newly defined JKRHeap and JKRExpHeap headers
2020-11-29Add better sorting for inline'd asmunknown