MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / w_string

Method w_string

ogsr_engine/xrCore/Xr_ini.cpp:721–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719}
720
721void CInifile::w_string(LPCSTR S, LPCSTR L, LPCSTR V)
722{
723 R_ASSERT(!bReadOnly);
724
725 // section
726 char sect[256];
727 _parse(sect, S);
728 _strlwr(sect);
729 ASSERT_FMT(sect[0], "[%s]: wrong section name [%s]", __FUNCTION__, S);
730
731 // parse line/value
732 char line[256];
733 _parse(line, L);
734 ASSERT_FMT(line[0], "[%s]: wrong param name [%s]", __FUNCTION__, L);
735 char value[256];
736 _parse(value, V);
737
738 // duplicate & insert
739 Item I;
740 I.first = line;
741 I.second = value[0] ? value : 0;
742
743 Sect* data = !section_exist(sect) ? &append_section(sect) : &r_section(sect);
744 insert_item(data, I);
745
746 bWasChanged = true;
747}
748
749void CInifile::w_u8(LPCSTR S, LPCSTR L, u8 V)
750{

Callers 14

SaveAttachableParamsMethod · 0.80
SaveAttachableParamsMethod · 0.80
saveWeatherFunction · 0.80
Save2Method · 0.80
Save2Method · 0.80
SaveIniMethod · 0.80
SaveIniMethod · 0.80
Save2Method · 0.80
SaveIniMethod · 0.80
SaveIniMethod · 0.80
init_gamedata_unusedMethod · 0.80
save_asMethod · 0.80

Calls 3

_parseFunction · 0.85
_strlwrFunction · 0.85
insert_itemFunction · 0.85

Tested by

no test coverage detected