MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / OPL_LockTable

Function OPL_LockTable

src/Engine/Adlib/fmopl.cpp:1010–1023  ·  view source on GitHub ↗

lock/unlock for common table */

Source from the content-addressed store, hash-verified

1008
1009/* lock/unlock for common table */
1010static int OPL_LockTable(void)
1011{
1012 num_lock++;
1013 if(num_lock>1) return 0;
1014 /* first time */
1015 cur_chip = NULL;
1016 /* allocate total level table (128kb space) */
1017 if( !OPLOpenTable() )
1018 {
1019 num_lock--;
1020 return -1;
1021 }
1022 return 0;
1023}
1024
1025static void OPL_UnLockTable(void)
1026{

Callers 1

OPLCreateFunction · 0.85

Calls 1

OPLOpenTableFunction · 0.85

Tested by

no test coverage detected