mirror of
https://github.com/open-goal/jak-project
synced 2026-08-22 07:04:29 -04:00
[graphics] generic merc (#1192)
* begin generic merc * more generic stuff * generic dma generation not crashing, at least until high-speed-reject * c * unpacker for generic * starting to work * small fixes * more fixes * more progress * cleanup * fix tests * no custom imgui assert on windows
This commit is contained in:
@@ -1225,8 +1225,8 @@ void SimpleExpressionElement::update_from_stack_add_i(const Env& env,
|
||||
as_generic->op().func()->try_as_single_element());
|
||||
if (as_func_head && as_func_head->expr().is_identity() &&
|
||||
as_func_head->expr().get_arg(0).is_sym_val()) {
|
||||
auto& name = as_func_head->expr().get_arg(0).get_str();
|
||||
if (name == "rand-vu-int-range") {
|
||||
auto& func_name = as_func_head->expr().get_arg(0).get_str();
|
||||
if (func_name == "rand-vu-int-range") {
|
||||
arg1_cast = TypeSpec("time-frame");
|
||||
}
|
||||
}
|
||||
@@ -1277,7 +1277,7 @@ void SimpleExpressionElement::update_from_stack_force_si_2(const Env& env,
|
||||
if (arg1_reg) {
|
||||
auto arg1_type =
|
||||
env.get_types_before_op(m_my_idx).get(m_expr.get_arg(1).var().reg()).typespec();
|
||||
bool is_timeframe = arg1_type == TypeSpec("time-frame");
|
||||
// bool is_timeframe = arg1_type == TypeSpec("time-frame");
|
||||
arg1_i = is_int_type(arg1_type);
|
||||
} else {
|
||||
ASSERT(m_expr.get_arg(1).is_int());
|
||||
|
||||
Reference in New Issue
Block a user