mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
refactored ResourceOptions handling.
This commit is contained in:
@@ -182,6 +182,14 @@ namespace GameRes
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
protected OptType GetOptions<OptType> (ResourceOptions res_options) where OptType : ResourceOptions
|
||||
{
|
||||
var options = res_options as OptType;
|
||||
if (null == options)
|
||||
options = this.GetDefaultOptions() as OptType;
|
||||
return options;
|
||||
}
|
||||
}
|
||||
|
||||
public delegate void ParametersRequestEventHandler (object sender, ParametersRequestEventArgs e);
|
||||
|
||||
Reference in New Issue
Block a user