mirror of
https://github.com/open-goal/jak-project
synced 2026-08-08 10:34:30 -04:00
[decomp] add mips2c converter (#842)
* mips 2 c basic version, not yet tested * calling works without crashing, but the function doesn't * it works * add test * cleanup and actually add the test * dont use mips2c by default for font * clean up formatting
This commit is contained in:
@@ -4956,8 +4956,7 @@ void ConditionalMoveFalseElement::push_to_stack(const Env& env, FormPool& pool,
|
||||
// pop the value and the original
|
||||
auto popped = pop_to_forms({old_value, source}, env, pool, stack, true);
|
||||
if (!is_symbol_true(popped.at(0))) {
|
||||
lg::warn("{}: Failed to ConditionalMoveFalseElement::push_to_stack",
|
||||
env.func->guessed_name.to_string());
|
||||
lg::warn("{}: Failed to ConditionalMoveFalseElement::push_to_stack", env.func->name());
|
||||
stack.push_value_to_reg(source, popped.at(1), true, TypeSpec("symbol"));
|
||||
stack.push_form_element(this, true);
|
||||
return;
|
||||
@@ -5139,7 +5138,7 @@ void VectorFloatLoadStoreElement::push_to_stack(const Env& env, FormPool& pool,
|
||||
}
|
||||
}
|
||||
|
||||
auto name = env.func->guessed_name.to_string();
|
||||
auto name = env.func->name();
|
||||
// don't find vector-! inside of vector-!.
|
||||
if (!m_is_load && name != "vector-!" && name != "vector+!" && name != "vector-reset!") {
|
||||
if (try_vector_reset_inline(env, pool, stack, this)) {
|
||||
|
||||
Reference in New Issue
Block a user