Skip to content

Commit

Permalink
rename this
Browse files Browse the repository at this point in the history
  • Loading branch information
lemz1 committed Oct 13, 2024
1 parent 257b9fb commit 1c7e211
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/funkin/data/BaseClassRegistry.hx
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,5 @@ abstract class BaseClassRegistry<T:(IClassRegistryEntry)>

abstract function getBuiltInEntries():List<Class<T>>;

abstract function createScriptedEntry(id:String):Null<T>;
abstract function createScriptedEntry(clsName:String):Null<T>;
}
4 changes: 2 additions & 2 deletions source/funkin/util/macro/ClassRegistryMacro.hx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ClassRegistryMacro
throw 'No Constructor';
}

var scriptedStrExpr = '${scriptedEntryClsName}.init(id';
var scriptedStrExpr = '${scriptedEntryClsName}.init(clsName';
for (i in 0...initArgs)
{
scriptedStrExpr += ', null';
Expand Down Expand Up @@ -240,7 +240,7 @@ class ClassRegistryMacro
{
args: [
{
name: 'id',
name: 'clsName',
type: (macro :String)
}
],
Expand Down

0 comments on commit 1c7e211

Please sign in to comment.