Skip to content

Commit

Permalink
Fixed Get*Option
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenKiwi committed Dec 1, 2014
1 parent 51e88a7 commit 746e475
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions FabricSplice.h
Original file line number Diff line number Diff line change
Expand Up @@ -3850,7 +3850,7 @@ namespace FabricSplice
{
FabricCore::Variant option = getOption(name);
if(!option.isBoolean())
return defaultValue;
return getIntegerOption(name, defaultValue) != 0;
return option.getBoolean();
}

Expand All @@ -3861,19 +3861,19 @@ namespace FabricSplice
if(option.isSInt8())
return (int)option.getSInt8();
if(option.isSInt16())
return (int)option.getSInt8();
return (int)option.getSInt16();
if(option.isSInt32())
return (int)option.getSInt8();
return (int)option.getSInt32();
if(option.isSInt64())
return (int)option.getSInt8();
return (int)option.getSInt64();
if(option.isUInt8())
return (int)option.getUInt8();
if(option.isUInt16())
return (int)option.getUInt8();
return (int)option.getUInt16();
if(option.isUInt32())
return (int)option.getUInt8();
return (int)option.getUInt32();
if(option.isUInt64())
return (int)option.getUInt8();
return (int)option.getUInt64();
if(option.isFloat32())
return (int)option.getFloat32();
if(option.isFloat64())
Expand All @@ -3888,19 +3888,19 @@ namespace FabricSplice
if(option.isSInt8())
return (float)option.getSInt8();
if(option.isSInt16())
return (float)option.getSInt8();
return (float)option.getSInt64();
if(option.isSInt32())
return (float)option.getSInt8();
return (float)option.getSInt32();
if(option.isSInt64())
return (float)option.getSInt8();
return (float)option.getSInt64();
if(option.isUInt8())
return (float)option.getUInt8();
if(option.isUInt16())
return (float)option.getUInt8();
return (float)option.getUInt16();
if(option.isUInt32())
return (float)option.getUInt8();
return (float)option.getUInt32();
if(option.isUInt64())
return (float)option.getUInt8();
return (float)option.getUInt64();
if(option.isFloat32())
return (float)option.getFloat32();
if(option.isFloat64())
Expand Down

0 comments on commit 746e475

Please sign in to comment.